-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downtime-free deploy: second modification of crash-looping bundle is ignored #294
Comments
... I should add that this actually breaks the running app. As it turns out,
it does, yet proxying stops:
(where the log comes from this vendor patch) |
what is the bogus version of app.keter? how does it crash? is it just not a tarball or something? |
@jappeace I'll try to minimize down to a self-contained repro case |
So, to see the idea, @jappeace check this sequence of 3
The expected result is: with v0 running, deploying v1 keeps v0 running & serving requests; and deploying v2 starts v2, then after startup is complete, replaces the v0 process with v2. In a production scenario, that did not happen. Edit: the bogus version is crashing by intentional |
Basically I saw a regression of #64 (on version 2.0.1 patched). There users had described the exact same scenario & behavior. However, on current master I can't repro even 1 successful reload:
|
OK, so that issue was identified — it's a separate bug. #296 filed. Back to the suspected regression of #64 here. When retested on master 6b7f1e4 with After the 20-ish restart attempts (which take ~2 minutes), and the One inconsistency is the following:
What I think will resolve this point of confusion nicely, would be a clear indication in logs of this "circuit-breaker" restarts counter, something like I'll propose a patch, sometime next week at latest. |
I'll see if I can help you in the weekend |
Steps to reproduce:
app.keter
in incoming/ up & running;Process restarting too quickly, waiting before trying again
... and restarts in 20ms anyway, spamming monitoring 😂Expected: the second modification of app.keter gets unpacked under temp/ again, and starts from there as usual. Once fully started, replaces the previous process.
Actual: keter just logs
Watched file modified
and nothing happens.I managed to stop the alert flood by
rm -rf temp/app-1
andtouch incoming/app.keter
; but that's it.temp/app-0
keeps running,temp/app-2
is unpacked but nothing gets launched from there. Will need to arrange a maintenance window now, to be able to restart keter 🥲This is on version 2.0.1 (vendored slightly), but I'm pretty sure the bug exists also in upstream latest.
The text was updated successfully, but these errors were encountered: