top | item 36745193

(no title)

bradleyjkemp | 2 years ago

If you've got a load balancer (like Caddy) in front of your pods you can configure it to hold requests while the new pod comes up: https://twitter.com/bradleyjkemp/status/1486756361845329927

It's not perfect but it means rather than getting connection errors, browsers will just spin for a couple seconds.

The same technique is used by https://mrsk.dev/

discuss

order

collaborative|2 years ago

If you have more than one backend you can also reconfigure caddy on the fly to only serve from active ones while each one is being updated