1.集群健康值
curl -xget ""
2.集群狀態
curl -xget ""
3.集群統計:
curl -xget ""
4.節點狀態
curl -xget ""
5.索引資訊
curl -xget ""
6.文件總量
curl -xget ""
7.強制分片分配(非專業人員禁止執行!!!)
curl -xpost '***.***.***.***:9200/_cluster/reroute' -d '}]}'
8.分片移動(非專業人員禁止執行!!!)
首先需要禁用分片的自動均衡
cluster.routing.allocation.enable:none
cluster.routing.rebalance.enable:none
curl -xpost "***.***.***.***:9200/_cluster/reroute" -d '}]}'
9.未分配分片詳細原因查詢
curl -xget "***.***.***.***:9200/_cluster/allocation/explain" -d ''
10.設定索引的重新整理時間
curl -xput '' -d '}'
curl -xput '' -d ''
curl -xput '' -d '}'
11.設定查詢返回資料的大小
curl -xput '' -d '}'
12.歸併執行緒限速
curl -xput '' -d '}'
13.強制段合併
16.修改索引副本數
put index/_settings
18、新增別名
post _aliases
}]}19、檢視段合併情況
http://ip:埠/_cat/segments?v
http://ip:埠/_cat/segments?v
20、檢視任務並停止
檢視任務:
http://ip:埠/_cat/tasks?v
停止任務:
curl -xpost 'http://ip:埠/_tasks/hevu8bips7yn1myv26yblg:192942739/_cancel'
21.查詢時增加引數。
"profile": true, //查詢時曾加該引數,用來分析查詢速度慢的問題。
22、建立索引
put book_v5
//不分詞}}
}}//分詞!!!}}
}}
Linux運維基本命令詳解
ls命令 ls a 列出目錄所有檔案,包含以.開始的隱藏檔案 ls a 列出除.及.的其它檔案 ls r 反序排列 ls t 以檔案修改時間排序 ls s 以檔案大小排序 ls h 以易讀大小顯示 ls l 除了檔名之外,還將檔案的許可權 所有者 檔案大小等資訊詳細列出來 mkdir命令 在這裡插入...
Linux運維常用指令碼命令
1 開頭加直譯器 bin bash 2 語法縮排,使用四個空格 多加注釋說明。3 命名建議規則 變數名大寫 區域性變數小寫,函式名小寫,名字體現出實際作用。4 預設變數是全域性的,在函式中變數local指定為區域性變數,避免汙染其他作用域。5 有兩個命令能幫助我除錯指令碼 set e 遇到執行非0時...
Linux運維 Linux的基本命令(一)
一.file 檢視檔案型別 1.格式 file options args 2.選項 二.cat 作用 1 一次性檢視整個檔案 1 格式 cat options args 2 從鍵盤輸入建立乙個新檔案或向現有檔案中新增新資料 1 新建新檔案 格式 cat new file name uinx comm...