3 ms·
Maybe I'm missing something here, but what are the advantages of having two identical servers with a floating IP that switches between them instead of just runn
by bakugo 4y ago
Maybe I'm missing something here, but what are the advantages of having two identical servers with a floating IP that switches between them instead of just running two instances of the app on the same server and switching between them by editing the nginx proxy config?
- tjkrusinski 4y agoLess work. You'd need to have a different context for environment variables that adds another level of complexity. Likewise if you had a dependency that needs updating (SSL, etc), you can do it safely on the idle machine without worrying about production traffic.
- xani_ 4y agoEh, it's pretty trivial to do. The reason for 2 servers is high availability, not that it is easier in meaningful way. I run something similar on personal site and it's literally just 2 identical configs but with different port/directory and some haproxy config.
- noselasd 4y agoSo you can do maintenance/kernel upgrades etc. on the server that's not in production at the moment.