Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-04 00:08:05 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-04 00:08:05 +0300
commit2eff77c2efe8ad71796561cae3bcd993b9065721 (patch)
tree964b2537abbfa9b8c5290ca82327003be52417e3 /lib/gitlab/health_checks
parent8f9307985ea047abb5b8a7c6c56bb644e0b7c363 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/health_checks')
-rw-r--r--lib/gitlab/health_checks/gitaly_check.rb26
1 files changed, 4 insertions, 22 deletions
diff --git a/lib/gitlab/health_checks/gitaly_check.rb b/lib/gitlab/health_checks/gitaly_check.rb
index 2bd8ea711b5..f5f142c251f 100644
--- a/lib/gitlab/health_checks/gitaly_check.rb
+++ b/lib/gitlab/health_checks/gitaly_check.rb
@@ -27,35 +27,17 @@ module Gitlab
end
def check(storage_name)
- storage_healthy = healthy(storage_name)
- unless storage_healthy[:success]
- return HealthChecks::Result.new(
- name,
- storage_healthy[:success],
- storage_healthy[:message],
- shard: storage_name
- )
- end
+ serv = Gitlab::GitalyClient::HealthCheckService.new(storage_name)
+ result = serv.check
- storage_ready = ready(storage_name)
HealthChecks::Result.new(
name,
- storage_ready[:success],
- storage_ready[:message],
+ result[:success],
+ result[:message],
shard: storage_name
)
end
- def healthy(storage_name)
- serv = Gitlab::GitalyClient::HealthCheckService.new(storage_name)
- serv.check
- end
-
- def ready(storage_name)
- serv = Gitlab::GitalyClient::ServerService.new(storage_name)
- serv.readiness_check
- end
-
private
def metric_prefix