-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support 3xx HTTP status codes for health check #3364
Conversation
Hello @SniperCZE Other proxies such as nginx only use 200-399 for response range. If you require the full range, can you link to the RFC you are referring to? We are wondering if the 1xx range should be included in this (being that they are information responses, usually used to confirm/upgrade connections). Would you be ok with just 200-399? |
Hi @dtomcej I mean RFC 7231. There is section 6 about status codes and only 4xx and 5xx are labeled as error status. 1xx are informational - used ie. for upgrade http -> websockets. On the other hand, 1xx status codes are quite rare (in terms of loadbalancer healthcheck URLs) so probably 200 - 399 will be OK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does this PR do?
Allows all 3xx HTTP status codes (based on RFC) to pass healthcheck.
Motivation
PR #3362 adds only support for 2xx HTTP status codes, but according to RFC, 3xx are valid answers too and should not make server pushed out of pool, so this improve fix of #3081.
More