Recommendations for slow broker startup #4488
PaulLiang1
started this conversation in
General
Replies: 1 comment 13 replies
-
You do not mention what Strimzi version you use. I think that if you use a reasonably recent version of Strimzi you should not need to change any initial delays. And yes, if you think this happened because your broker is too busy when shutting down, you can try to increase the grace period (you can do it your self in the |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We recently have a few broker that suffered a unclean shutdown, and it could take quite a bit of time (~hour) for a broker to come back up;
Usually these are the log lines that shown during startup.
...kafka Loading producer state from snapshot file...
...kafka Recovering unflushed segment...
Sometimes the this could exceed the duration of what liveness probe specifies, and cause the broker to stuck in a crash loop.
Current workaround is to keep increasing the value of
initialDelaySeconds
.Question:
terminationGracePeriodSeconds
help to reduce the likelihood of an unclean shutdown, so that there are less work required for broker startup hence making it faster?initialDelaySeconds
is more of a guess work. WouldstartupProbe
more appropriate for such use case (even though Operator does not use this probe right now)?Thanks,
Paul
Beta Was this translation helpful? Give feedback.
All reactions