ilja :pumpkin_owo: on Nostr: a hack i've been thinking of i also want to try someday. When your instance goes ...
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

Published at
2023-08-05 07:12:04Event JSON
{
"id": "77e531607b7af0d290a4e910d135a351fcbb84ef865ef240c58d42d5ec96eb5c",
"pubkey": "28b1b69eb4c2cb4414153fb637aa42772e24552fb4c5188470e83df72998600c",
"created_at": 1691219524,
"kind": 1,
"tags": [
[
"emoji",
"blobfoxcomfysmirk",
"https://ilja.space/emoji/blobfox/blobfoxcomfysmirk.png"
],
[
"proxy",
"https://ilja.space/objects/94bcb84d-6372-4507-9617-1bbe21e180cf",
"activitypub"
]
],
"content": "a hack i've been thinking of i also want to try someday.\n\nWhen 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).\n\nAnd 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:",
"sig": "d2a028c9098ae1db6b29e9819ecd1b9aa91447b2697503240c529a199a4c7b4892d898027327555542802bcd576e5f9e678a9269d25418518c00431df718dfdb"
}