项目环境中,有一个不重要的辅助功能用到了 Elasticsearch,给的服务器资源有限,只能部署一个单机 Elasticsearch。刚部署完成时,health 状态为正常的 green,但是过了几天后,在查看 Elasticsearch 的 health,已经变为 yellow :
[root@web-01 ~]# curl -X GET "10.88.0.92:9200/_cluster/health?pretty"
{
"cluster_name" : "yxfes",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,