Hey y'all, potentially silly question. I've been t...
# troubleshooting
d
Hey y'all, potentially silly question. I've been trying to play with the task autoscaler but when I look at the supervisor payload in the druid console. Am I supposed to be seeing it in there? I'm also not seeing it scale tasks based on lag, but if I can just verify that the config exists in the console that'll be an easy first step to know I might've fixed it.
k
You should have something like this in the
ioConfig
section of the supervisor:
Copy code
"autoScalerConfig": {
        "autoScalerStrategy": "lagBased",
        "lagCollectionIntervalMillis": 30000,
        "lagCollectionRangeMillis": 300000,
        "scaleActionStartDelayMillis": 300000,
        "scaleActionPeriodMillis": 60000,
        "scaleOutThreshold": 2000000,
        "scaleInThreshold": 300000,
        "triggerScaleOutFractionThreshold": 0.7,
        "triggerScaleInFractionThreshold": 0.9,
        "taskCountMax": 8,
        "taskCountMin": 8,
        "scaleInStep": 1,
        "scaleOutStep": 4,
        "enableTaskAutoScaler": true,
        "minTriggerScaleActionFrequencyMillis": 600000,
        "lagAggregate": null
      },
      "lagAggregator": {
        "type": "default"
      },
d
Right, I have the autoscaler config in there, but we have some tooling to automatically create the actual supervisor configs which are submitted, which is my problem.
I'm trying to determine if something is wrong with my autoscaler config or if some of our tooling is stripping that out somewhere.
All I know is that it's in the template, but when I induce lag on the indexer it doesn't increase the task count.
(Currently doing that by scaling it back to 1 or 0 tasks on submission and watching to see if it autoscales)