elasticsearch5.4.3、kibana分布式安装
設(shè)置elasticsearch
兩臺(tái)機(jī)器:
master ip 192.168.31.106
slave ip 192.168.31.162
master ?elasticsearch.yml
bootstrap.memory_lock: false bootstrap.system_call_filter: falsenode.name: node-1 node.master: true node.data: true network.bind_host: 192.168.31.106 network.publish_host: 192.168.1.106 network.host: 0.0.0.0 http.max_content_length: 1024mb discovery.zen.ping.unicast.hosts: ["192.168.31.162"] http.cors.enabled: true http.cors.allow-origin: "*" discovery.zen.ping_timeout: 10s discovery.zen.minimum_master_nodes: 2 discovery.zen.fd.ping_timeout: 10000s discovery.zen.fd.ping_retries: 10The?discovery.zen.ping_timeout?(which defaults to?3s) determines how long the node will wait before deciding on starting an election or joining an existing cluster.?
discovery.zen.fd:
| ping_timeout | How long to wait for a ping response, defaults to?30s. |
?
ES在大量插入數(shù)據(jù)時(shí)會(huì)產(chǎn)生gc overhead 錯(cuò)誤,在gc overhead 過程中會(huì)進(jìn)入stop-the-world狀態(tài),導(dǎo)致ping不通,因此調(diào)整ping的時(shí)間長(zhǎng)度
slave?elasticsearch.yml
bootstrap.memory_lock: false bootstrap.system_call_filter: falsenode.name: node-2 node.master: true node.data: true network.bind_host: 192.168.31.162 network.publish_host: 192.168.1.162 network.host: 0.0.0.0 http.max_content_length: 1024mb discovery.zen.ping.unicast.hosts: ["192.168.31.106"] http.cors.enabled: true http.cors.allow-origin: "*" discovery.zen.ping_timeout: 10s discovery.zen.minimum_master_nodes: 2 discovery.zen.fd.ping_timeout: 10000s discovery.zen.fd.ping_retries: 10設(shè)置node.master: true ,兩臺(tái)機(jī)器哪個(gè)先啟動(dòng),哪個(gè)就是master。
設(shè)置kibana
server.host: "0.0.0.0" elasticsearch.url: "http://192.168.1.162:9200"設(shè)置ElasticSearh-head
下載elasticsearch-head
cd /path/to/elasticsearch-head
npm install -g grunt-cli
npm install
grunt server
http://localhost:9100/
?
總結(jié)
以上是生活随笔為你收集整理的elasticsearch5.4.3、kibana分布式安装的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Mysql5.7读写分离
- 下一篇: 安装 elasticsearch-hea