When I launch elasticsearch (with logstash), it consumes 100% of the CPU.
If I check the status of the cluster I can see
{
"cluster_name": "elasticsearch",
"status": "red",
"timed_out": false,
"number_of_nodes": 2,
"number_of_data_nodes": 1,
"active_primary_shards": 301,
"active_shards": 301,
"relocating_shards": 0,
"initializing_shards": 4
"unassigned_shards": 300
}
Why do I have so many active shards? Where can I configure it?
I tried to configure the threadpool, the cahe and the memory (https://gist.github.com/reyjrar/4364063)
I tried
curl -XPUT 'localhost:9200/_settings' -d ' {"index.routing.allocation.disable_allocation": false}'
My kibana is very slow and I cannot use it any more.
I have 30gb of indexes for 45 days of logs.