fix: RegelHet maakt lopende requests af bij SIGTERM #54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/regelhet-graceful-shutdown"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bij een rolling update stuurt Kubernetes de oude pod een SIGTERM. De server had geen handler, dus het proces stopte meteen en kapte lopende requests af, ook een vastlegging die onderweg was. Nu stopt hij met nieuwe verbindingen aannemen en maakt hij de lopende af (
axum::serve(...).with_graceful_shutdown), op SIGTERM en Ctrl-C. Buiten Unix alleen Ctrl-C. tokio krijgt de featuresignal.Echt gedraaid in het CI-image: server gestart,
/health200,checkwerkt nog, SIGTERM, de server logt "stopping: finishing the requests under way" en stopt. Een request dat op het moment van de SIGTERM nog loopt, heb ik niet nagebootst.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.