Yusuf Külah
12/09/2024, 1:52 PMpool1_REALTIME and pool1_OFFLINE) on the cluster and each has size of 3, each pool has 8 instances. so in total there are 24 servers. Part of realtime table config about instance assignment is in 🧵.
With this configuration, I am expecting to not to observe any partial response/traffic loss during server pod restarts. Regardless of rolling restart or single pool at a time(8 pods) restart, I measure between 10% to 25% traffic loss. These tests are done on a table that is running 5 QPS and broker has adaptive server selection enabled, based on latency.
My observation is that, pinot controller/broker is not able to identify the server is down, so it is still routing queries to the restarting servers. So here are my questions
• is anything looks odd in my config?
• is there anyone who is able to configure 0 downtime restart behaviour?
• is there any config option to identify servers faster which are not healthy anymore?Yusuf Külah
12/09/2024, 1:52 PM"instanceAssignmentConfigMap": {
"CONSUMING": {
"tagPoolConfig": {
"tag": "pool1_REALTIME",
"poolBased": true,
"numPools": 3
},
"replicaGroupPartitionConfig": {
"replicaGroupBased": true,
"numReplicaGroups": 3,
"numInstancesPerReplicaGroup": 8,
"minimizeDataMovement": false
},
"partitionSelector": "INSTANCE_REPLICA_GROUP_PARTITION_SELECTOR",
"minimizeDataMovement": false
},
"COMPLETED": {
"tagPoolConfig": {
"tag": "pool1_OFFLINE",
"poolBased": true,
"numPools": 3
},
"replicaGroupPartitionConfig": {
"replicaGroupBased": true,
"numReplicaGroups": 3,
"numInstancesPerReplicaGroup": 0,
"numPartitions": 3,
"numInstancesPerPartition": 8,
"minimizeDataMovement": false
},
"partitionSelector": "INSTANCE_REPLICA_GROUP_PARTITION_SELECTOR",
"minimizeDataMovement": false
}
}Mayank
Yusuf Külah
12/09/2024, 4:22 PMONLINE|CONSUMING state.
I am not sure about the rebuilding of routing table, so far I cannot find anything useful in the logs. Is there a way to trigger that externally?Mayank
Yusuf Külah
12/09/2024, 4:29 PM"shutdownInProgress": "false" ? or how can I validate that server is marking itself as down ?Mayank
Mayank
Yusuf Külah
12/09/2024, 4:34 PMkubectl rollout restart .. i guess this should do a graceful rebootsYusuf Külah
12/09/2024, 5:30 PMshutdownInProgress never set to true, even with 10 minutes of grace period.
can there be anything else that somehow blocks the broker to trigger rebuilding of routing table ?Mayank
Yusuf Külah
12/09/2024, 5:35 PM..update routing entry for 1 tables.. but in some other cluster, I see Building routing for table:XXX when I restart a server.
I see HELIX_ENABLED": "true" on both broker and servers.Mayank
"Shutting down Pinot server"Mayank
Mayank
Yusuf Külah
12/09/2024, 5:59 PMMayank
Yusuf Külah
12/09/2024, 6:13 PM--grace-period=600 flag now 🙂Mayank
Yusuf Külah
12/10/2024, 10:20 AMpkill --signal SIGTERM java), I managed to see some logs
2024/12/10 10:05:44.302 INFO [BaseServerStarter] [Thread-43] Shutting down Pinot server
2024/12/10 10:05:44.302 INFO [ZKHelixAdmin] [Thread-43] Set configs with keys
2024/12/10 10:05:44.456 INFO [BaseServerStarter] [Thread-43] Starting shutdown query check
2024/12/10 10:05:44.456 INFO [BaseServerStarter] [Thread-43] Sleep for 4319846ms as there are still incoming queries (no query time: 0ms is smaller than the threshold: 4320000ms)
Intentionally I put 12 hours of timeout, but it is somehow failing to wait for that long and process is killed within 2-3 minutes. btw, I am using pinot v.1.2.0.Mayank
Yusuf Külah
12/11/2024, 7:59 PM