Skip to content

Conversation

tmanninger
Copy link

Summary

This PR makes it possible to configure systemd rate-limiting parameters (StartLimitIntervalSec and StartLimitBurst) in unit files created by docker::run.

Why is this needed?

Some container workloads may crash repeatedly on startup due to temporary conditions.
Without configurable StartLimit values, systemd may delay or prevent restarts too early.
This patch gives users control over these limits to better suit their use case.

Changes

Added two new optional parameters to docker::run:
start_limit_interval_sec and start_limit_burst

Added the same two optional parameters to the main docker class for global configuration:
start_limit_interval_sec and start_limit_burst

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

@tmanninger tmanninger requested a review from a team as a code owner August 29, 2025 11:49
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


t.manninger seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants