diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/CapacityScheduler.md b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/CapacityScheduler.md index 1dec2da113e..c576ec657ad 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/CapacityScheduler.md +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/CapacityScheduler.md @@ -744,6 +744,14 @@ Changing queue/scheduler properties and adding/removing queues can be done in tw Remove the queue configurations from the file and run refresh as described above +### Changing queue configuration automatically + You can automatically changing queue configuration by editing **conf/capacity-scheduler.xml** without running *yarn rmadmin -refreshQueues*. + +| Property | Description | +|:---- |:---- | +| `yarn.resourcemanager.scheduler.monitor.enable` | You should enable this for changing queue configuration automatically. Default value is false. | +| `yarn.resourcemanager.scheduler.monitor.policies` | You should add `org.apache.hadoop.yarn.server.resourcemanager.capacity.QueueConfigurationAutoRefreshPolicy` to the policies list. Default value is `org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.ProportionalCapacityPreemptionPolicy`. | +| `yarn.resourcemanager.queue.auto.refresh.monitoring-interval` | You can adjust the interval for auto refreshing. Default value is 5000(5s). | ### Changing queue configuration via API Editing by API uses a backing store for the scheduler configuration. To enable this, the following parameters can be configured in yarn-site.xml.