Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to disable replica shard via configuration? #2727

Closed
2xmax opened this issue Jan 22, 2015 · 4 comments
Closed

Is there a way to disable replica shard via configuration? #2727

2xmax opened this issue Jan 22, 2015 · 4 comments

Comments

@2xmax
Copy link

2xmax commented Jan 22, 2015

Hi,

When I create a simple configuration with one node I have 1 unassigned ".kibana" replica shard, it affects my ES cluster health. As I know, replica shard cannot be located in primary shard node so I have no other way apart from to delete it. So, in this case I would to specify explicitly in kibana.yml whether I need replica shard or not.

I found this value hardcoded

Does it makes sense? Was this setting has been hardcoded by design?

@2xmax 2xmax changed the title Is there a way to disable replica shard via configuration Is there a way to disable replica shard via configuration? Jan 22, 2015
@rashidkpc
Copy link
Contributor

That value is set on index creations, however replica shards can be configured via elasticsearch. See here for changing replica counts: http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/replica-shards.html

@2xmax
Copy link
Author

2xmax commented Jan 29, 2015

Thx. Yes, of course I can make PUT request with template in initialization script.

Do you think it would be better if you locate it as config such way instead of current hardcoded approach: https://github.com/logstash-plugins/logstash-output-elasticsearch/blob/master/lib/logstash/outputs/elasticsearch/elasticsearch-template.json

@rashidkpc
Copy link
Contributor

You'd probably be better off asking that question in the logstash channel on freenode

@2xmax
Copy link
Author

2xmax commented Jan 30, 2015

it seems you I did not explain it well. I mean, that would be great have have index template file (e.g. elatiscsearch-template.js) somewhere outside of.create_kibana_index.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants