Want to completely disable EB “health check”

0

I have a Django app that I am deploying with elastic beanstalk. Django’s ALLOWED_HOSTS behavior causes it to fail elastic beanstalk’s “health checks”. I would like to completely disable these checks, if possible, because I don’t really find them useful anyway.

I don’t see a way to do this, so I did the next best looking thing: I turned on “Ignore 4xx responses” for both the app and the elb in the environment configuration. But it’s still showing a degraded state.

I’ve been just ignoring this for a while, deploying new versions of the app without issue. But now, it’s causing deployments to fail and roll back (even though the rolled back app is failing the health checks too). So I want the check just gone.

Has anyone else experienced this? What did you do to resolve it?

rrwoods
posta 7 mesi fa1120 visualizzazioni
1 Risposta
0

Hello.

ALB health checks cannot be disabled.
So, why not try changing the health check Matcher range to a larger range, such as 200 - 500?
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-health-checks.html

profile picture
ESPERTO
con risposta 7 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande