forked from awslabs/ec2-spot-jenkins-plugin
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from jenkinsci/scale-executors-by-weight
* Scale executors by LaunchSpecification weight This works nicely with a SpotFleet weighted by vCPU count (easy in the management console). * Rebase of #32 allow to scale number of executors by weight
- Loading branch information
Showing
11 changed files
with
659 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...main/resources/com/amazon/jenkins/ec2fleet/EC2FleetCloud/help-scaleExecutorsByWeight.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
If unchecked which is default, plugin will not use | ||
<a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet.html#spot-instance-weighting">instance | ||
weight</a> | ||
information to scale number of executors per node, and just set number of executors defined in | ||
configuration field <code>Number of Executors</code> | ||
|
||
<p> | ||
When it's checked, plugin consumes instance weight information provided by Launch Specification | ||
and uses it to scale node number of executors from configuration field <code>Number of Executors</code> | ||
<b>Note</b> current implementation doesn't support Launch Template only Launch Specification | ||
</p> | ||
|
||
<p> | ||
Example (here instance type from launch specification match with | ||
launched instance type): | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th>Number of Executors</th> | ||
<th>Instance Weight</th> | ||
<th>Effective<br>Number of Executors</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>1</td> | ||
<td>1</td> | ||
<td>1</td> | ||
</tr> | ||
<tr> | ||
<td>1</td> | ||
<td>0.5</td> | ||
<td>1</td> | ||
</tr> | ||
<tr> | ||
<td>1</td> | ||
<td>0.1</td> | ||
<td>1</td> | ||
</tr> | ||
<tr> | ||
<td>10</td> | ||
<td>0.1</td> | ||
<td>1</td> | ||
</tr> | ||
<tr> | ||
<td>1</td> | ||
<td>1.5</td> | ||
<td>2</td> | ||
</tr> | ||
<tr> | ||
<td>1</td> | ||
<td>1.44</td> | ||
<td>1</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</p> | ||
|
||
<p> | ||
Plugin always set number of executors <b>at least one</b>. | ||
If launched instance type doesn't match any weight in launch specification | ||
regular number of executors will be used without any scale. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.