我们用的CDH,配置的Fair调度器,DRF策略。
maxAMShare参数原文解释如下:
maxAMShare: limit the fraction of the queue’s fair share that can be used to run application masters. This property can only be used for leaf queues. For example, if set to 1.0f, then AMs in the leaf queue can take up to 100% of both the memory and CPU fair share. The value of -1.0f will disable this feature and the amShare will not be checked. The default value is 0.5f.
看资料是说这参数用来限制提交任务的个数。
如果这个参数有设置默认值0.5,单个队列中ApplicationMaster资源的最大占比就是50%。此处ApplicationMaster资源是指哪部分啊?是指的任务提交(hive on spark和mr都有)时appmaster申请到的容器大小吗?还是包括了该任务所有计算的容器资源在内呀?