前言
- 本文对
Elasticsearch
7.17 适用
节点角度
GET _cat/nodes?v&s=name&h=name,segmentsCount,segmentsMemory
GET _nodes/thread_pool
- 配置节点上段合并的线程数(
elasticsearch.yml
)(官方文档)
thread_pool:
force_merge:
size: 2
# 或者用下面的格式
thread_pool.force_merge.size: 2
索引角度
- 查看索引
index segment
情况(官方文档)
GET my_index/_segments
- 查看索引
cat segment
情况(官方文档)
GET _cat/segments/my_index?v&h=index,shard,prirep,segment,docs.count,docs.deleted,size
GET _cat/indices/index_*?s=segmentsCount:desc&v&h=index,segmentsCount,segmentsMemory,memoryTotal,mergesCurrent,mergesCurrentDocs,storeSize,p,r
GET _tasks?detailed=true&actions=*forcemerge&human
GET _cat/thread_pool/force_merge?v&s=node_name
PUT my-index/_settings
{
"index.merge.scheduler.max_thread_count": 4
}
POST my_index/_forcemerge?max_num_segments=1
POST my_index/_cache/clear
本文出自 qbit snap
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。