zoukankan      html  css  js  c++  java
  • CDH6.2的fair-scheduler.xml

    #设置scheduler类型:

    yarn.resourcemanager.scheduler.class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <allocations>
    <queue name="root">
    <weight>1.0</weight>
    <schedulingPolicy>drf</schedulingPolicy>
    <aclSubmitApps>*</aclSubmitApps>
    <aclAdministerApps>*</aclAdministerApps>
    <queue name="default">
    <maxResources>1.0%</maxResources>
    <maxRunningApps>2</maxRunningApps>
    <weight>1.0</weight>
    <schedulingPolicy>drf</schedulingPolicy>
    </queue>
    <queue name="users" type="parent">
    <maxResources>69.0%</maxResources>
    <maxRunningApps>15</maxRunningApps>
    <weight>9.0</weight>
    <schedulingPolicy>drf</schedulingPolicy>
    <queue name="airflow">
    <maxResources>90.0%</maxResources>
    <maxRunningApps>15</maxRunningApps>
    <weight>9.0</weight>
    <fairSharePreemptionTimeout>100</fairSharePreemptionTimeout>
    <fairSharePreemptionThreshold>0.2</fairSharePreemptionThreshold>
    <allowPreemptionFrom>false</allowPreemptionFrom>
    <schedulingPolicy>drf</schedulingPolicy>
    </queue>
    </queue>
    <queue name="collects">
    <maxResources>10.0%</maxResources>
    <maxRunningApps>8</maxRunningApps>
    <weight>7.0</weight>
    <schedulingPolicy>drf</schedulingPolicy>
    </queue>
    <queue name="data_bi">
    <maxResources>8.0%</maxResources>
    <maxRunningApps>6</maxRunningApps>
    <weight>7.0</weight>
    <schedulingPolicy>drf</schedulingPolicy>
    </queue>
    <queue name="opay_collects">
    <maxResources>10.0%</maxResources>
    <maxRunningApps>5</maxRunningApps>
    <weight>5.0</weight>
    <schedulingPolicy>drf</schedulingPolicy>
    </queue>
    <queue name="opos_collects">
    <maxResources>1.0%</maxResources>
    <maxRunningApps>8</maxRunningApps>
    <weight>5.0</weight>
    <schedulingPolicy>drf</schedulingPolicy>
    </queue>
    </queue>
    <defaultQueueSchedulingPolicy>fair</defaultQueueSchedulingPolicy>
    <queuePlacementPolicy>
    <rule name="specified" create="false"/>
    <rule name="nestedUserQueue" create="true">
    <rule name="default" create="true" queue="users"/>
    </rule>
    <rule name="default"/>
    </queuePlacementPolicy>
    </allocations>

  • 相关阅读:
    PHP NG (PHP 5.7) 性能比 PHP 5.6 提升近 1 倍
    PHP移动互联网开发笔记(3)——运算符
    利用PHP生成二维码
    几款常用的PHP模板引擎
    PHP多线程的使用
    关于程序员失眠的解决方案
    PHP移动互联网开发笔记(5)——文件的上传下载
    PHP生成二维码【谷歌API+qrcode+圆角Logo】
    7种流行PHP集成开发工具(IDE)的比较
    封装
  • 原文地址:https://www.cnblogs.com/hongfeng2019/p/12069437.html
Copyright © 2011-2022 走看看