首页  

elasticsearch集群搭建     所属分类 elasticsearch 浏览量 1445
es版本 5.6.8

主要配置文件
config/elasticsearch.yml
config/jvm.options


elasticsearch.yml cluster.name: estestcluster001 node.name: esnode1 #node.attr.rack: r1 path.data: /home/admin/testbox/es/es1/data path.logs: /home/admin/testbox/es/es1/log #bootstrap.memory_lock: true network.host: 0.0.0.0 http.port: 6300 transport.tcp.port: 6301 discovery.zen.ping.unicast.hosts: ["127.0.0.1:6301", "127.0.0.1:6311", "127.0.0.1:6321"] discovery.zen.minimum_master_nodes: 2
jvm.options 配置jmx端口 增加 JVM 参数 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=6302
http端口 tcp端口 JMX端口 6300 6301 6302 6310 6311 6312 6320 6321 6322
./bin/elasticsearch http://127.0.0.1:6300/ http://127.0.0.1:6300/_cat/nodes?pretty discovery.zen.minimum_master_nodes=2 至少需要 2个 master 候选节点 not enough master nodes discovered during pinging (found [[Candidate{node={esnode1}{WQSjKWEeTFS7-14N4ne3NA}{O_WDFwd5T7-tYVysylOjMA}{10.57.240.12}{10.57.240.12:6301}, clusterStateVersion=-1}]], but needed [2]), pinging again http://127.0.0.1:6300/ { "name": "esnode1", "cluster_name": "estestcluster001", "cluster_uuid": "PhpFHA79QVWiZs6zwDOkrA", "version": { "number": "5.6.8", "build_hash": "688ecce", "build_date": "2018-02-16T16:46:30.010Z", "build_snapshot": false, "lucene_version": "6.6.1" }, "tagline": "You Know, for Search" } http://127.0.0.1:6300/_cat/nodes?pretty 192.168.0.10 20 31 0 0.07 0.10 0.09 mdi - esnode3 192.168.0.10 22 31 0 0.07 0.10 0.09 mdi * esnode1 192.168.0.10 20 31 0 0.07 0.10 0.09 mdi - esnode2 带* 主节点
Elasticsearch知识点 elasticsearch 优化点 Elasticsearch实用监控指标TOP10

上一篇     下一篇
Elasticsearch实用监控指标TOP10

三国演义里的职场道理

linux文本处理shell命令

Elasticsearch analyzer 和 search_analyzer

Elasticsearch5快速入门

Elasticsearch分词器