<?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>topic Any way to throttle asynchronous tasks? in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Any-way-to-throttle-asynchronous-tasks/m-p/1712662#M53381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;PRE class="programlisting"&gt;foreach ($VM in $VMS)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Move-VM -VM $VM -Datastore $Datastore -&lt;STRONG&gt;RunAsync&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;PRE class="programlisting"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and make so that only X amount of SvMotions are running concurrently. Once one finishes, the next one would start. I assume I would use Get-Task to count how many jobs are running.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2012 10:54:41 GMT</pubDate>
    <dc:creator>pizzim13</dc:creator>
    <dc:date>2012-08-17T10:54:41Z</dc:date>
    <item>
      <title>Any way to throttle asynchronous tasks?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Any-way-to-throttle-asynchronous-tasks/m-p/1712662#M53381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;PRE class="programlisting"&gt;foreach ($VM in $VMS)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Move-VM -VM $VM -Datastore $Datastore -&lt;STRONG&gt;RunAsync&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;PRE class="programlisting"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and make so that only X amount of SvMotions are running concurrently. Once one finishes, the next one would start. I assume I would use Get-Task to count how many jobs are running.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 10:54:41 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Any-way-to-throttle-asynchronous-tasks/m-p/1712662#M53381</guid>
      <dc:creator>pizzim13</dc:creator>
      <dc:date>2012-08-17T10:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to throttle asynchronous tasks?</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Any-way-to-throttle-asynchronous-tasks/m-p/1712663#M53382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that vSphere itself already throttles the number of parallel vMotions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to divert from the number of parallelism from vSphere, you will have to indeed use the Get-Task cmdlet and monitor the number of "running" tasks of type vMotion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 11:26:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Any-way-to-throttle-asynchronous-tasks/m-p/1712663#M53382</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2012-08-17T11:26:02Z</dc:date>
    </item>
  </channel>
</rss>

