What does this mean and how do I fix it?
here is my code I am using c# NEST
client.CreateIndex(messageTime);
var values = new { ChatType = chatType, Player = userName, Message = message, Time = DateTime.Now };
var indexResponse = client.Index(values, descriptor => descriptor.Index(messageTime).Type("ChatLog"));
Console.WriteLine(indexResponse.DebugInformation.ToString());
Please don't post images of text as they are hardly readable and not searchable.
Instead paste the text and format it with </>
icon. Check the preview window.
Sounds like you have too many shards on your nodes.
what are shards and nodes? I have 1 elastic search server that im trying to run chatlog on
What is the full output of the cluster health API?
{
"cluster_name": "docker-cluster",
"status": "yellow",
"timed_out": false,
"number_of_nodes": 1,
"number_of_data_nodes": 1,
"active_primary_shards": 502,
"active_shards": 502,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 498,
"delayed_unassigned_shards": 0,
"number_of_pending_tasks": 0,
"number_of_in_flight_fetch": 0,
"task_max_waiting_in_queue_millis": 0,
"active_shards_percent_as_number": 50.2
}
You have over 500 shards on the node which is quite s lot. It does look like you have a replica enabled and that the calculation includes this. If you change your index settings to disable replicas, which is fine as you only have one node, the error should go away. I would however recommend looking into why you have so many shards and rectify this.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.