Slackbot
02/08/2023, 9:41 AMBrandon Tan
02/08/2023, 10:07 AMnb core refers to number of CPU cores per node types
• This is a great reference for managing your worker capacity : https://www.druidforum.org/t/druid-worker-capacity-configuration/8000Olivier JOUSSET
02/08/2023, 10:26 AMBrandon Tan
02/08/2023, 10:30 AMI’m a little bit confused because this rule is valid assuming that Druid runs alone on the nodenot really, Druid runs on multiple pods as well.
so how can you know the right valueIt depends on what you are tuning : query, ingestions etc ?
Olivier JOUSSET
02/08/2023, 10:36 AMdruid.router.http.numMaxThreads . We faced a Insiffucient configured threads error at router startup. It was set to 50. According to the formula max(10, ((number of cores * 17) / 16 + 2) + 30) we increased it to 151 (as we have 112 core on the node) and it works... but I'm surprise that the number of core of the node is consider here.Olivier JOUSSET
02/08/2023, 10:38 AMBrandon Tan
02/08/2023, 10:41 AMThat can result to CPU contention for other pods running on the same pod no ?Yes, that can happen
Vijay Narayanan
02/08/2023, 10:43 AMOlivier JOUSSET
02/08/2023, 10:43 AMVijay Narayanan
02/08/2023, 10:43 AMOlivier JOUSSET
02/08/2023, 11:10 AMOlivier JOUSSET
02/08/2023, 11:10 AMVijay Narayanan
02/08/2023, 11:14 AMOlivier JOUSSET
02/08/2023, 11:25 AMdruid.router.http.numMaxThreads it is not a problem to let the 151 as they will never be used ? We'll look at your recommendation for historicals partVijay Narayanan
02/08/2023, 11:28 AMFJ
02/08/2023, 4:52 PMOlivier JOUSSET
02/09/2023, 8:09 AMVijay Narayanan
02/09/2023, 10:58 AMsample usage:
start-druid
Start up all the services (including zk).
services config is read from conf/druid/auto.
zk config is always read from conf/zk.
start-druid -m=100g
Start up all the services (including zk)
using a total memory of 100GB.
start-druid -m=100g --compute
Compute memory distribution and validate arguments.
start-druid -m=100g -s=broker,router
Starts a broker and a router, using a total memory of 100GB.
start-druid -m=100g --s=broker,router \\
-c=conf/druid/single-server/custom
Starts a broker and a router, using a total memory of 100GB.
Reads configs for each service (jvm.config, runtime.properties)
from respective folders inside the given root config path.
start-druid -s=broker,router \\
-c=conf/druid/single-server/custom
Starts a broker and a router service, reading service configs
from the given root directory. Calculates memory requirements for
each service, if required, using upto 80% of the total system memory.
start-druid -m=100g \\
-s=broker,router,zookeeper \\
-c=conf/druid/single-server/custom \\
Starts broker, router and zookeeper.
Configs for broker and router are read from the specified root directory.
Config for zookeeper is read from conf/zk.Gian Merlino
02/14/2023, 10:52 AM