~roadmr/charms/trusty/elasticsearch/es2-charm-retry-harder

Viewing all changes in revision 46.

  • Committer: Daniel Manrique
  • Date: 2017-03-09 20:42:17 UTC
  • Revision ID: roadmr@ubuntu.com-20170309204217-ysnqeiyto92apfl9
Retry a few times while checking if unit joined the cluster.

Instead of just pausing for 30 seconds, which in practice sometimes
doesn't give enough time for the new unit to join the cluster,
poke the cluster health every 15 seconds, a maximum of 6 times (total
wait time: 90 seconds) but continue if we see a successful join at any
retry. Should be more responsive to early joins while more resilient to slow
joins.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: