Restart elasticsearch node

How to restart elasticsearch node gracefully in the cluster?

Have you read https://www.elastic.co/guide/en/elasticsearch/guide/current/_rolling_restarts.html?

@magnusbaeck _shutdown API " curl -XPOST 'http://localhost:9200/_cluster/nodes/_local/_shutdown' " is now deprecated? What should I use instead of this?

For example service elasticsearch stop or whatever your operating system provides.

Thanks @magnusbaeck. This is what I was looking for.