How should i understand 70% value in this Azure Batch formula?

Highlighted
New Contributor

Hi everyone,

I'm trying to understand the following formula.

 

startingNumberOfVMs = 1;
maxNumberofVMs = 25;
pendingTaskSamplePercent = $PendingTasks.GetSamplePercent(180 * TimeInterval_Second);
pendingTaskSamples = pendingTaskSamplePercent < 70 ? startingNumberOfVMs : avg($PendingTasks.GetSample(180 * TimeInterval_Second));
$TargetDedicatedNodes=min(maxNumberofVMs, pendingTaskSamples);

 

We start with 1 node, then if pending task percentage < 70, it would automatically increase amount of node.

But how is 70% calculated? what slash what equal 70?

Someone can give an step by step example on how to scale from 1 to 25 node? 

 

0 Replies