3. enabele node allocation & recovery shards status
升級完畢開回自動分配 並查看後續shards回復狀態(到全綠色)
dev_tools
PUT _cluster/settings { "persistent": { "cluster.routing.allocation.enable": null } } GET _cat/recovery
4. get info after rolling upgrade
其他查看節點升級狀態的api
dev_tools
GET _cat/nodes GET _cat/health?v GET /_cat/nodes?h=ip,name,version&v
Cluster troubleshooting
dev_tools
GET _cluster/health?level=indices GET _cluster/health?level=shards GET _cluster/health/nginx-log-2020.06.18-000742?level=shards GET _cluster/allocation/explain
Set watermark
dev_tools
PUT _cluster/settings { "transient": { "cluster.routing.allocation.disk.watermark.low": "80%", "cluster.routing.allocation.disk.watermark.high": "85%", "cluster.routing.allocation.disk.watermark.flood_stage": "90%" } } GET _cluster/settings