curl -XGET localhost:9200/_cluster/settings
让我ElasticSearch服务器设置我看到持续性和短暂的设置。
{
"persistent": {
"cluster.routing.allocation.cluster_concurrent_rebalance": "0",
"threadpool.index.size": "20",
"threadpool.search.size": "30",
"cluster.routing.allocation.disable_allocation": "false",
"threadpool.bulk.size": "40"
},
"transient": {}
}
如果我设置了永久设置,它不会将它保存到我的config/elasticsearch.yml
配置文件中?所以我的问题是当我的服务器重新启动时,它如何知道我的持久设置是什么?
不要告诉我不要担心,因为我几乎失去了数据的我的整个集群的价值,因为它在我的配置文件中找到的所有设置后重新启动该项目,不超过:)
FWIW,你的数据目录可能是'在/ var/lib中/ elasticsearch'(见https://www.elastic.co/guide/ en/elasticsearch/reference/current/setup-dir-layout.html以获取具体信息) – Dusty