confluentinc / cp-docker-images

[DEPRECATED] Docker images for Confluent Platform.
Apache License 2.0
1.14k stars 703 forks source link

Graceful shutdown for docker images #527

Open fubhy opened 6 years ago

fubhy commented 6 years ago

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.

cobolbaby commented 4 years ago

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

cobolbaby commented 4 years ago

Is there any progress?