1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| - 当前版本elasticsearch-5.5.1 ### 集群名称 cluster.name: my-application ### 节点名称 node.name: node-1 ### 设置自定义节点属性 后期节点属性过滤 node.attr.rack: r1 ### 设置保数据引路径 逗号隔开多个 path.data: /path/to/data ### 设置日志路径 path.logs: /path/to/logs # ----------------------------------- Memory ----------------------------------- ### 启动事分配固定内存 避免jvm过度占用内存是导致性能地下 bootstrap.memory_lock: true ### 默认true # ---------------------------------- Network ----------------------------------- ### 设置绑定ip network.host: 192.168.0.1 ### 设置绑定端口 http.port: 9200 # --------------------------------- Discovery ---------------------------------- #### 设置初始化集群发现的ip列表 # The default list of hosts is ["127.0.0.1", "[::1]"] discovery.zen.ping.unicast.hosts: ["host1", "host2"] ### 集群master候选资格 #discovery.zen.minimum_master_nodes: 3
# ---------------------------------- Gateway ----------------------------------- ### 设置集群数到达以后才开始数据恢复 保证数据节点数据同步 gateway.recover_after_nodes: 3 # ---------------------------------- Various ----------------------------------- #action.destructive_requires_name: true ### 禁用/启用http协议 http.cors.enabled: true http.cors.allow-origin: "*"
|