# Graceful shutdown

> Graceful shutdown of Apache ZooKeeper servers, covering the configurable shutdown timeout and how the server process stops.

You can configure the graceful shutdown as described in [Graceful shutdown](https://docs.stackable.tech/home/stable/concepts/operations/graceful_shutdown/index.md).

## Servers

As a default, ZooKeeper servers have `2 minutes` to shut down gracefully.

The ZooKeeper server process will receive a `SIGTERM` signal when Kubernetes wants to terminate the Pod. After the graceful shutdown timeout runs out, and the process still didn’t exit, Kubernetes will issue a `SIGKILL` signal.

This is equivalent to executing the `bin/zkServer.sh stop` command, which internally executes `kill <zookeeper-pid>` ([code](https://github.com/apache/zookeeper/blob/74db005175a4ec545697012f9069cb9dcc8cdda7/bin/zkServer.sh#L219)).

However, there is no acknowledge message in the log indicating a graceful shutdown.
