- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, org.apache.tez.runtime.common.resources.InitialMemoryAllocator
@InterfaceAudience.Public
@InterfaceStability.Unstable
public class WeightedScalingMemoryDistributor
extends Object
implements org.apache.tez.runtime.common.resources.InitialMemoryAllocator
Distributes memory between various requesting components by applying a
weighted scaling function. Overall, ensures that all requestors stay within the JVM limits.
Configuration involves specifying weights for the different Inputs available
in the tez-runtime-library. As an example, SortedShuffle : SortedOutput :
UnsortedShuffle could be configured to be 20:10:1. In this case, if both
SortedShuffle and UnsortedShuffle ask for the same amount of initial memory,
SortedShuffle will be given 20 times more; both may be scaled down to fit within the JVM though.