twolfson / twolfson.com-scripts

Scripts used for bootstrapping and deploying services for twolfson.com and its subdomains
The Unlicense
33 stars 2 forks source link

Move to downtime-less deploy #4

Closed twolfson closed 4 years ago

twolfson commented 8 years ago

This is an issue that was recorded a while ago (2013-12-07) but is still incomplete.


When we deploy, we can run into issues where we take down the server to restart it.

One approach is run 2 servers on different ports and then load balance from one to the other.

We can do this via vanilla servers or Vagrant.


Another option would be to use UNIX sockets.

twolfson commented 4 years ago

Using a load balancer seems like the more intuitive way to go. There are some tricks for slow boot time programs (e.g. using special signal to tell parent process to restart children) but that's not our scenario

And setting up a load balancer/running multiple servers to transition to is more costly and requires even more maintenance

(not to mention figuring out how to automate more private provisioning content like SOPS (though this prob means share it or set up another secrets solution) and updating all our SSL logic to live in the load balancer itself

Going to close this as a wontfix for now