kafka pods starting one by one #5984
shreyasarani23
started this conversation in
General
Replies: 1 comment 3 replies
-
I don't know I'm afraid. You can probably use network policies to block the clients from accessing the brokers before you know they are all up and running. But not much else comes to my mind. Normally, I would expect the clients to simply recover when all brokers are up. But I'm not an expert on the clients to be able to help why they don't. |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hi @scholzj we have 3 kafka and 3 zookeeper pods running in our AKS(Azure kubernetes service) cluster. Below is the deployment yaml file.
Below is our deployement file for topic creation
The problem is that we are stopping our AKS cluster daily to save the expense. And our cluster daily autostarts at [9:30 AM IST]. we have 4 node AKS cluster, when the cluster is started one by one pods starts running. For example:
first the kafka-pod-0 will come to running state, whereas kafka-pod-1 and kafka-pod-2 will not be in running state
Next the kafka-pod-1 will come to running state, whereas kafka-pod-2 will not be in running state
finally kafka-pod-2 will not be in running state will also be in running state.
Note: I guess order may differ but not sure. But all the 3 kafka pods will not be up. It will be up one by one.
So by checking the logs of kafka-pod-1 logs at 9:38 AM IST
From the logs it is clear that it is broker 1 is trying to become follower for that topic but failing because the kafka-pod-0 which is the leader is still not in running state I guess.
But after some time i.e. 9:42 AM IST I see below logs which says ISR update to 1,0
But the problem is that consumer pods may be up before all the 3 kafka pods are up. Due to which consumer will not run properly.
How to resolve the issue kindly help
Beta Was this translation helpful? Give feedback.
All reactions