Skip to content
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

Bugfix/update machines cache #73

Merged
merged 3 commits into from
Oct 21, 2015
Merged

Commits on Oct 21, 2015

  1. Schedule update of machines cache when api_execute call has failed

    Such situation could happen if we replaced all etcd nodes except one
    which was used by patroni. After replacing the last node patroni will
    try to execute request on all other nodes from machines_cache but non of
    them are available. Michines cache would became empty and patroni will
    stick to the latest node which was available in the machines_cache and
    will never try to refresh machines_cache from dns for example.
    
    Currently machines cache is refreshed only when one request to the etcd
    cluster has failed, but probably it should be done periodically, for
    example every minute...
    Alexander Kukushkin committed Oct 21, 2015
    Configuration menu
    Copy the full SHA
    0096b6b View commit details
    Browse the repository at this point in the history
  2. format tests according to the latest pep8 standards

    Alexander Kukushkin committed Oct 21, 2015
    Configuration menu
    Copy the full SHA
    8bd2850 View commit details
    Browse the repository at this point in the history
  3. remove debug print statement

    Alexander Kukushkin committed Oct 21, 2015
    Configuration menu
    Copy the full SHA
    c4a6dd4 View commit details
    Browse the repository at this point in the history