Updating a mongoCluster
-
07-10-2020 - |
سؤال
We have Mongodb 3.2.6 as a cluster with 2 arbiter and 2 working data nodes running.
Now we want to update to version 3.4.3.
What is the intended way of doing this?
- Can I update one by one and will replication with mixed versions be a supported scenario?
- Do I have to remove individual node from cluster and update them then add back to cluster?
I am open to any suggestion with best practices.
المحلول
OK, First thing first... Two arbiters and two data nodes is not a good configuration.
Vote count should be odd, not even. So two data nodes and one arbiter.
But what comes to update, answer is with "rolling manner"..
- Upgrade arbiter(s)
- Upgrade secondary
- Step down primary and when it's secondary/stopped, upgrade it.
That's it!
لا تنتمي إلى dba.stackexchange