Eddy_Meds
(Eddy Meds)
August 28, 2014, 4:04pm
1
Hello
I created an index with 3 primarys shards but ElasticSearch return and
indicate that there are 4 primary shards.
Deleting the data in the cluster
DELETE /_all
Create an index with 3 primary shards with 1 replica each
PUT /blogs
{
"settings" : {
"number_of_shards" : 3,
"number_of_replicas" : 1
}
}
Retrieve the cluster health
GET /_cluster/health
And here is the response :
{
"cluster_name": "clus",
"status": "yellow",
"timed_out": false,
"number_of_nodes": 1,
"number_of_data_nodes": 1,
"active_primary_shards": 4,
"active_shards": 4,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 4
}
I thought that there was only the number of replica shards that could
change and that the number of primary shards was fixed at the time that the
index was created, where does come from the fourth primary shard ?
--
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/bf10106b-d5c5-472b-ab73-a6e747e44e43%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
warkolm
(Mark Walkom)
August 28, 2014, 10:36pm
2
Are you using marvel at all? It uses an index with a single shard by
default.
Regards,
Mark Walkom
Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com
On 29 August 2014 02:04, Eddy Meds zqckfair@gmail.com wrote:
Hello
I created an index with 3 primarys shards but Elasticsearch return and
indicate that there are 4 primary shards.
Deleting the data in the cluster
DELETE /_all
Create an index with 3 primary shards with 1 replica each
PUT /blogs
{
"settings" : {
"number_of_shards" : 3,
"number_of_replicas" : 1
}
}
Retrieve the cluster health
GET /_cluster/health
And here is the response :
{
"cluster_name": "clus",
"status": "yellow",
"timed_out": false,
"number_of_nodes": 1,
"number_of_data_nodes": 1,
"active_primary_shards": 4,
"active_shards": 4,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 4
}
I thought that there was only the number of replica shards that could
change and that the number of primary shards was fixed at the time that the
index was created, where does come from the fourth primary shard ?
--
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/bf10106b-d5c5-472b-ab73-a6e747e44e43%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/bf10106b-d5c5-472b-ab73-a6e747e44e43%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/CAEM624aN3kd8nMrofbq6Qa-N0bxZ8DcHd8JDw1AudV7yaAO0Gg%40mail.gmail.com .
For more options, visit https://groups.google.com/d/optout .
Eddy_Meds
(Eddy Meds)
August 28, 2014, 11:03pm
3
Yes thanks, that was Marvel !
On Thursday, August 28, 2014 6:04:39 PM UTC+2, Eddy Meds wrote:
Hello
I created an index with 3 primarys shards but Elasticsearch return and
indicate that there are 4 primary shards.
Deleting the data in the cluster
DELETE /_all
Create an index with 3 primary shards with 1 replica each
PUT /blogs
{
"settings" : {
"number_of_shards" : 3,
"number_of_replicas" : 1
}
}
Retrieve the cluster health
GET /_cluster/health
And here is the response :
{
"cluster_name": "clus",
"status": "yellow",
"timed_out": false,
"number_of_nodes": 1,
"number_of_data_nodes": 1,
"active_primary_shards": 4,
"active_shards": 4,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 4
}
I thought that there was only the number of replica shards that could
change and that the number of primary shards was fixed at the time that the
index was created, where does come from the fourth primary shard ?
--
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/e998670b-8a8d-4ecd-ad6b-a92799f1bebf%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .