- ElasticSearch Server
- Rafa? Ku? Marek Rogoziński
- 169字
- 2021-07-30 17:29:15
Shutting down ElasticSearch
Even though we expect our cluster (or node) to run flawlessly for a lifetime, we may end up needing to restart it or shut it down properly (for example, for maintenance). There are three ways in which we can shut down ElasticSearch:
- If your node is attached to the console (run with the
–f
option), just press Ctrl + C - The second option is to kill the server process by sending the TERM signal (see the kill command on the Linux boxes and program manager on Windows)
- The third method is to use a REST API
We will focus on the last method now. It allows us to shut down the whole cluster by executing the following command:
curl -XPOST http://localhost:9200/_cluster/nodes/_shutdown
To shut down just a single node, execute the following command:
curl –XPOST http://localhost:9200/_cluster/nodes/BlrmMvBdSKiCeYGsiHijdg/_shutdown
In the previous command line, BlrmMvBdSKiCeYGsiHijdg
is the identifier for a given node. The former may be read from ElasticSearch logs or from another API call:
curl -XGET http://localhost:9200/_cluster/nodes/
推薦閱讀
- 6G潛在關(guān)鍵技術(shù)(下冊(cè))
- CorelDRAW X6 中文版圖形設(shè)計(jì)實(shí)戰(zhàn)從入門到精通
- 連接未來(lái):從古登堡到谷歌的網(wǎng)絡(luò)革命
- SEO 20日
- 物聯(lián)網(wǎng)檢驗(yàn)檢測(cè)技術(shù)
- 萬(wàn)物互聯(lián):蜂窩物聯(lián)網(wǎng)組網(wǎng)技術(shù)詳解
- 互聯(lián)網(wǎng)基礎(chǔ)資源技術(shù)與應(yīng)用發(fā)展態(tài)勢(shì)(2021—2023)
- 數(shù)字調(diào)制解調(diào)技術(shù)的MATLAB與FPGA實(shí)現(xiàn):Altera/Verilog版(第2版)
- 城市治理一網(wǎng)統(tǒng)管
- 6G新技術(shù) 新網(wǎng)絡(luò) 新通信
- The Kubernetes Workshop
- SAE原理與網(wǎng)絡(luò)規(guī)劃
- 信息技術(shù)安全評(píng)估準(zhǔn)則:源流、方法與實(shí)踐
- 中國(guó)信息化年鑒2017
- 互聯(lián)網(wǎng)視覺設(shè)計(jì)(全彩慕課版)