-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
Description
I configured the Druid Coordinator nodes to use the PendingTaskBasedWorkerProvisioningStrategy ("pendingTask" in the config) as the Auto Scaler's provisioning strategy. When the number of workers is 0 (minNumWorkers of 0) the autoscaler seems to never attempts to add more instances.
Based on this comment in the code it seems like this might be the intended behavior currently. If so would it be possible to change it so that it at least brings 1 node up so it begin executing the task and get an idea of what capacity looks like with a single worker running? If its intended and is not going to be changed, documenting this limitation either in comments or adding information about this provisioning strategy to the docs would probably be good.
Motivation
There are two reasons I'm suggesting this change:
- The simple provisioning strategy currently will scale ins if there are no workers, and it would be good to have this behavior be consistent.
- The
PendingTaskBasedWorkerProvisioningStrategywill terminate nodes in bulk (whereas the simple strategy scales in nodes 1 at time), for batch ingestion work loads with long times in between ingestion, its more beneficial from a time and money stand point to able to scale in faster when the work is done.