Add instance health checks for all gunicorn workers
Fixes https://jira.coreos.com/browse/QS-121
This commit is contained in:
parent
18f1ccf80b
commit
e91b83e1be
3 changed files with 36 additions and 21 deletions
|
@ -67,6 +67,10 @@ STATUS_TAGS = app.config['STATUS_TAGS']
|
|||
def index(path, **kwargs):
|
||||
return render_page_template_with_routedata('index.html', **kwargs)
|
||||
|
||||
@web.route('/_internal_ping')
|
||||
@anon_allowed
|
||||
def internal_ping():
|
||||
return make_response('true', 200)
|
||||
|
||||
@web.route('/500', methods=['GET'])
|
||||
def internal_error_display():
|
||||
|
|
Reference in a new issue