a hack i've been thinking of i also want to try someday.

When your instance goes down, you get annoying 500 errors, right. But what if you can set a retry in the http proxy and tell it to retry for several seconds. You could basically restart while it looks like you still have uptime, hehe (just bigger latency).

And a quick glance tells me something like that may be possible in Caddy by using the load balancers lb_try_duration and lb_try_interval. And yes, this is load balancing settings, but who's to say you can't have a load balancing setup with only one node :blobfoxcomfysmirk:

Reply to this note

Please Login to reply.

Discussion

nostr:npub19zcmd845ct95g9q487mr02jzwuhzg4f0knz33prsaq7lw2vcvqxqt5padn I wouldn't be surprised to learn that haproxy has an option to do exactly this.