Simplify mongo opLogSize calculation #7392

Merged
merged 1 commit into from May 25, 2017

Conversation

Projects
None yet
3 participants
Member

wupeka commented May 25, 2017

Description of change

The previous method was based on available disk space:

  • 512MB if below 10G
  • linearly from 512MB to 1G for 10G to 20G
  • 1G for above 20G
    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

Member

wupeka commented May 25, 2017

$$merge$$

Contributor

jujubot commented May 25, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot 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