Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Simplify mongo opLogSize calculation #7392
Conversation
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
jujubot
merged commit 9761475
into
juju:develop
May 25, 2017
1 check passed
github-check-merge-juju
Built PR, ran unit tests, and tested LXD deploy. Use !!.*!! to request another build. IE, !!build!!, !!retry!!
Details
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wupeka commentedMay 25, 2017
•
Edited 1 time
-
wupeka
May 25, 2017
Description of change
The previous method was based on available disk space:
Since each change in opLogSize requires restarting mongo restarting jujud while available disk space was varying between 10G and 20G caused mongo restart, which could cause problems in HA environments.
The new method is simply 512MB if available disk space below 15G, 1G if above - this should limit mongo restarts to minimum.
QA steps
Bootstrap controller with 50G free space available, fill the disk to 18G available, restart jujud, verify that mongo wasn't restarted, fill the disk to 13G available, restart jujud, verify that mongo was restarted, fill the disk to 5G available, verify that mongo wasn't restarted.
Documentation changes
None
Bug reference
https://bugs.launchpad.net/juju/+bug/1677592