Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to build three Cluster Services locally in elasticsearch

Shulou Source: shulou.com Published: 2022-06-02 04:43:49 09月29日 Update

This article mainly explains "how to build three cluster services locally in elasticsearch". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to build three cluster services locally in elasticsearch.

Need to delete the DATA folder

Modify the configuration file in config/elasticsearch.yml

# allow cross-domain access to http.cors.enabled: truehttp.cors.allow-origin: "*" # configuration information of Node 1 # Cluster name is guaranteed to be unique. If the name in the same cluster is to be the same cluster.name: my-elasticsearch# node name, it must be different. Node.name: node-3# must be the local ip address network.host: 127.0.0.The service port number Http.port: 9203transport.tcp.port: 9303discovery.zen.ping.unicast.hosts: ["127.0.0.1 9303discovery.zen.ping.unicast.hosts 9301", "127.0.0.1 9303discovery.zen.ping.unicast.hosts"] Thank you for your reading. These are the contents of "how to build three Cluster Services locally in elasticsearch". After the study of this article I believe you have a deeper understanding of how to build three cluster services locally in elasticsearch, and the specific usage needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Cluster service three learning consistency content name file node configuration information slogan address that is ideas situations folders articles more machines Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn NVidia MariaDB Huawei OPPO Reno