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

Projects
None yet
2 participants
@safwanrahman
Member

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'])

@safwanrahman safwanrahman requested a review from ericholscher Sep 30, 2018

@ericholscher ericholscher merged commit ab0b1bb into rtfd:master Sep 30, 2018

1 check was pending

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment