Add candlepin.service to foreman startup ordering - #11
Open
pablomh wants to merge 1 commit into
Open
Conversation
pablomh
force-pushed
the
candlepin_dependency
branch
5 times, most recently
from
March 19, 2026 13:16
b0d4a10 to
4026154
Compare
Foreman depends on Candlepin being fully initialised before it can
serve requests reliably. Without this ordering, foreman.service starts
simultaneously with candlepin.service, competing for CPU and disk I/O
during the JVM startup. This pushes Rails loading time close to the
default TimeoutStartSec (90s) and causes intermittent failures on
restart, particularly when the system is under load.
Because candlepin.service already declares:
After=redis.service postgresql.service
the transitive ordering becomes:
postgresql --+
+--> candlepin --> foreman
redis -------+
redis.service and postgresql.service are kept as explicit dependencies
to preserve correct ordering in future non-Katello deployments that
may not include candlepin.service.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
pablomh
force-pushed
the
candlepin_dependency
branch
from
March 19, 2026 15:11
4026154 to
3874dee
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Foreman depends on Candlepin being fully initialised before it can serve requests reliably. Without this ordering,
foreman.servicestarts simultaneously withcandlepin.service, competing for CPU and disk I/O during the JVM startup. This pushes Rails loading time close to the defaultTimeoutStartSec(90s) and causes intermittent failures on restart, particularly when the system is under load.Because
candlepin.servicealready declaresAfter=redis.service postgresql.service, the transitive ordering becomes:so the explicit
postgresql.servicedependency onforeman.serviceis no longer needed and is replaced bycandlepin.service.The lifecycle tests (
tests/target_lifecycle_test.py) are included to verify thatsystemctl stop/startandsystemctl restartonforeman.targetwork reliably after this change.