<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: What is the mechanism behind the property  &amp;quot;yarn.scheduler.capacity.node-locality-delay&amp;quot; ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-mechanism-behind-the-property-quot-yarn/m-p/108905#M30112</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt; this is nice post explaining how this property used by RMContainerAllocator while allocating a container upon request.&lt;/P&gt;&lt;P&gt;&lt;A href="http://johnjianfang.blogspot.in/2014/08/delay-scheduling-in-capacity-scheduling.html" target="_blank"&gt;http://johnjianfang.blogspot.in/2014/08/delay-scheduling-in-capacity-scheduling.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2016 13:05:25 GMT</pubDate>
    <dc:creator>rajkumar_singh</dc:creator>
    <dc:date>2016-05-31T13:05:25Z</dc:date>
    <item>
      <title>What is the mechanism behind the property  "yarn.scheduler.capacity.node-locality-delay" ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-mechanism-behind-the-property-quot-yarn/m-p/108903#M30110</link>
      <description>&lt;P&gt;Can someone explain the mechanism behind the property  "yarn.scheduler.capacity.node-locality-delay" ?&lt;/P&gt;&lt;P&gt;from apache site i see - &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH&gt;Property&lt;/TH&gt;&lt;TH&gt;Description&lt;/TH&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;yarn.scheduler.capacity.node-locality-delay&lt;/TD&gt;&lt;TD&gt;Number of missed scheduling opportunities after which the CapacityScheduler attempts to schedule rack-local containers. Typically, this should be set to number of nodes in the cluster. By default is setting approximately number of nodes in one rack which is 40. Positive integer value is expected.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 30 May 2016 22:05:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-mechanism-behind-the-property-quot-yarn/m-p/108903#M30110</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-05-30T22:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is the mechanism behind the property  "yarn.scheduler.capacity.node-locality-delay" ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-mechanism-behind-the-property-quot-yarn/m-p/108904#M30111</link>
      <description>&lt;P&gt;
	Hi &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
	This is what I got from &lt;/P&gt;&lt;P&gt;
	&lt;A href="https://www.safaribooksonline.com/library/view/hadoop-the-definitive/9781491901687/ch04.html#"&gt;
	&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.safaribooksonline.com/library/view/hadoop-the-definitive/9781491901687/ch04.html#"&gt;Hadoop: The Definitive Guide, 4th Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
	All the YARN schedulers try to honor locality requests. On a busy cluster, if an application requests a particular node, there is a good chance that other containers are running on it at the time of the request. The obvious course of action is to immediately loosen the locality requirement and allocate a container on the same rack. However, it has been observed in practice that waiting a short time (no more than a few seconds) can dramatically increase the chances of being allocated a container on the requested node, and therefore increase the efficiency of the cluster. This feature is called &lt;EM&gt;delay scheduling&lt;/EM&gt;, and it is supported by both the Capacity Scheduler and the Fair Scheduler.&lt;/P&gt;&lt;P&gt;
	Every node manager in a YARN cluster periodically sends a heartbeat request to the resource manager—by default, one per second. Heartbeats carry information about the node manager’s running containers and the resources available for new containers, so each heartbeat is a potential &lt;EM&gt;scheduling opportunity&lt;/EM&gt; for an application to run a container.&lt;/P&gt;&lt;P&gt;
	When using delay scheduling, the scheduler doesn’t simply use the first scheduling opportunity it receives, but waits for up to a given maximum number of scheduling opportunities to occur before loosening the locality constraint and taking the next scheduling opportunity.&lt;/P&gt;&lt;P&gt;
	For the Capacity Scheduler, delay scheduling is configured by setting &lt;CODE&gt;yarn.scheduler.capacity.node-locality-delay&lt;/CODE&gt; to a positive integer representing the number of scheduling opportunities that it is prepared to miss before loosening the node constraint to match any node in the same rack.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 23:51:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-mechanism-behind-the-property-quot-yarn/m-p/108904#M30111</guid>
      <dc:creator>rpathak</dc:creator>
      <dc:date>2016-05-30T23:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: What is the mechanism behind the property  "yarn.scheduler.capacity.node-locality-delay" ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-mechanism-behind-the-property-quot-yarn/m-p/108905#M30112</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt; this is nice post explaining how this property used by RMContainerAllocator while allocating a container upon request.&lt;/P&gt;&lt;P&gt;&lt;A href="http://johnjianfang.blogspot.in/2014/08/delay-scheduling-in-capacity-scheduling.html" target="_blank"&gt;http://johnjianfang.blogspot.in/2014/08/delay-scheduling-in-capacity-scheduling.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 13:05:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-the-mechanism-behind-the-property-quot-yarn/m-p/108905#M30112</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-05-31T13:05:25Z</dc:date>
    </item>
  </channel>
</rss>

