Automatic hook retries in Juju 2.0
Bogdan Teleaga
bteleaga at cloudbasesolutions.com
Thu Jun 30 16:26:36 UTC 2016
Hey Casey,
They are all retried using the same policy.
The constants that control the delay are here:
https://github.com/juju/juju/blob/master/apiserver/retrystrategy/retrystrategy.go#L21
Basically it's an exponential backoff with a factor of 2 that starts at 5 seconds and has a maximum of 5 minutes, so 5, 10, 20...up to 300 seconds.
Iirc attempting a manual retry will reset this timer. It also never gives up.
Cheers,
Bogdan
On Jun 30, 2016, at 6:52 PM, Casey Marshall <casey.marshall at canonical.com<mailto:casey.marshall at canonical.com>> wrote:
What is the intended behavior for automatic hook retries in Juju 2.0?
Specifically, I'd like to know, as a Juju user:
Are errors in hooks all retried with the same policy, or are some retried with a different policy / strategy than others (install, for example)?
Is there a limit to the number of times Juju will retry a hook error before "giving up"?
What kind of delay can I expect between retries?
Thanks,
Casey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20160630/a4ded5ce/attachment.html>
More information about the Juju-dev
mailing list