-
Notifications
You must be signed in to change notification settings - Fork 646
Description
Hi
Currently it's possible to utilize DiskUsageDistributionGoal to balance distribution of disk across brokers.
Normally this is good, but sometimes we have a cluster that hardwares have different specs. for example, we have one row of brokers that have 10G network, and another row that has 1G network. What we want to achieve is that we ensure that %50 of network of each row is used, but using the current goals, we can only achieve this in a way that e.g. 1G brokers get 0.9G full, and then 10G brokers get the rest, which for example can be 5G. So we have several brokers that are overloaded whilst others have way more capacity.
What can improve this is having something like NetworkPctUsageGoal that ensures network is used e.g. %50 across all brokers. So 1G brokers get 0.5G and 10G brokers get 5G.
The same can be applied for Disk usage.
Currently it's possible to use a hack configuration to achieve this. Setting capacity of 1G network to 0.5G ensures that NetworkOutboundCapacityGoal prevents partitions from getting into such nodes. But it's not a good permanent method.