1 Reply Latest reply on Apr 16, 2014 9:49 AM by Bill Robinson

    Inventory Job batch job run in server parallel, but limit to x servers at a time

      I have created an Inventory batch job that performs a discovery, then performs a snapshot job in that order.  Here are the results of the job run:

       

      Run the Inventory Batch job against 10 servers, limiting to no more than 5 servers at a time.

       

      Inventory Batch job:

           -Task 1 discovery

           -Task 2 Snapshot

       

       

      Execute Jobs Sequentially (Run tasks sequentially, works, but only runs one server at a time & ignores the "5 at a time rule"):

      Server 1 Task 1

      Server 1 Task 2

      Server 2 Task 1

      Server 2 Task 2

      Server 3 Task 1

      Server 3 Task 2

      Etc

       

      Execute jobs in parallel (Runs tasks in parallel, does not work as task 1 must complete before task 2 will work)

      Server 1 Task 1 & 2

      Server 2 Task 1 & 2

      Server 3 Task 1 & 2

       

      Execute by server (Run tasks sequentially, works, and follows the "5 at a time rule", but will not start anymore until ALL 5 finish):

      Server 1 Task 1

      Server 2 Task 1

      Server 3 Task 1

      Server 4 Task 1

      Server 5 Task 1

      Server 1 Task 2

      Server 2 Task 2

      Server 3 Task 2

      Server 4 Task 2

      Server 5 Task 2

      --Once all 5 are completed--    <-- Here is the issue, you MUST wait until the first set finish before the next set is started!

      Server 6 Task 1

      Server 7 Task 1

      Server 8 Task 1

      Server 9 Task 1

      Server 10 Task 1

      Server 6 Task 2

      Server 7 Task 2

      Server 8 Task 2

      Server 9 Task 2

      Server 10 Task 2

       

       

       

      I'm looking for an execution order like this... (Run tasks sequentially, works, and follows the "5 at a time rule", if any finish it starts on the next one such as below):

       

      Server 1 Task 2 start

      Server 2 Task 2 start

      Server 3 Task 2 start

      Server 4 Task 2 start

      Server 5 Task 2 start

      Server 1 Task 2 Ended

      Server 6 Task 1 Start     <-- This started because server 1 finished, no need to wait for all 5 to finish!

      Server 2 Task 2 Ended  

      Server 7 Task 1 Start     <-- This started because server 2 finished, no need to wait for all 5 to finish!

       

       

       

      Thoughts?