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 个月前1121 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则