org.apache.hadoop.yarn.util.resource.Resources.divideAndCeil()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(83)

本文整理了Java中org.apache.hadoop.yarn.util.resource.Resources.divideAndCeil方法的一些代码示例,展示了Resources.divideAndCeil的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Resources.divideAndCeil方法的具体详情如下:
包路径:org.apache.hadoop.yarn.util.resource.Resources
类名称:Resources
方法名:divideAndCeil

Resources.divideAndCeil介绍

暂无

代码示例

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

Resource aUsed = Resources.divideAndCeil(rc, used[i], apps[i]);
Resource aPending = Resources.divideAndCeil(rc, pending[i], apps[i]);
Resource aReserve = Resources.divideAndCeil(rc, reserved[i], apps[i]);
for (int a = 0; a < apps[i]; ++a) {
 FiCaSchedulerApp mockFiCaApp =

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

Resource aUsed = Resources.divideAndCeil(rc, used[i], apps[i]);
Resource aPending = Resources.divideAndCeil(rc, pending[i], apps[i]);
Resource aReserve = Resources.divideAndCeil(rc, reserved[i], apps[i]);
for (int a = 0; a < apps[i]; ++a) {
 FiCaSchedulerApp mockFiCaApp =

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

Resource userLimit;
if (mulp > 0) {
 userLimit = Resources.divideAndCeil(rc, capacity, mulp);
} else {
 userLimit = Resources.divideAndCeil(rc, capacity,
   users.size());

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

Resources.max(
  resourceCalculator, clusterResource, 
  Resources.divideAndCeil(
    resourceCalculator, currentCapacity, activeUsers),
  Resources.divideAndCeil(
    resourceCalculator, 
    Resources.multiplyAndRoundDown(

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

Resources.max(
  resourceCalculator, clusterResource, 
  Resources.divideAndCeil(
    resourceCalculator, currentCapacity, activeUsers),
  Resources.divideAndCeil(
    resourceCalculator, 
    Resources.multiplyAndRoundDown(

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

Resources.divideAndCeil(dominantResourceCalculator, res, 2));
app = new FiCaSchedulerApp(appAttId, user, queue,
  queue.getAbstractUsersManager(), rmContext);
  Resources.divideAndCeil(dominantResourceCalculator, res, 4));
app = new FiCaSchedulerApp(appAttId, user, qChild,
  qChild.getAbstractUsersManager(), rmContext);

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

Resources.divideAndCeil(resourceCalculator, resourceUsed,
  usersSummedByWeight),
Resources.divideAndCeil(resourceCalculator,
  Resources.multiplyAndRoundDown(currentCapacity, getUserLimit()),
  100));

相关文章