7 days ago
I'm using Granian to serve my WSGI application, and it seems the latest version requires a specific sysctl parameter change for worker respawns to work correctly (https://github.com/emmett-framework/granian/releases/tag/v2.8.0).
I'm current getting this warning when my server starts up:
[WARNING] Workers respawn is configured, but the net.ipv4.tcp_migrate_req sysctl is not enabled (or the kernel does not support it, which requires Linux 5.14+): queued connections may be reset when a worker respawns. To avoid this, set sysctl net.ipv4.tcp_migrate_req=1.
I assume there's no way to turn this on for my service?
1 Replies
7 days ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • 7 days ago
7 days ago
Yes, I don't think you'll be able to set that system parameter.
If you really need it, I'd look for a VPS instead of a PaaS like Railway.
Otherwise, you could also disable workers respawn.