Have the health check also ping the registry endpoint to make sure it is functional.

This commit is contained in:
Joseph Schorr 2015-01-14 23:39:58 -05:00
parent 90b724d3a0
commit a4de476a85
3 changed files with 24 additions and 7 deletions

View file

@ -380,6 +380,11 @@ def get_search():
resp.mimetype = 'application/json'
return resp
# Note: This is *not* part of the Docker index spec. This is here for our own health check,
# since we have nginx handle the _ping below.
@index.route('/_internal_ping')
def internal_ping():
return make_response('true', 200)
@index.route('/_ping')
@index.route('/_ping')