Knotx / knotx

Knot.x is a highly-efficient and scalable integration framework designed to build backend APIs
https://knotx.io
Apache License 2.0
126 stars 26 forks source link

Safe shutdown #266

Open karoldrazek opened 7 years ago

karoldrazek commented 7 years ago

Please kindly implement way to handle 'safe shutdown' of knotx process.

By 'safe shutdown' I understand waiting until all requests are served or timed out and only after that shutting down process.

marcinczeczko commented 6 years ago

There is a way to gracefully shutdown JVM process that waits for verticles to stop without the need to kill the knot.x process. See the conversation in here: https://github.com/Knotx/knotx-cookbook/pull/15 for templates/default/etc/systemd/system/knotx.service.erb file.

Is it acceptable ?