Closed pashafirdous closed 4 years ago
Wait, the log does not contain any errors - that just looks like a regular behaviour. The operator by default every two minutes does the periodical reconciliation to double check that everything is ok.
i got this error with the JMX monitoring agent.
5/29/20 05:56:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
5/29/20 05:56:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
5/29/20 05:56:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Removed Stale Scheduled Sampler - cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
5/29/20 05:56:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] Cannot connect to MBeanServer - javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@cc4e121
5/29/20 05:56:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
5/29/20 05:56:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
5/29/20 05:57:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
5/29/20 05:57:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Created new Sampler for cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
5/29/20 05:57:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
5/29/20 05:57:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
5/29/20 05:57:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Removed Stale Scheduled Sampler - cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
5/29/20 05:57:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] Cannot connect to MBeanServer - javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@42841
Could you advice what is the reason the the sampler is shutting down and also the JMX is closing connections regularly.
To be honest, I have no idea. Never used the JMX stuff, always only Prometheus. Maybe @julianGoh17 who contributed this might have an idea?
@scholzj It seems like the Jmx monitoring agent can not connect to the Kafka Broker's JMX pod. Think it could be something with how the JMX monitoring agent is trying to connect to Kafka.
@pashafirdous If you could give me some more detail about how you are running the JMX monitoring agent and how Kafka JMX has been set up (i.e. does it have auth or not) that would help us to debug this issue.
we have just enabled the option jmxOptions: {}
the tools is listening on port 9999
the pic above shows that all the broker nodes are having equal availability time. so when we see a per node log, they are down alternatively.
Strimzi cluster logs are only for reconciliation as in the question.
the logs for the agent are below.
6/01/20 03:38:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:38:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:39:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:39:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Created new Sampler for cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:39:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:39:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:39:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Removed Stale Scheduled Sampler - cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:39:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] Cannot connect to MBeanServer - javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@3f15241a
6/01/20 03:39:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:39:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:40:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:40:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Created new Sampler for cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:40:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:40:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:40:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Removed Stale Scheduled Sampler - cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:40:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] Cannot connect to MBeanServer - javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@5ae95f89
6/01/20 03:40:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:40:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:41:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:41:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Created new Sampler for cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:41:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:41:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:41:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Removed Stale Scheduled Sampler - cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:41:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] Cannot connect to MBeanServer - javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@40e5bbc4
6/01/20 03:41:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:41:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:42:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:42:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Created new Sampler for cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:42:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:42:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:42:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Removed Stale Scheduled Sampler - cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:42:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] Cannot connect to MBeanServer - javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@49424900
6/01/20 03:42:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:42:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:43:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:43:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Created new Sampler for cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:43:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:43:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:43:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Removed Stale Scheduled Sampler - cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:43:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] Cannot connect to MBeanServer - javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@22126d4e
6/01/20 03:43:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:43:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:44:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:44:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Created new Sampler for cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:44:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:44:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:44:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Removed Stale Scheduled Sampler - cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:44:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] Cannot connect to MBeanServer - javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@111c8528
6/01/20 03:44:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:44:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:45:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:45:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Created new Sampler for cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:45:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:45:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:45:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Removed Stale Scheduled Sampler - cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:45:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] Cannot connect to MBeanServer - javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@4be5d2e4
6/01/20 03:45:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:45:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:46:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:46:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Created new Sampler for cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:46:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:46:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:46:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Removed Stale Scheduled Sampler - cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:46:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] Cannot connect to MBeanServer - javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@674ef2b4
6/01/20 03:46:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:46:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:47:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:47:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Created new Sampler for cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:47:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:47:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:47:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Removed Stale Scheduled Sampler - cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:47:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] Cannot connect to MBeanServer - javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@1957c1d6
6/01/20 03:47:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:47:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:48:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:48:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Created new Sampler for cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:48:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:48:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:48:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Removed Stale Scheduled Sampler - cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:48:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] Cannot connect to MBeanServer - javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@eb38180
6/01/20 03:48:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:48:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-2.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:49:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:50:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:51:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:52:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:52:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Created new Sampler for cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:52:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:52:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:52:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Removed Stale Scheduled Sampler - cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:52:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] Cannot connect to MBeanServer - javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@7e1c1cf3
6/01/20 03:52:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:52:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:53:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:54:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:54:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Created new Sampler for cluster1-kafka-1.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:54:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:54:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:54:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Removed Stale Scheduled Sampler - cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:54:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] Cannot connect to MBeanServer - javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection@78ee02c9
6/01/20 03:54:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] shutting down sampler for server: cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:54:58 PM UTC [INFO] [IntroscopeAgent.KafkaExtension] Closing jmx connection to server: cluster1-kafka-0.cluster1-kafka-brokers.kafka-1.svc.cluster.local_0
6/01/20 03:55:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
6/01/20 03:56:58 PM UTC [ERROR] [IntroscopeAgent.KafkaExtension] No Kafka brokers online to monitor
k8soptr@jumpbox:~$
@pashafirdous I don't think that there are any problems with the Cluster Operator logs. The operator is set to reconcile every 2 minutes which is why the Reconciliation
happens every two minutes. This means that the operator will check the state of the kubernetes environment and will adjust it as it sees fit. The logs you have provided suggest that there are no changes in between each reconcile.
How are you running the JMX exporter? Is it in a pod in the same namespace or ran externally? If it is not a pod deployed in the namespace, then you need to use https://strimzi.io/docs/operators/master/using.html#assembly-jmxtrans-deployment-configuration-kafka to obtain JMX. This is because of exposing the JMX port via a route/nodeport is not achievable.
Hello Julian,
we are just enabling the JMX port in the kafka CR jmxOptions: {}
there is an agent installed in the same namespace with will poll the cluster on the port 9999
the concern we are observing is the kafka brokers (in case of 3 node) every time only one broker stays available as per the logs which is in a roundrobin fashion, the brokers are coming up, making it 33.08% uptime individually on the JMX port.
i am not understanding this behavior.
as you said, i understand we need to use JMXtrans in case we have an external polling agent. but we are not having that scenario.
How do you configure the agent to connect? Which addresses do you use etc.? Is the agent actually ever connected? It loosk to me more like it is just looping around the brokers without really connecting anywhere.
Also, does the cluster actually have constant rolling updates as the name of the issue suggests? Or is the JMX agent the only thing which has connection issues? We should change the issue accordingly.
we are configuring a single monitoring agent, installed in the namespace, with JMX on service/my-cluster-kafka-brokers
headless service on port 9999
service/cluster1-kafka-brokers ClusterIP 9091/TCP,9092/TCP,9093/TCP,9999/TCP
there is no rolling updates, the logs are right after configuration.
need some guidance to find, what is actually causing the problem.
I do not know much about JMX. But would expect that you need to connect to each broker and just to one of them, or? Connecting to the cluster1-kafka-brokers
service (or the cluster1-kafka-bootstrap
service as well), you would just alternate between the brokers. Don't you need to open 3 different connections to cluster1-kafka-0.cluster1-kafka-brokers.svc:9999
, cluster1-kafka-1.cluster1-kafka-brokers.svc:9999
etc.?
just so you know, when i added the single service, it is polling all the 3 nodes, and when i monitor the agent uptime, i see only one broker is up at one time, as seen in the logs.
the image in https://github.com/strimzi/strimzi-kafka-operator/issues/3121#issuecomment-637006893 shows 3 brokers uptime.
i shall try with adding brokers individually and let you know.
The headless service is basically a DNS construct which resolves to the 3 Kafka pods. I would assume that it is trying to connect to all 3 brokers because it is just alternating between the 3 addresses backing the DNS name ... first the first one, than the second one, then the third one etc.
Hi Jakub,
thanks for assistance.
we tested this with couple of deployments and are satisfied with comments. closing the case.
Hello!
we are observing a weird issue since we have enabled a few settings for montoring on JMX port.
the cluster continuously reconciles and gives errors. we also see the kafka-brokers get into unavailable state when monitored and the operator gives below error. however we dont see any restarts happenning at pod level.
need help to understand the issue and address it.