[control] Fix round 4: a device change during an engine switch is never skipped silently (devices_problem until the serving engine is told), and every switch ends by telling the engine that serves, also after going back
This commit is contained in:
+4
-1
@@ -309,7 +309,10 @@ allows exactly `ianitor-edge.service` and `caddy-fallback.service`, verbs start
|
||||
waits until it serves; if it does not within 20 s, it starts the old one again and reports
|
||||
`engine.switch_failed`. The switch waits for a running apply (same lock, first come first
|
||||
served: a queued switch runs right after the apply in progress, before any apply queued after
|
||||
it). Back on Pingora, edge is reloaded so it serves what was applied while Caddy served.
|
||||
it). Back on Pingora, edge is reloaded so it serves what was applied while Caddy served. Every
|
||||
switch, kept or gone back, ends by telling the engine that serves to read the device files again;
|
||||
a device change during a switch only writes them and shows `devices_problem` ("an engine switch is
|
||||
under way") until then, and the 2 s retry tells the serving engine too.
|
||||
Refusals: `engine.unmanaged` (no `[engine]` in control.toml), `engine.same`, `engine.switching`,
|
||||
`engine.not_ready` (Caddy's settings cannot be built from the current routes).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user