Hi! I ran into two questions during indexing.
-
I saw a lot of HEAD request with 404 Not Found. I tried to find what HEAD request is about, but couldn't

-
The cluster health is in yellow - although all three nodes work actively.
Thanks in advance!
Hi! I ran into two questions during indexing.
I saw a lot of HEAD request with 404 Not Found. I tried to find what HEAD request is about, but couldn't 
The cluster health is in yellow - although all three nodes work actively.
Thanks in advance!
/_cat/shards ( https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-shards.html ) to see which shards are causing issues.Hi Yannick,
For 1) I see those in elasticsearch log (in server).
2) would it be the same case when one of the nodes (I have three) is randomly shown unhealthy ?
/_cluster/health?pretty

{
cluster_name: "",
status: "yellow",
timed_out: false,
number_of_nodes: 2,
number_of_data_nodes: 2,
active_primary_shards: 18,
active_shards: 36,
relocating_shards: 0,
initializing_shards: 0,
unassigned_shards: 18
}
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.
Googling might also help. HEAD requests are nothing Elasticsearch-specific.Oh my bad! I'm sorry for missing the wikipedia link 
As for the second, maybe I should wait until indexing is done and see what happens.. I only see 200s except the HEAD 404s in all three nodes.
Thank you for your help! (I should've said this earlier)
You're welcome.
A HEAD request in ES is used to determine if a document exists or not, so a 200 means the doc exists while a 404 means it doesn't.
© 2020. All Rights Reserved - Elasticsearch
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.