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

Add a sleep between tries of consul service reload #494

Merged
merged 1 commit into from
Nov 17, 2019

Conversation

cmd-ntrf
Copy link
Contributor

As expressed issue #231, consul reload will fails if it happens while consul is still booting. However, the addition of multiple tries does not solve the issue as all tries can occur in a very short lapse of time.

In this PR, we introduce a sleep between each try, leaving consul up to 20 seconds between the first and the last reload to complete its boot, which should be enough.

@bastelfreak
Copy link
Member

I never understood why we have this exec resource. Can't we send a notify to the service resource?

@solarkennedy
Copy link
Contributor

The original intent was to make it so we could do a lighter weight reload instead of a full restart.

@solarkennedy
Copy link
Contributor

@cmd-ntrf can you add a trailing comma and rebase on master?

As expressed issue voxpupuli#231, consul reload will fails if it happens while consul is still booting. However, the addition of multiple tries does not solve the issue as all tries can occur in a very short lapse of time.

In this PR, we introduce a sleep between each try, leaving consul up to 20 seconds between the first and the last reload to complete its boot, which should be enough.
@cmd-ntrf
Copy link
Contributor Author

done.

@bastelfreak bastelfreak added the bug Something isn't working label Nov 17, 2019
@bastelfreak bastelfreak merged commit 4033bca into voxpupuli:master Nov 17, 2019
spuder pushed a commit to spuder/puppet-consul that referenced this pull request Feb 25, 2020
Add a sleep between tries of consul service reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants