cp-docker-images
cp-docker-images copied to clipboard
Graceful shutdown for docker images
Currently, the docker images distributed with this repository do not handle SIGTERM properly when running docker stop. It's inconvenient to manually run docker exec my-container /usr/bin/kavka-server-stop && docker stop my-container
, instead, the entrypoint/cmd should be a script that also properly handles SIGTERM and runs the appropriate shutdown executable before killing the process.
After the container is killed, a large number of partition directories need to be traversed when the container is rebuilt. The process takes a long time. Could the cp-kafka container monitor container stop signal and automatically execute command kafka-server-stop
Is there any progress?