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

后端 未结 9 633
一向
一向 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:19

    In elasticsearch.yml

    # Note, that for development on a local machine, with small indices, it usually
    # makes sense to "disable" the distributed features:
    #
    index.number_of_shards: 1
    index.number_of_replicas: 0
    

    Use the same configuration in your code.

    Also to isolate the node use node.local: true or discovery.zen.ping.multicast: false

提交回复
热议问题