[DeepSeek R1] Gracefully shutdown mooncake store when exception for kill #2166
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is to handle a lot of shutdown cases when any processes are killed or there are exceptions.
User can use "kill pid" to kill any process and the moon cake store shutdown gracefully. WARNING: if you use kill -9 to kill a process, the process is killed forcefully and there is no way to handle. You need to restart all the services for this case. It is suggest for you to gracefully shutdown a service by "kill" the pid of the api_server. This is enough to shutdown all distributed processes started as part of the api server.
When engine process shut down, it will cleanup the following: