Skip to content

Commit 3874dee

Browse files
pablomhclaude
andcommitted
Use candlepin.service in foreman startup ordering
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>
1 parent 9e97fc1 commit 3874dee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/roles/foreman/tasks/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@
126126
WantedBy=default.target foreman.target
127127
[Unit]
128128
PartOf=foreman.target
129-
Wants=redis.service postgresql.service
130-
After=foreman.target redis.service postgresql.service
129+
Wants=redis.service postgresql.service candlepin.service
130+
After=foreman.target redis.service postgresql.service candlepin.service
131131
notify: Restart foreman
132132

133133
- name: Deploy Dynflow Container

0 commit comments

Comments
 (0)