I'm running elastic search on a single server right now with shards
set to 6 for future addition of nodes. When i restart the server I
always get roughtly as many unassigned shards as active shards and
looking at each index's details they all look the same, i.e.
active_shards + unassigned_shards = number_of_shards * 2, where each
"shard" has both an active_shard and an unassigned_shard like this:
"site_1234": {
"status": "yellow",
"number_of_shards": 6,
"number_of_replicas": 1,
"active_primary_shards": 6,
"active_shards": 6,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 6,
"shards": {
"0": {
"status": "yellow",
"primary_active": true,
"active_shards": 1,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 1
},
...
},
}
Clearly something is off since it causes the status for the index to
be yellow and the whole server red, but everything is working fine as
well.
Any suggestions on what I may have misconfigured?
thanks,
arne
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
That's because you activated 1 replicas and running on a single machine, it
makes little to no sense to put the replicas on the same machine as the
primary, so the replicas are not being allocated, which cause half of your
shard (replicas) to not being allocated and your cluster to be in yellow
state.
Jerome
On Friday, March 22, 2013 4:18:09 PM UTC-4, Arne Claassen wrote:
I'm running Elasticsearch on a single server right now with shards
set to 6 for future addition of nodes. When i restart the server I
always get roughtly as many unassigned shards as active shards and
looking at each index's details they all look the same, i.e.
active_shards + unassigned_shards = number_of_shards * 2, where each
"shard" has both an active_shard and an unassigned_shard like this:
"site_1234": {
"status": "yellow",
"number_of_shards": 6,
"number_of_replicas": 1,
"active_primary_shards": 6,
"active_shards": 6,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 6,
"shards": {
"0": {
"status": "yellow",
"primary_active": true,
"active_shards": 1,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 1
},
...
},
}
Clearly something is off since it causes the status for the index to
be yellow and the whole server red, but everything is working fine as
well.
Any suggestions on what I may have misconfigured?
thanks,
arne
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Yup, that does not make sense. I had intended 0 replicas but clearly
made a mistake in my configuration. Thanks for pointing it out
On Mar 25, 7:27 am, Jérôme Gagnon jerome.gagno...@gmail.com wrote:
That's because you activated 1 replicas and running on a single machine, it
makes little to no sense to put the replicas on the same machine as the
primary, so the replicas are not being allocated, which cause half of your
shard (replicas) to not being allocated and your cluster to be in yellow
state.
Jerome
On Friday, March 22, 2013 4:18:09 PM UTC-4, Arne Claassen wrote:
I'm running Elasticsearch on a single server right now with shards
set to 6 for future addition of nodes. When i restart the server I
always get roughtly as many unassigned shards as active shards and
looking at each index's details they all look the same, i.e.
active_shards + unassigned_shards = number_of_shards * 2, where each
"shard" has both an active_shard and an unassigned_shard like this:
"site_1234": {
"status": "yellow",
"number_of_shards": 6,
"number_of_replicas": 1,
"active_primary_shards": 6,
"active_shards": 6,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 6,
"shards": {
"0": {
"status": "yellow",
"primary_active": true,
"active_shards": 1,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 1
},
...
},
}
Clearly something is off since it causes the status for the index to
be yellow and the whole server red, but everything is working fine as
well.
Any suggestions on what I may have misconfigured?
thanks,
arne
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.