AMBARI-20824. Add two new preemption properties to RU/EE (ncole)

Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e8794409
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e8794409
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e8794409

Branch: refs/heads/branch-3.0-perf
Commit: e87944093260a9463b1db539c14b2e8bf0a08229
Parents: 6b399e4
Author: Nate Cole <nc...@hortonworks.com>
Authored: Fri Apr 21 16:52:34 2017 -0400
Committer: Andrew Onishuk <aonis...@hortonworks.com>
Committed: Mon Apr 24 14:59:56 2017 +0300

----------------------------------------------------------------------
 .../resources/stacks/HDP/2.6/upgrades/config-upgrade.xml | 11 +++++++++++
 .../stacks/HDP/2.6/upgrades/nonrolling-upgrade-2.6.xml   |  4 ++++
 .../resources/stacks/HDP/2.6/upgrades/upgrade-2.6.xml    |  1 +
 3 files changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e8794409/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/config-upgrade.xml
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/config-upgrade.xml 
b/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/config-upgrade.xml
index 87646fa..f5d87e9 100644
--- 
a/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/config-upgrade.xml
+++ 
b/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/config-upgrade.xml
@@ -104,6 +104,17 @@
             <set key="ranger.plugin.yarn.ambari.cluster.name" 
value="{{cluster_name}}"
               if-type="ranger-yarn-plugin-properties" 
if-key="ranger-yarn-plugin-enabled" if-key-state="present"/>
           </definition>
+          <definition xsi:type="configure" id="hdp_2_6_yarn_preemption" 
summary="Resource Manager Preemption Settings">
+            <type>yarn-site</type>
+            <set 
key="yarn.resourcemanager.monitor.capacity.preemption.total_preemption_per_round"
 value="0.1"
+              if-type="yarn-site"
+              
if-key="yarn.resourcemanager.monitor.capacity.preemption.total_preemption_per_round"
+              if-key-state="absent" />
+            <set 
key="yarn.resourcemanager.monitor.capacity.preemption.natural_termination_factor"
 value="1"
+              if-type="yarn-site"
+              
if-key="yarn.resourcemanager.monitor.capacity.preemption.natural_termination_factor"
+              if-key-state="absent" />
+          </definition>
         </changes>
       </component>
     </service>

http://git-wip-us.apache.org/repos/asf/ambari/blob/e8794409/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/nonrolling-upgrade-2.6.xml
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/nonrolling-upgrade-2.6.xml
 
b/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/nonrolling-upgrade-2.6.xml
index 7f0c818..f7c276b 100644
--- 
a/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/nonrolling-upgrade-2.6.xml
+++ 
b/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/nonrolling-upgrade-2.6.xml
@@ -322,6 +322,10 @@
       <execute-stage service="YARN" component="RESOURCEMANAGER" title="Apply 
config changes for Ranger Yarn plugin">
         <task xsi:type="configure" 
id="hdp_2_6_maint_ranger_yarn_plugin_cluster_name"/>
       </execute-stage>
+      
+      <execute-stage service="YARN" component="RESOURCEMANAGER" title="Apply 
config changes for YARN Preemption">
+        <task xsi:type="configure" id="hdp_2_6_yarn_preemption"/>
+      </execute-stage>
 
       <!-- KAFKA -->
       <execute-stage service="KAFKA" component="KAFKA_BROKER" title="Apply 
config changes for Ranger Kafka plugin">

http://git-wip-us.apache.org/repos/asf/ambari/blob/e8794409/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/upgrade-2.6.xml
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/upgrade-2.6.xml 
b/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/upgrade-2.6.xml
index 7279870..81757c1 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/upgrade-2.6.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/upgrade-2.6.xml
@@ -686,6 +686,7 @@
       <component name="RESOURCEMANAGER">
         <pre-upgrade>
           <task xsi:type="configure" 
id="hdp_2_6_maint_ranger_yarn_plugin_cluster_name"/>
+          <task xsi:type="configure" id="hdp_2_6_yarn_preemption" />
         </pre-upgrade>
         <pre-downgrade/> <!--  no-op to prevent config changes on downgrade -->
         <upgrade>

Reply via email to