-
Notifications
You must be signed in to change notification settings - Fork 36
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
Replace production couch node 1 #6116
Conversation
b72266b
to
bf6d105
Compare
bf6d105
to
387d2a8
Compare
@@ -0,0 +1,2 @@ | |||
target_allocation: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious what this file is used for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In https://confluence.dimagi.com/display/saas/Replace+a+Couch+node+in+Couch+cluster, it's the PLAN_FILE that is used in phase 2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taking a stab at answering this cause why not 😅 I believe we reference this migration file when running cchq ${ENV} migrate-couchdb ${PLAN_FILE} plan
in phase 2 of adding this node. And then it looks like that file is used to allocate shards properly via couchdb-cluster-admin.
So then the syntax here is saying that we have three nodes and should make three copies of data across these nodes, which might be the same as saying 1 copy per node?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dang Danny beat me to it haha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah but you said it better, Graham :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dannyroberts and @gherceg. That was super helpful :)
https://dimagi-dev.atlassian.net/browse/SAAS-14844
This PR will be applied using Phase 2 of https://confluence.dimagi.com/display/saas/Replace+a+Couch+node+in+Couch+cluster (applied to just this one node replacement).
Environments Affected
production