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

feat: add configurable retries with exponential backoff #119

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

rroberts2222
Copy link
Contributor

Description

On windows blackbox was preventing log rotation when configured with invalid syslog credentials as it was locking the file while trying to endlessly reconnect. This change makes it so that blackbox exits which unlocks the file and indicates that the config is invalid.

  • blackbox now exits when it runs out of retries
  • default behavior does not change, configure max_retries to enable

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Testing performed?

  • Unit tests
  • Integration tests
  • Acceptance tests

Checklist:

  • This PR is being made against the main branch, or relevant version branch
  • I have made corresponding changes to the documentation
  • I have added testing for my changes

If you have any questions, or want to get attention for a PR or issue please reach out on the #logging-and-metrics channel in the cloudfoundry slack

syslog/drainer.go Outdated Show resolved Hide resolved
- blackbox now exits when it runs out of retries
- default behavior does not change, configure max_retries to enable

On windows blackbox was preventing log rotation when configured with
invalid syslog credentials as it was locking the file while trying to
endlessly reconnect. This change makes it so that blackbox exits which
unlocks the file and indicates that the config is invalid.

Signed-off-by: Carson Long <[email protected]>
Signed-off-by: Rebecca Roberts <[email protected]>
Signed-off-by: Andrew Crump <[email protected]>
@ctlong ctlong merged commit 5f3e237 into cloudfoundry:main Apr 24, 2024
4 checks passed
@ctlong ctlong deleted the connection-max-retries branch April 24, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants