summaryrefslogtreecommitdiff
path: root/app/controllers/health_controller.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-01-21 15:34:09 -0800
committerStan Hu <stanhu@gmail.com>2018-01-24 15:47:27 -0800
commit867126130946a9d3c3da7ff8e64b59b14da13599 (patch)
treeb67bf98dce78a0b953e63e84ff95a24c60b8af15 /app/controllers/health_controller.rb
parent44728e0527bc7c5cf982be2fbbd26e24a79e5d8f (diff)
downloadgitlab-ce-867126130946a9d3c3da7ff8e64b59b14da13599.tar.gz
Add a gRPC health check to ensure Gitaly is upsh-add-gitaly-health-check
This will enable Geo to skip shards that not operational. Relates to gitlab-org/gitlab-ee#4329
Diffstat (limited to 'app/controllers/health_controller.rb')
-rw-r--r--app/controllers/health_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/health_controller.rb b/app/controllers/health_controller.rb
index a931b456a93..16abf7bab7e 100644
--- a/app/controllers/health_controller.rb
+++ b/app/controllers/health_controller.rb
@@ -8,7 +8,8 @@ class HealthController < ActionController::Base
Gitlab::HealthChecks::Redis::CacheCheck,
Gitlab::HealthChecks::Redis::QueuesCheck,
Gitlab::HealthChecks::Redis::SharedStateCheck,
- Gitlab::HealthChecks::FsShardsCheck
+ Gitlab::HealthChecks::FsShardsCheck,
+ Gitlab::HealthChecks::GitalyCheck
].freeze
def readiness