Skip to content

Commit 4381550

Browse files
authored
chore(batch): fix typos in the README (#25123)
---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 046d0fc commit 4381550

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/@aws-cdk/aws-batch-alpha/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ For example, a `shareDecay` of 5 minutes in the above example means that at any
316316
will be scheduled for each `'B'` job, but only for the past 5 minutes. If `'B'` jobs run longer than 5 minutes, then
317317
the scheduler is allowed to put more than two `'A'` jobs for each `'B'` job, because the usage of those long-running
318318
`'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,
320320
then jobs that run for 30 seconds have their usage considered to be only 50% of what it actually is,
321321
but after a whole minute the scheduler pretends they don't exist for fairness calculations.
322322

@@ -342,7 +342,7 @@ where `ActiveFairShares` is the number of shares for which there exists
342342
at least one job in the queue with a unique share identifier.
343343

344344
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
346346
and we specify the `computeReservation` to be 75%. The queue is currently empty,
347347
and no other shares exist.
348348

@@ -365,7 +365,7 @@ so the percentage reserved is still 56.25%
365365
Now a `C` job enters the queue. The number of active fair shares is now 3,
366366
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`.
367367

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!
369369

370370
Now, `A`, `B`, and `C` can only consume 100% - 42.1875% = 57.8125% of the maximum vCpus.
371371
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
440440

441441
### Running single-container ECS workflows
442442

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:
445445

446446
```ts
447447
import * as cdk from 'aws-cdk-lib';

0 commit comments

Comments
 (0)