Slackbot
05/26/2023, 8:32 AMSergio Ferragut
05/30/2023, 7:11 PMdruid.server.http.defaultQueryTimeout
Jiaojiao Fu
06/05/2023, 8:28 AMSergio Ferragut
06/07/2023, 7:54 PMJiaojiao Fu
06/09/2023, 6:36 AM# HTTP server settings
##druid.server.http.numThreads=60
druid.server.http.defaultQueryTimeout=60000
druid.server.http.maxQueryTimeout=60000
# HTTP client settings
druid.broker.http.numConnections=35
druid.broker.http.maxQueuedBytes=50000000
# Processing threads and buffers
druid.processing.buffer.sizeBytes=536870912
druid.processing.numMergeBuffers=4
druid.processing.numThreads=13
druid.query.groupBy.maxOnDiskStorage=104857600
# Query cache disabled -- push down caching and merging instead
druid.broker.cache.useCache=false
druid.broker.cache.populateCache=false
druid.sql.enable=true
# We need to disable after broker started through kubectl edit for fast failed recovery
# We need to set it true when rolling upgrade
# Default true
druid.sql.planner.awaitInitializationOnStart=true
Jiaojiao Fu
06/09/2023, 6:37 AM# HTTP server threads
druid.server.http.numThreads=115
druid.server.http.defaultQueryTimeout=60000
druid.server.http.maxQueryTimeout=60000
# Processing threads and buffers
druid.processing.buffer.sizeBytes=1073741824
druid.processing.numThreads=30
druid.processing.numMergeBuffers=50
druid.query.groupBy.maxOnDiskStorage=104857600
druid.segmentCache.numLoadingThreads=40
# Segment storage
druid.segmentCache.locations=[{"path":"/var/druid/segment-cache","maxSize":1900000000000}]
druid.server.maxSize=1900000000000
druid.segmentCache.lazyLoadOnStart=true
# Query cache
druid.historical.cache.useCache=true
druid.historical.cache.populateCache=true
druid.cache.type=caffeine
druid.cache.sizeInBytes=10737418240
druid.historical.cache.unCacheable=[]
Jiaojiao Fu
06/09/2023, 6:42 AMSergio Ferragut
06/09/2023, 5:37 PMdruid.server.http.numThreads on the Broker should be set to a value slightly higher than druid.broker.http.numConnections on the same Broker.
8 brokers seems like a lot for 40 historicals, the ratio is usually 1:10, so 4 should be a good starting point. Another issue is that the http.numThreads for the historicals, the recommendation is:
For Historicals, druid.server.http.numThreads should be set to a value slightly higher than the sum of druid.broker.http.numConnections across all the Brokers in the cluster.
So given 8 brokers at 35 numConnections each. Historicals and Middle Manager peons should be configured to 8*35+10 = 290. with 4 brokers =150. Depending on what was going on in the historicals, it could be that they ran out of http threads and could not respond to the broker's requests.Sergio Ferragut
06/09/2023, 5:38 PMJiaojiao Fu
06/11/2023, 8:50 AMSergio Ferragut
06/12/2023, 10:51 PM