Closed nkosi23 closed 5 years ago
Do you have your application load balanced??? If so then just remove the machine from the load balancer. Wait for requests to finish. Then deploy. Then add it back in.
No it's not, however you just made me realize that I could pause the front-end reverse proxy to achieve the same result. The update will result in downtime anyway no matter where graceful restart is handled since this is a single node setup. If there is ever a need to make this system HA and therefore load balanced, then what you suggest would cover this scenario too.
Thank you
I am wondering if there is a way to send a system signal (Unix) to a self-hosted Nancy application and have it terminate the processing of all requests before exiting similar to this Apache's feature.
I am concerned about requests being terminated midway when the application is updated which could leave the database in an inconsistent state. Any hint would be appreciated.
Many thanks