Skip to content
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

refactor: always set the server address on service connection pool #781

Closed

Conversation

hermanyglauber
Copy link

Logic to avoid DNS/IP address caching on perServerConnectionPool that causes 502 Bad Gateway error connecting to the Origin endpoint. Issue described on #780

@carl-mastrangelo
Copy link
Contributor

I think this may not be correct. The per-server connection pool should probably be torn down and recreated when the address changes.

@hermanyglauber
Copy link
Author

I thought about that possibility as well but didn't test it. I will refactor it and test the effect.

@hermanyglauber hermanyglauber force-pushed the set-server-addr branch 2 times, most recently from 2403720 to 1c53647 Compare April 22, 2020 18:42
@carl-mastrangelo
Copy link
Contributor

Just FYI, this may be a bigger piece of work than you want to bite off. I think the pool needs to be closed (witch existing requests being allowed to finish). This will be tough to test.

@hermanyglauber
Copy link
Author

FYI, those changes have been deployed in 6 different environments in a custom zuul-core version. Performance test has been done, there was no degradation in the resources utilization, neither in latency and neither in error rate, in fact, the number of request with 5xx status decreased and so did retries.

Most likely the in progress connections are going to fail as the backend will not be connectable via old IP, do you agree?

Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Sep 14, 2024
Copy link

This PR was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants