From 89c7a87af2a8c346d0958fb362d3d8aed44806e1 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Fri, 17 May 2019 14:50:36 +0100 Subject: [PATCH] use http healthcheck prevents traffic being routed to apps that haven't warmed up yet --- app/status/views/healthcheck.py | 2 +- manifest.yml.j2 | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/status/views/healthcheck.py b/app/status/views/healthcheck.py index ad4024335..89a37f58e 100644 --- a/app/status/views/healthcheck.py +++ b/app/status/views/healthcheck.py @@ -7,7 +7,7 @@ from app.status import status @status.route('/_status', methods=['GET']) def show_status(): - if request.args.get('elb', None): + if request.args.get('elb', None) or request.args.get('simple', None): return jsonify(status="ok"), 200 else: try: diff --git a/manifest.yml.j2 b/manifest.yml.j2 index ccf758095..17ee33f37 100644 --- a/manifest.yml.j2 +++ b/manifest.yml.j2 @@ -25,6 +25,9 @@ applications: - route: {{ route }} {%- endfor %} + health-check-type: http + health-check-http-endpoint: '/_status?simple=true' + services: - logit-ssl-syslog-drain