How to config Single node for Single Cluster (Standalone Cluster) ElasticSearch

后端 未结 9 700
一向
一向 2021-01-30 17:13

I installed elastic search in my local machine, I want to configure it as the only one single node in the cluster(Standalone Server). it means whenever I create a new index, it

9条回答
  •  忘了有多久
    2021-01-30 17:27

    If you're using a network transport in your code, this won't work, as node.local gives you a LocalTransport only:

    http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-transport.html#_local_transport

    The trick then is to set

    discovery.zen.ping.multicast: false

    in your elasticsearch.yml which will stop your node looking for any other nodes.

    http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-discovery-zen.html#multicast

    I'm not sure if this prevents other nodes from discovering yours though; I only needed this to affect a group of nodes with the same settings on the same network.

提交回复
热议问题