question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fast server replacement support/documentation

See original GitHub issue

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 ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
williswebcommented, 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

0reactions
amanpatelcommented, Jun 5, 2021

This is a great feature. I guess this request can be closed? I will test it with my setup and let you know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FastAPI
FastAPI framework, high performance, easy to learn, fast to code, ... You will see the alternative automatic documentation (provided by ReDoc):.
Read more >
KeyDB - The Faster Redis Alternative
KeyDB is a fully open source database, backed by Snap, and a faster drop in alternative to ... Docs is a place where...
Read more >
Manage and Upgrade PowerEdge Rack and Tower Servers ...
Manage and Upgrade PowerEdge Rack and Tower Servers with Out-of-Band Management Tools—Documentation & Videos.
Read more >
About macOS Server 5.7.1 and later - Apple Support
This table shows the status of each macOS Server service, and available alternatives. Service, Status, Alternatives. Profile Manager, Available ...
Read more >
Linode: Cloud Computing & Linux Servers | Alternative to AWS
Simplify your infrastructure with Linode's cloud computing and hosting solutions and develop, deploy, and scale faster and easier.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found