Hello, cluster info: 1. Pinot version 1.2.0 2. dep...
# troubleshooting
v
Hello, cluster info: 1. Pinot version 1.2.0 2. deployed on kubernetes with helm chart 3. s3 deep store 4. 5 brokers, 5 controllers, 5 servers, 5 zookeepers 5. autoscaling enabled for pvc's Since the morning our production cluster broke with one broker which was in constant restart stage. Tried increasing liveness & readiness probes with no success, tried numerous configuration changes in the helm chart etc and in the end i have 5 brokers which can't build their route tables and 5 servers which are stuck not consuming not doing anything. Any help would be greatly appreciated as I'm really stuck and can't think of anything different to try. Broker health check is stuck at Pinot broker status is STARTING Some of the server logs
Copy code
2024/11/15 19:23:53.564 INFO [BaseServerStarter] [Start a Pinot [SERVER]] Sleep for 10000ms as service status has not turned GOOD: PinotServiceManagerStatusCallback:Started;MultipleCallbackServiceStatusCallback:IdealStateAndCurrentStateMatchServiceStatusCallback:partition=betradar_rest_traffic_log__14__53__20241105T0323Z, expected=ONLINE, found=OFFLINE, creationTime=1731698103190, modifiedTime=1731698103190, version=0, waitingFor=CurrentStateMatch, resource=betradar_rest_traffic_log_REALTIME, numResourcesLeft=23, numTotalResources=23, minStartCount=23,;IdealStateAndExternalViewMatchServiceStatusCallback:Init;;
2024/11/15 19:24:03.571 INFO [BaseServerStarter] [Start a Pinot [SERVER]] Sleep for 10000ms as service status has not turned GOOD: PinotServiceManagerStatusCallback:Started;MultipleCallbackServiceStatusCallback:IdealStateAndCurrentStateMatchServiceStatusCallback:partition=player__11__0__20240924T1242Z, expected=ONLINE, found=OFFLINE, creationTime=1731698103342, modifiedTime=1731698103342, version=0, waitingFor=CurrentStateMatch, resource=player_REALTIME, numResourcesLeft=23, numTotalResources=23, minStartCount=23,;IdealStateAndExternalViewMatchServiceStatusCallback:Init;;
2024/11/15 19:24:13.579 INFO [BaseServerStarter] [Start a Pinot [SERVER]] Sleep for 10000ms as service status has not turned GOOD: PinotServiceManagerStatusCallback:Started;MultipleCallbackServiceStatusCallback:IdealStateAndCurrentStateMatchServiceStatusCallback:partition=provider_log__11__0__20240924T1251Z, expected=ONLINE, found=OFFLINE, creationTime=1731698103382, modifiedTime=1731698103382, version=0, waitingFor=CurrentStateMatch, resource=provider_log_REALTIME, numResourcesLeft=23, numTotalResources=23, minStartCount=23,;IdealStateAndExternalViewMatchServiceStatusCallback:Init;;
2024/11/15 19:24:23.588 INFO [BaseServerStarter] [Start a Pinot [SERVER]] Sleep for 10000ms as service status has not turned GOOD: PinotServiceManagerStatusCallback:Started;MultipleCallbackServiceStatusCallback:IdealStateAndCurrentStateMatchServiceStatusCallback:partition=nra_game_report__0__0__20240924T1226Z, expected=ONLINE, found=OFFLINE, creationTime=1731698103264, modifiedTime=1731698103264, version=0, waitingFor=CurrentStateMatch, resource=nra_game_report_REALTIME, numResourcesLeft=23, numTotalResources=23, minStartCount=23,;IdealStateAndExternalViewMatchServiceStatusCallback:Init;;
2024/11/15 19:24:33.593 INFO [BaseServerStarter] [Start a Pinot [SERVER]] Sleep for 10000ms as service status has not turned GOOD: PinotServiceManagerStatusCallback:Started;MultipleCallbackServiceStatusCallback:IdealStateAndCurrentStateMatchServiceStatusCallback:partition=smartico_log__0__0__20240924T1252Z, expected=ONLINE, found=OFFLINE, creationTime=1731698103391, modifiedTime=1731698103391, version=0, waitingFor=CurrentStateMatch, resource=smartico_log_REALTIME, numResourcesLeft=23, numTotalResources=23, minStartCount=23,;IdealStateAndExternalViewMatchServiceStatusCallback:Init;;
2024/11/15 19:24:43.600 INFO [BaseServerStarter] [Start a Pinot [SERVER]] Sleep for 10000ms as service status has not turned GOOD: PinotServiceManagerStatusCallback:Started;MultipleCallbackServiceStatusCallback:IdealStateAndCurrentStateMatchServiceStatusCallback:partition=casino_cancellation__10__0__20240924T1217Z, expected=ONLINE, found=OFFLINE, creationTime=1731698103231, modifiedTime=1731698103231, version=0, waitingFor=CurrentStateMatch, resource=casino_cancellation_REALTIME, numResourcesLeft=23, numTotalResources=23, minStartCount=23,;IdealStateAndExternalViewMatchServiceStatusCallback:Init;;
2024/11/15 19:24:53.608 INFO [BaseServerStarter] [Start a Pinot [SERVER]] Sleep for 7775ms as service status has not turned GOOD: PinotServiceManagerStatusCallback:Started;MultipleCallbackServiceStatusCallback:IdealStateAndCurrentStateMatchServiceStatusCallback:partition=sport_event_statistics__11__0__20240924T1253Z, expected=ONLINE, found=OFFLINE, creationTime=1731698103400, modifiedTime=1731698103400, version=0, waitingFor=CurrentStateMatch, resource=sport_event_statistics_REALTIME, numResourcesLeft=23, numTotalResources=23, minStartCount=23,;IdealStateAndExternalViewMatchServiceStatusCallback:Init;;
t
i'm not with the Pinot project, but i've run Pinot clusters in K8's before. It sounds like until this morning your production environment had 5 brokers, 5 controllers, 5 servers and 5 Zookeepers that were in a good operating state and now your cluster is in a state of disconnection which prevents it from starting. Are there any other services operating in the cluster or is it just Apache Pinot? My gut feel is that this is a DNS issue and that you should be looking at the K8's cluster CoreDNS functions. I'd do the following:
Copy code
kubectl exec -it <pod-name> -- nslookup pinot-controller 
kubectl exec -it <pod-name> -- nslookup zookeeper
(or whatever the DNS is configured in your helm charts for Pinot components.
I'd do this inside each broker, server and controller pod to ensure that each component can resolve the names and addresses of all the other components.
Aside from that you could look at Network policies or firewall rules that have been activated. If someone has set rules in a runtime of a container and the container was restarted, it will revert to it's original state losing any rule changes.
v
There are other services operating, my first thought was dns but already confirmed they can talk to each other.
t
what's the Zookeeper cluster logging?
v
Nothing except some removing files for logs and snapshots
Copy code
zookeeper 10:23:09.64 INFO  ==> 
zookeeper 10:23:09.64 INFO  ==> Welcome to the Bitnami zookeeper container
zookeeper 10:23:09.64 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
zookeeper 10:23:09.64 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
zookeeper 10:23:09.64 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
zookeeper 10:23:09.65 INFO  ==> 
zookeeper 10:23:09.65 INFO  ==> ** Starting ZooKeeper setup **
zookeeper 10:23:09.68 WARN  ==> You have set the environment variable ALLOW_ANONYMOUS_LOGIN=yes. For safety reasons, do not use this flag in a production environment.
zookeeper 10:23:09.70 INFO  ==> Initializing ZooKeeper...
zookeeper 10:23:09.70 INFO  ==> No injected configuration file found, creating default config files...
zookeeper 10:23:09.80 INFO  ==> Adding server: pinot-zookeeper-0.pinot-zookeeper-headless.default.svc.cluster.local:2888:3888 with id: 1
zookeeper 10:23:09.81 INFO  ==> Adding server: pinot-zookeeper-1.pinot-zookeeper-headless.default.svc.cluster.local:2888:3888 with id: 2
zookeeper 10:23:09.81 INFO  ==> Adding server: pinot-zookeeper-2.pinot-zookeeper-headless.default.svc.cluster.local:2888:3888 with id: 3
zookeeper 10:23:09.82 INFO  ==> Adding server: pinot-zookeeper-3.pinot-zookeeper-headless.default.svc.cluster.local:2888:3888 with id: 4
zookeeper 10:23:09.82 INFO  ==> Adding server: pinot-zookeeper-4.pinot-zookeeper-headless.default.svc.cluster.local:2888:3888 with id: 5
zookeeper 10:23:09.83 INFO  ==> Deploying ZooKeeper with persisted data...

zookeeper 10:23:09.84 INFO  ==> ** ZooKeeper setup finished! **
zookeeper 10:23:09.85 INFO  ==> ** Starting ZooKeeper **
/opt/bitnami/java/bin/java
ZooKeeper JMX enabled by default
Using config: /opt/bitnami/zookeeper/bin/../conf/zoo.cfg
Removing file: Nov 14, 2024, 8:10:55 PM	/bitnami/zookeeper/data/version-2/log.28f0138030c
Removing file: Nov 14, 2024, 8:10:05 PM	/bitnami/zookeeper/data/version-2/log.28f0136efbf
Removing file: Nov 14, 2024, 8:10:05 PM	/bitnami/zookeeper/data/version-2/snapshot.28f013802af
Removing file: Nov 14, 2024, 8:10:55 PM	/bitnami/zookeeper/data/version-2/snapshot.28f0138d48d
t
Okay, so the Zookeeper cluster may be starting correctly and you have a ZK cluster. Following that each Component has to register with ZK and be able to retrieve the cluster state. So after starting ZK, you should be able to see the brokers and controllers start to register and the fact that you have the Base Server and Broker starting with a 'service has not turned good' means that there's either a communication problem or a service registration problem or there's something preventing the component from recognizing the state of the cluster.
You mentioned that you had routing issues? Is this all on the same cluster and are all nodes local?
once the brokers and controllers are in a started and the service is "good" then Pinot Server will start and connect to ZK to retrieve it's runtime configuration and metadata.
i may be a bit out of practice but the ZK should be showing registration of services in the logs but that could also be a logging level setting if you can't see it happening.
once it starts it should be start loading segments and will loop that "sleep for 1000ms as service has not turned GOOD" until it's loaded all segments and built the data structures.
I'm not sure what your logging level is set to but you may need to increase logging to see if there errors occuring that aren't at your current log level
current log level is at least INFO which should include ERROR and above.
have you tried log level set to DEBUG
If there are errors loading segments it should appear from the [SegmentLoader]
If there are errors with Metadata it will log from [SegmentMetadataLoader]
the SegmentLoader messages should also indicate access problems to S3 Deepstore Those will all come out at ERROR level logging
starting up in ZK you should see the following:
Copy code
INFO [ZooKeeperServer] - Created ephemeral node /PinotCluster/CONTROLLER/instances/<controller_instance_id>
INFO [ZooKeeperServer] - Created ephemeral node /PinotCluster/BROKER/instances/<broker_instance_id>
INFO [ZooKeeperServer] - Created ephemeral node /PinotCluster/SERVER/instances/<server_instance_id>
There should be a leader election for the controller:
Copy code
INFO [LeaderSelector] - Node <controller_instance_id> has been elected as the leader
and each component should be observed creating new client sessions with ZK that should happen before everything else.
Copy code
INFO [SessionTracker] - Session 0x<session_id> established for client <component_ip>:<port>