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

Tuning elasticsearch shard and replica #4689

Merged
merged 3 commits into from
Sep 30, 2018

Conversation

safwanrahman
Copy link
Member

@safwanrahman safwanrahman commented Sep 30, 2018

https://www.elastic.co/guide/en/elasticsearch/reference/current/_basic_concepts.html#getting-started-shards-and-replicas

https://www.elastic.co/guide/en/elasticsearch/guide/current/replica-shards.html#img-three-nodes

We need to change the replica dynamically
you can run following command in django shell to change the replica

from readthedocs.search.documents import page_conf, page_index
page_index.put_settings(page_conf['settings'])

@ericholscher ericholscher merged commit ab0b1bb into readthedocs:master Sep 30, 2018
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

Successfully merging this pull request may close these issues.

2 participants