asrozar
(Asrozar)
March 27, 2015, 7:15pm
1
I have an elasticsearch host (single) that has a few hundred unassigned
shards.
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true '
{
"cluster_name" : "elasticsearch",
"status" : "red",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 291,
"active_shards" : 291,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 429,
"number_of_pending_tasks" : 0
}
I'd love to fix this, I've tried to re-route them with this;
curl -XPOST 'localhost:9200/_cluster/reroute' -d '{"commands": [
{"allocate": {
"index": "logstash-2015.02.17",
"shard": 4,
"node": "FSLSO-LOGSERVER",
"allow_primary": true }
}]
}'
I get the error, "Is not allowed, reason: [NO(shard cannot be allocated on
same node [cGB66XJqTbeo9zstZTE2Eg] it already exists on".
Is there a way around this?
Is there a way to just delete the unassigned shards?
--
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 .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7e7f6173-1606-48f6-be11-865c50525284%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
In a single node cluster set the replica count to 0. The shards will clean
themselves up automatically. Don't forget to do regular backups as you
have no redundancy.
On Friday, March 27, 2015 at 1:15:38 PM UTC-6, avery...@insecure-it.com
wrote:
I have an elasticsearch host (single) that has a few hundred unassigned
shards.
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true '
{
"cluster_name" : "elasticsearch",
"status" : "red",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 291,
"active_shards" : 291,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 429,
"number_of_pending_tasks" : 0
}
I'd love to fix this, I've tried to re-route them with this;
curl -XPOST 'localhost:9200/_cluster/reroute' -d '{"commands": [
{"allocate": {
"index": "logstash-2015.02.17",
"shard": 4,
"node": "FSLSO-LOGSERVER",
"allow_primary": true }
}]
}'
I get the error, "Is not allowed, reason: [NO(shard cannot be allocated
on same node [cGB66XJqTbeo9zstZTE2Eg] it already exists on".
Is there a way around this?
Is there a way to just delete the unassigned shards?
--
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 .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b9247b4d-bfe2-499d-9881-e299286547b2%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
warkolm
(Mark Walkom)
March 31, 2015, 1:46am
3
To elaborate, you cannot assign replicas in a single node cluster, it makes
no sense to assign these to the same node as you get no redundancy.
Which is why ES will not allow you to force assign them.
On 31 March 2015 at 10:48, Aaron Mefford aaron@mefford.org wrote:
In a single node cluster set the replica count to 0. The shards will
clean themselves up automatically. Don't forget to do regular backups as
you have no redundancy.
On Friday, March 27, 2015 at 1:15:38 PM UTC-6, avery...@insecure-it.com
wrote:
I have an elasticsearch host (single) that has a few hundred unassigned
shards.
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true '
{
"cluster_name" : "elasticsearch",
"status" : "red",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 291,
"active_shards" : 291,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 429,
"number_of_pending_tasks" : 0
}
I'd love to fix this, I've tried to re-route them with this;
curl -XPOST 'localhost:9200/_cluster/reroute' -d '{"commands": [
{"allocate": {
"index": "logstash-2015.02.17",
"shard": 4,
"node": "FSLSO-LOGSERVER",
"allow_primary": true }
}]
}'
I get the error, "Is not allowed, reason: [NO(shard cannot be allocated
on same node [cGB66XJqTbeo9zstZTE2Eg] it already exists on".
Is there a way around this?
Is there a way to just delete the unassigned shards?
--
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 .
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/b9247b4d-bfe2-499d-9881-e299286547b2%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/b9247b4d-bfe2-499d-9881-e299286547b2%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout .
--
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 .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-sSDLg-ki%2BYL_Txi69vBuyq_a65N8aP1o%3DhzWZ61dJKA%40mail.gmail.com .
For more options, visit https://groups.google.com/d/optout .