bookmark/data/es/elasticsearch.yml
2021-03-09 11:40:21 +08:00

30 lines
1.8 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

cluster.name: elasticsearch
# 配置的集群名称默认是elasticsearches服务会通过广播方式自动连接在同一网段下的es服务通过多播方式进行通信同一网段下可以有多个集群通过集群名称这个属性来区分不同的集群。
node.name: bookmark-world
# 当前配置所在机器的节点名你不设置就默认随机指定一个name列表中名字该name列表在es的jar包中config文件夹里name.txt文件中其中有很多作者添加的有趣名字。
node.master: true
# 指定该节点是否有资格被选举成为node注意这里只是设置成有资格 不代表该node一定就是master默认是truees是默认集群中的第一台机器为master如果这台机挂了就会重新选举master。
node.data: true
# 指定该节点是否存储索引数据默认为true。
bootstrap.memory_lock: false
# 设置为true来锁住内存不进行swapping。因为当jvm开始swapping时es的效率 会降低所以要保证它不swap可以把ES_MIN_MEM和ES_MAX_MEM两个环境变量设置成同一个值并且保证机器有足够的内存分配给es。 同时也要允许elasticsearch的进程可以锁住内# # 存linux下启动es之前可以通过`ulimit -l unlimited`命令设置。
# 设置为true导致报警告实际未锁定进而推出进程
network.bind_host: 0.0.0.0
# 设置绑定的ip地址可以是ipv4或ipv6的默认为0.0.0.0绑定这台机器的任何一个ip。
#network.publish_host: 192.168.0.1
# 设置其它节点和该节点交互的ip地址如果不设置它会自动判断值必须是个真实的ip地址。
#network.host: 192.168.0.1
# 这个参数是用来同时设置bind_host和publish_host上面两个参数。
discovery.seed_hosts:
- bookmark-es
cluster.initial_master_nodes:
- bookmark-world