MirrorMaker2 custom probes #7429
Unanswered
scottc-git
asked this question in
Q&A
Replies: 1 comment 2 replies
-
To answer your question, no, you cannot customize the healthcheck commands. You can only change the timings. I do not think customizing the healthcheck commands would make sense. The operator needs to know what they do, what to expect from them and that it can rely on them. You cannot set them to whatever you want. Tying the readiness to some completely different service does not seem to make much sense to me TBH. TBH, I don't follow the whole idea to have some SMT to mirror the schemas. Shouldn't you simply have other tool (a proper tool running in its own pod) to mirror the schema? Using an SMT for it seems like a complete hack. |
Beta Was this translation helpful? Give feedback.
2 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.
-
Question:
Is there a way to provide my own Readiness probe to MirrorMaker2?
Background
I am using a few SMTs for the MirrorMaker2 - one of them is to copy the Avro schemas from the source Kafka to target (Strimzi) Kafka environment upon mirroring. The problem is the timing issue when SchemaRegistry becomes ready sometime after Mirroring started. The SMT will fail if the target schema registry is not ready yet and the MirrorMaker worker thread will eventually stop. I will have to restart the MM2 pod manually and then it will resume the mirroring. The whole Strimzi Kafka (mirror) environment can be built a few times a day and this problem has been making the test environments unreliable to my users.
Error Logs
Real Question
According to the Kafka documentation, setting
errors.tolerance
tonone (default)
seems to be a solution to this but the tasks do not come back up as the error message says. In the meantime, Pod status is stillRunning
(with the dead threads) and Kubernetes will not bother recreating the pod either. Is there a way to configure the KMM2 to overcome this situation? I was going to override the Readiness probe tohttpGet
against http://schema-registry-client:8081 but it seems the[Probe](https://strimzi.io/docs/operators/0.27.1/using.html#type-Probe-reference)
only checks on its own service (mm2) being running.KMM2 spec
Alternative considered
I was thinking of using init-container for more extensive health check but previous discussions suggested that it is going to be more rough path and it is not supported.
Version
Strimzi 0.27.1
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions