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

Fast server replacement support/documentation #1467

Open
Gaibhne opened this issue Jul 8, 2020 · 4 comments
Open

Fast server replacement support/documentation #1467

Gaibhne opened this issue Jul 8, 2020 · 4 comments

Comments

@Gaibhne
Copy link

@Gaibhne Gaibhne commented Jul 8, 2020

I could not find any documentation on this topic, so I assume any behavior I would witness in testing is accidental and prone to change unless specified somehow.

I would like to know the path to effective replacing of servers/containers. What I mean by that is that in a scenario where I have a container A with www.somedomain.com running, and I would like to replace container A with container B to host www.somedomain.com from now, it is not clear to me if there is any supported path short of shutting down A, then starting up B. To minimize outage time, it would be much preferable if I could just give B the appropriate environment variables, start it up, and the companion container would say "hey, this guy has the same VIRTUAL_HOST/LETSENCRYPT_HOST as container A, that sounds like he wants to replace A, so lets route future incoming connections to B".

Is there any way to get that to work in the way I described ? Or if that is already the case, can we rely on that behavior not changing ?

@buchdag buchdag transferred this issue from nginx-proxy/docker-letsencrypt-nginx-proxy-companion Jul 8, 2020
@Gaibhne
Copy link
Author

@Gaibhne Gaibhne commented Jul 9, 2020

Apologies for submitting this to the wrong repository, I realize now that it did not belong there.

@willisweb
Copy link

@willisweb willisweb commented Jul 9, 2020

So this is exactly how it works already.
Spin up container B with the same run command as container A.
nginx-proxy will load balance requests to both.
Shut down container A, you’re now running on B. Not outage time

@Gaibhne
Copy link
Author

@Gaibhne Gaibhne commented Jul 9, 2020

Is that documented somewhere ? I don't want to rely on a behavior that just happens to work the way I need it at the moment.

@JKamsker
Copy link

@JKamsker JKamsker commented Aug 22, 2020

I've got a similar problem.
What happens if my app requires some time to load up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.