You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/02/14 23:06:27 UTC

[GitHub] egor-ryashin commented on a change in pull request #7066: Support assign tasks to run on different tiers of MiddleManagers

egor-ryashin commented on a change in pull request #7066: Support assign tasks to run on different tiers of MiddleManagers
URL: https://github.com/apache/incubator-druid/pull/7066#discussion_r257038117
 
 

 ##########
 File path: docs/content/configuration/index.md
 ##########
 @@ -1028,6 +1028,37 @@ useful if you want work evenly distributed across your middleManagers.
 |`type`|`equalDistribution`.|required; must be `equalDistribution`|
 |`affinityConfig`|[Affinity config](#affinity) object|null (no affinity)|
 
+###### Equal Distribution With Tier Spec
+
+This strategy is a variant of `Equal Distribution`, which support `workerTierSpec` field rather than `affinityConfig`. By specifying `workerTierSpec`, you can assign tasks to run on different tiers of MiddleManagers based on the tasks' **taskType** and **dataSource name**.
+
+|Property|Description|Default|
+|--------|-----------|-------|
+|`type`|`equalDistributionWithTierSpec`.|required; must be `equalDistributionWithTierSpec`|
+|`workerTierSpec`|[Worker Tier Spec](#workerTierSpec) object|null (no worker tier spec)|
+
+Example: specify tasks default to run on _tier1_ whose task
+type is "index_kafka", while dataSource "ds1" run on _tier2_.
+
+```json
+{
+  "selectStrategy": {
+    "type": "equalDistributionWithTierSpec",
+    "workerTierSpec": {
+      "strong": false,
+      "tierMap": {
+        "index_kafka": {
+           "defaultTier": "tier1",
+           "tiers": {
 
 Review comment:
   It's not actually `tiers` but more like `mappings`, `affinity`, `tierAffinity` or something like.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org