Sorry I had to delete the actual names
[2016-03-24 17:59:42,900][INFO ][request ] [] HEAD /abc/ab/11111 - 404 NOT_FOUND 0 0
[2016-03-24 17:59:42,900][INFO ][request_json ] {"time":"2016-03-24T17:59:42.900Z","starttime":"2016-03-24T17:59:42.900Z","localaddr":"12.12.1.31","localport":9200,"remoteaddr":"12.12.1.31","remoteport":23644,"scheme":"http","method":"HEAD","path":"/abc/ab/11111","querystr":"-","code":404,"status":"NOT_FOUND","size":0,"duration":0,"year":"2016","month":"03","day":"24","hour":"17","minute":"59","dow":"Thu","cluster":""}
The number of unassigned_shards is 18 because one of the nodes fails alternatively between nodes. Like Node1 was gone for a while then Node1 got back without me doing anything and at the same time Node2 was gone..
With "remoteaddr":"12.12.1.31" you can see that an application is issuing a HEAD request to a document in your cluster from that IP address. Do you have an application running that is accessing your cluster?
Seems like you have index.number_of_replicas set to 2 (which means that you have 3 copies of each shard). As only 2 nodes are in the cluster, a third of the shards cannot be allocated. Why are nodes failing? You have to look into the logs.
yeah.. actually, my original question was what HEAD request is about. for example, we know PUT is to update, GET to search/get, POST to add/save, but I have not seen HEAD request until today.
back to my original question this as well... there are three actively alive nodes, which are still indexing the given documents, but the cluster keeps saying only two of them are healthy, and the unhealthy node changes continuously.
I linked you to Wikipedia which has the explanation. Do you want me to copy-paste the text here? Googling might also help. HEAD requests are nothing Elasticsearch-specific.
I asked you to look into the logs. If you don't provide any other information, I cannot help you.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.