-
Notifications
You must be signed in to change notification settings - Fork 27
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
HTTP compatibility. #8
Open
cziko
wants to merge
61
commits into
epio:master
Choose a base branch
from
zendeskarchive:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…nceTo_and_attemtps_break
Currently only "random" and "least connections" are supported.
I managed to confuse JSON and YAML APIs there...
Without it a host that rejects connections would always get selected as the best candidate for the incoming request. Also, this code really needs more abstraction. :-)
…s free until transfers finished." This reverts commit 4a47cbc.
Previously all backends would have healthcheck threads started immediately. This was mostly useless, as the healthcheck logic would never mark the backend down - it could only mark it as back up once it's been marked down my the load-balancing logic. This generated substantial amounts of traffic. Now the healthcheck loop should start when the backend is blacklisted by the load balancing logic and stop once its found to be back up.
Also decreased the delay between consecutive attempts to 0.5s. Fixed sleep logic so that the connection handler doesn't sleep after the last connection attempt and returns immediately.
This reverts commit 7cb11bc.
Previously all backends would have healthcheck threads started immediately. This was mostly useless, as the healthcheck logic would never mark the backend down - it could only mark it as back up once it's been marked down my the load-balancing logic. This generated substantial amounts of traffic. Now the healthcheck loop should start when the backend is blacklisted by the load balancing logic and stop once its found to be back up.
Add support for X-Loadbalance-To header
Currently when there are no backend available in pool Mantrid is throwing general exception. We want to handle it in more civilized way so nginx can catch a problem and fallback to other grid clusters. This fix is needed for az-separation, as when setting up new cluster it will not have any backends set in mantrid. As workers connect only to nginx->mantrid correlated to their grid, we don't want them to throw errors and bother anyone, so let's just let nginx to connect to other, healthy grid cluster.
This reverts commit fd31d03. Apparantely applications returns 503 from time to time. In this case we really don't want nginx to retry. Therefore we're returning to idea of 597 and gonna patch nginx upstream module to support it, what seems to be pretty straightforward.
Check whether there are healthy backend available
Alias can be set for another hostname that is already configured. It theoretically should help for problems with least_connections alghoritm.
API Proxy is going to set X-Request-Id. Let's log it to improve visibility across backend requests.
Return 594 status code on backend timeout.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
headers[Connection] did not have "\r". It was incompatible with HTTP protocol.