如何为单个集群(Standalone集群)ElasticSearch配置单个节点 [英] How to config Single node for Single Cluster (Standalone Cluster) ElasticSearch

查看:268
本文介绍了如何为单个集群(Standalone集群)ElasticSearch配置单个节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地计算机上安装了弹性搜索,我想将其配置为集群(独立服务器)中唯一的一个节点.这意味着每当我创建一个新索引时,该索引将仅对我的服务器可用.他人的服务器将无法访问它.

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 will only available to my server. It will not be accessible to other's server.

在我当前的情况下,这些索引可用于其他服务器(这些服务器在群集中形成),并且它们可以对我的索引进行任何更改.但是我不想要它.

My current scenario these indexes are available to other servers (the servers are formed in a cluster), and they can make any changes to my indexes. But I don't want it.

我浏览了其他一些博客,但没有找到最佳的解决方案.那么,您能不能让我知道相同的步骤?

I went through some other blogs but not getting best solution. So can you please let me know steps for same?

推荐答案

我从 Kimchy:将节点设置为local(true),这意味着它不会使用网络发现其他节点,仅在同一JVM内.

Kimchy : You set the node to local(true), this means it will not discover other nodes using network, only within the same JVM.

在elasticsearch/bin/elasticsearch.yml文件中

in elasticsearch/bin/elasticsearch.yml file

node.local: true # disable network

这篇关于如何为单个集群(Standalone集群)ElasticSearch配置单个节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆