This message was deleted.
# general
s
This message was deleted.
p
You can set the worker selection strategy using custom javascript and assign the worker nodes based on datasource. https://druid.apache.org/docs/latest/configuration/index.html#javascript-1
b
I think you don't need to enable javascript (a security risk) if you use affinity (for fixed IPs), or, if you don't have fixed IPs, take a look at this Imply KB.
1
b
It’s for data source type I want do by name
v
in below ds3 and ds11 are data sources. you need to add this in overlord dynamic config
Copy code
{
  "type": "equalDistribution",
  "affinityConfig": {
    "affinity": {
      "ds3": [
        "host1:8091",
        "host2:8091"
      ],
      "ds11": [
        "host3:8091"
      ]
    },
    "strong": true
  }
}
🙌 1
b
nice - maybe some variation the same approach would work with the other method as well, idk