- Notifications
You must be signed in to change notification settings - Fork3.1k
feat: Use container names for upstream names to avoid repeats#1938
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
I'm on it:#1940 |
Thanks for updating docker-gen. I rebased and switched to the |
Thanks for the PR, unfortunately we can't make this behaviour a default one because a lot of people have custom configurations that rely on upstream names being equal to the hostnames. See#1725,#1693 (comment),#1736 plus the release notes of version |
I updated the PR to keep the current behavior by default. |
Friendly ping@buchdag |
75c1402
tob5da566
CompareMarking as draft until#2127 is merged. |
8554677
to2664d2a
Comparef9a01fe
tod9b6c54
Comparef427fdd
to78c82e9
Comparecddce7f
toeef4e4a
Comparedc6fa03
to8db5b82
Comparebuchdag commentedMay 9, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@rhansen sorry for the incredibly long delay on this one. I've tested the PR, and I'm still a bit confused about it. Does it provide any advantage / behaviour change when not using What kind of issue could the "repeat" of upstreams when using I feel like I'm completely missing the point but I seem unable to grasp what issue this PR is attempting to solve or its benefits against its non trivial added complexity. 🤔 I also don't think it could realistically be made default as it would made upstream name somewhere between very hard to predict and unpredictable on systems or setups where container names are dynamically generated or containers replica dynamically started / stopped. |
Yes. Currently, if a single container is used for multiple vhosts (e.g.,
I think the repeated upstreams could theoretically cause minor load balancing issues.
It's been a year so a lot has slipped away from memory, but IIRC my main motivation was to facilitate a fix for#1504. Give me some time to recall what I was doing and I'll update the commit message with some rationale.
Hmm, that's a good point. Let me think about this some more to see if there's a good general solution that checks all of these boxes:
|
Uh oh!
There was an error while loading.Please reload this page.
Note: This depends on PR#2127, and will be marked as draft until that PR is merged.