Commands
Check Health
curl http://172.17.0.2:9200/_cluster/health?pretty
Set Replicas Num
curl -X PUT "http://172.17.0.2:9200/_all/_settings" \
-H "Content-Type: application/json" \
-d '{
"number_of_replicas": 0
}'
Enabled Performance Analyzer
curl -XPOST localhost:9200/_plugins/_performanceanalyzer/cluster/config -H 'Content-Type: application/json' -d '{"enabled": true}'
{
"currentPerformanceAnalyzerClusterState": 0,
"shardsPerCollection": 0,
"collectorsSetting": 0,
"batchMetricsRetentionPeriodMinutes": 7
}