Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
What is this change?
Breaks out the monitor code into a separate package for use outside of keepalived.
Why is this change necessary?
Does your change need a Changelog entry?
Added a bullet point under Changed.
Do you need clarification on anything?
Were there any complications while making this change?
The monitor and keepalive code was fairly integrated, and it took some time to understand which components should be managed by keepalived vs monitor. I also had to do a lot of mucking about with mocks in the unit and integration tests.
Don't multiply a time.Duration by time.(Second|Minutes|Hours) or else you'll get ridiculous times like 27K hours for your monitor.