add /health_check/redis route back in

This commit is contained in:
Henry Oswald 2019-02-07 15:10:40 +00:00
parent 73bd264401
commit b5564095f3

View file

@ -71,7 +71,16 @@ app.get '/status', (req, res)->
else else
res.send('document updater is alive') res.send('document updater is alive')
docUpdaterRedisClient = require("redis-sharelatex").createClient(Settings.redis.documentupdater) docUpdaterRedisClient = require("redis-sharelatex").createClient(Settings.redis.documentupdater)
app.get "/health_check/redis", (req, res, next) ->
docUpdaterRedisClient.healthCheck (error) ->
if error?
logger.err {err: error}, "failed redis health check"
res.send 500
else
res.send 200
app.get "/health_check/redis_cluster", (req, res, next) -> app.get "/health_check/redis_cluster", (req, res, next) ->
docUpdaterRedisClient.healthCheck (error) -> docUpdaterRedisClient.healthCheck (error) ->
if error? if error?