@@ -316,7 +316,7 @@ For example, a `shareDecay` of 5 minutes in the above example means that at any
316
316
will be scheduled for each ` 'B' ` job, but only for the past 5 minutes. If ` 'B' ` jobs run longer than 5 minutes, then
317
317
the scheduler is allowed to put more than two ` 'A' ` jobs for each ` 'B' ` job, because the usage of those long-running
318
318
` 'B' ` jobs will no longer be considered after 5 minutes. ` shareDecay ` linearly decreases the usage of
319
- long running jobs for calculation purposes. eg if share decay is 60 seconds,
319
+ long running jobs for calculation purposes. For example if share decay is 60 seconds,
320
320
then jobs that run for 30 seconds have their usage considered to be only 50% of what it actually is,
321
321
but after a whole minute the scheduler pretends they don't exist for fairness calculations.
322
322
@@ -342,7 +342,7 @@ where `ActiveFairShares` is the number of shares for which there exists
342
342
at least one job in the queue with a unique share identifier.
343
343
344
344
This is best illustrated with an example.
345
- Suppose there three shares with share identifiers ` A ` , ` B ` and ` C ` respectively
345
+ Suppose there are three shares with share identifiers ` A ` , ` B ` and ` C ` respectively
346
346
and we specify the ` computeReservation ` to be 75%. The queue is currently empty,
347
347
and no other shares exist.
348
348
@@ -365,7 +365,7 @@ so the percentage reserved is still 56.25%
365
365
Now a ` C ` job enters the queue. The number of active fair shares is now 3,
366
366
so (75/100)^3 = .421875 = 42.1875% of the maximum vCpus are reserved for all shares that do not have the identifier ` A ` , ` B ` , or ` C ` .
367
367
368
- If these are no other shares that your jobs can specify, this means that 42.1875% of your capacity will never be used!
368
+ If there are no other shares that your jobs can specify, this means that 42.1875% of your capacity will never be used!
369
369
370
370
Now, ` A ` , ` B ` , and ` C ` can only consume 100% - 42.1875% = 57.8125% of the maximum vCpus.
371
371
Note that the this percentage is ** not** split between ` A ` , ` B ` , and ` C ` .
@@ -440,8 +440,8 @@ they must all match for the action to be taken; the conditions are ANDed togethe
440
440
441
441
### Running single-container ECS workflows
442
442
443
- Batch can jobs on ECS or EKS. ECS jobs can defined as single container or multinode.
444
- This examples creates a ` JobDefinition ` that runs a single container with ECS:
443
+ Batch can run jobs on ECS or EKS. ECS jobs can be defined as single container or multinode.
444
+ This example creates a ` JobDefinition ` that runs a single container with ECS:
445
445
446
446
``` ts
447
447
import * as cdk from ' aws-cdk-lib' ;
0 commit comments