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
已提問 7 個月前檢視次數 1113 次
1 個回答
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
專家
已回答 7 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南