# http/cluster-stop Stop the cluster: close all workers' listener fds, destroy the worker runtimes, and clear the cluster state. ## Syntax
[http/cluster-stop]
## Returns `nil`. Returns an error if no cluster is running. ## Notes - Workers are destroyed immediately. In-flight requests on those workers are interrupted. - After stopping, the cluster state is cleared. Call `http/serve-cluster` again to start a new cluster. ## Example
# Admin endpoint: POST /admin/shutdown
def admin-shutdown {|req res|
    http/cluster-stop
    http/html $res "stopped"
}
## See Also `http/serve-cluster`, `http/cluster-metrics`, `http/cluster-status`, `http/cluster-reload`