Guest User

Untitled

a guest
Oct 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. startingNumberOfVMs = 1;
  2. maxNumberofVMs = 25;
  3. pendingTaskSamplePercent = $PendingTasks.GetSamplePercent(180 * TimeInterval_Second);
  4. pendingTaskSamples = pendingTaskSamplePercent < 70 ? startingNumberOfVMs : avg($PendingTasks.GetSample(180 * TimeInterval_Second));
  5. $TargetDedicatedNodes=min(maxNumberofVMs, pendingTaskSamples);
  6.  
  7. - We start with 1 VM
  8. - The maximum VM we can reach to is 25
  9. - PendingTasks = the number of running VM. Let say 10 VMs are running.
  10. - In last 180 seconds, if the percent of pending task < 70% (that means < 3 VM running?) then ...
Add Comment
Please, Sign In to add comment