[SIGNIFICANT] max_restarts=0 means unlimited -- no crash-loop protection #27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
max_restarts = 0means unlimited restarts. A service withrestart: "always"that crash-loops will restart forever. Exponential backoff caps atrestart_delay_max_ms(typically 60s), so a service that crashes after 1s of uptime with 1s max backoff would restart 60 times per minute, forever.There's no rate-limiting beyond the backoff cap. No "crash-loop detected" state. No emergency shutdown after N crashes in M minutes.
Impact
Files
crates/my_init_server/src/graph/service.rs--should_restart,next_restart_delaySuggested Fix
CrashLoopBackoffstate with extended delaysmax_crashes_per_hourconfig optionper issue description referencing crates/my_init_server/src/graph/service.rs: exponential backoff caps at restart_delay_max_ms but there is no crash-loop detection or max_crashes_per_hour config. A service that crashes after 1s of uptime restarts 60 times per minute indefinitely.