linux运维相关

批量查找进程并杀死

ps -ef | grep start_index.sh | grep -v grep | awk '{print $2}' | xargs kill -9

设置es 索引分片

curl -XPUT http://x.x.x.x:9200/consultantindex -d'{"settings":{"number_of_shards":2,"number_of_replicas":1}}'
{"acknowledged":true,"shards_acknowledged":true}

查看es 内存使用情况

http://x.x.x.x:9200/_cat/nodes?v&h=host,heap.current,heap.percent,heap.max,ram.max,disk.avail,node.role,m

你可能感兴趣的:(linux运维相关)