Share priority and ratio
Each consumer defines a share priority and share ratio. The share ratio is applied among siblings that have the same highest share priority, with 1 being the highest and 10 being the lowest. Consumers with the highest share priority get all available resources from the share pool before consumers with low share priority. Only if all of the siblings with the highest priority are completely satisfied (for example, the application has fewer tasks and does not need its full share of resources), do the resources trickle down to the next priority level. The next priority level of consumers then splits resources proportionally according to their share ratio. Once that level is fully satisfied, resources trickle down to the next priority level, and so on.
- Cons1 - priority 1, share ratio 1
- Cons2 - priority 1, share ratio 3
- Cons3 - priority 2, share ratio 1
- Cons4 - priority 2, share ratio 1
- Cons5 - priority 2, share ratio 3
Consumers in the first priority group (whiich includes Cons1 and Cons2) can split the entire share pool with a ratio of 1:3 (25% / 75%). Only if they happen to not require the entire share pool, can the consumers in the second priority group get any resources, where they will share those resources with a ratio of 1:1:3 (20% / 20% / 60%).