Wakanda Server scripted clean shutdown

前端 未结 5 1668
野趣味
野趣味 2021-01-18 18:51

What is best practice to perform a clean shutdown of a Wakanda server via OS X shell scripting?

This would be with a solution currently loaded and operating.

5条回答
  •  庸人自扰
    2021-01-18 19:08

    I've had the same experience as Michael Hong. I would not use kill -9 to shut down a Wakanda server. It does not gracefully shut down workers and can lead to data corruption. The correct way to shut down a Wakanda server is using the solution.quitServer() function as documented here: http://doc.wakanda.org/home2.en.html#/Global-Application/Solution/quitServer.301-635546.en.html

    My solution has been to have one shared worker that manages all other workers (a "worker manager"). An RPC/REST call can be made to call the "worker manager" to quit the server. The worker manager then calls all the other workers to give them time to gracefully close. Then after X seconds the worker manager calls solution.quitServer().

提交回复
热议问题