es cat http://localhosts:9002/_cat/nodes?v

本文详细介绍了Elasticsearch的配置参数,包括节点名称、数据路径、索引分片数量等,并展示了如何通过curl命令控制集群分配策略,适合Elasticsearch初学者及运维人员阅读。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://localhosts:9002/_cat/nodes?v&h=http,version,jdk,disk.total,disk.used,disk.avail,disk.used_percent,heap.current,heap.percent,heap.max,ram.current,ram.percent,ram.max,master

 

curl -XPUT "http://localhost:9002/_cluster/settings" -d'
{
"transient" : {
"cluster.routing.allocation.enable" : "none"
}
}'

 

 

curl -XPUT "http://localhost:9002/_cluster/settings" -d'
{
"transient" : {
"cluster.routing.allocation.enable" : "all"
}
}'

 

cluster.name: "xxx"
node.name: "nodxxx"
node.master: false
node.data: true
index.number_of_shards: 2
index.number_of_replicas: 3
discovery.zen.ping.timeout: 20s
discovery.zen.ping.unicast.hosts: ["xxxx","xxxxx"]
transport.tcp.port: 9003
nsport.tcp.port: 9003
http.port: 9002
path.data: /home/esdata
script.disable_dynamic: false
network.publish_host: ip
threadpool.bulk.type: fixed

 

转载于:https://www.cnblogs.com/gaoyuechen/p/10190735.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值