public class CreateWorkerTypeRequest extends Object
A worker launchSpecification and required metadata
See http://schemas.taskcluster.net/aws-provisioner/v1/create-worker-type-request.json#
Modifier and Type | Field and Description |
---|---|
AvailabilityZoneConfiguration[] |
availabilityZones
|
boolean |
canUseOndemand
True if this worker type is allowed on demand instances.
|
boolean |
canUseSpot
True if this worker type is allowed spot instances.
|
String |
description
A string which describes what this image is for and hints on using itSee http://schemas.taskcluster.net/aws-provisioner/v1/create-worker-type-request.json#/properties/description
|
InstanceTypeConfiguration[] |
instanceTypes
|
Object |
launchSpec
Launch Specification entries which are used in all regions and all instance typesSee http://schemas.taskcluster.net/aws-provisioner/v1/create-worker-type-request.json#/properties/launchSpec
|
int |
maxCapacity
Maximum number of capacity units to be provisioned.
|
int |
maxPrice
Maximum price we’ll pay.
|
int |
minCapacity
Minimum number of capacity units to be provisioned.
|
int |
minPrice
Minimum price to pay for an instance.
|
String |
owner
A string which identifies the owner of this worker typeSee http://schemas.taskcluster.net/aws-provisioner/v1/create-worker-type-request.json#/properties/owner
|
RegionConfiguration[] |
regions
|
int |
scalingRatio
A scaling ratio of
0.2 means that the provisioner will attempt to keep the number of pending tasks around 20% of the provisioned capacity. |
String[] |
scopes
Scopes to issue credentials to for all regions Scopes must be composed of printable ASCII characters and spaces.
|
Object |
secrets
Static secrets entries which are used in all regions and all instance typesSee http://schemas.taskcluster.net/aws-provisioner/v1/create-worker-type-request.json#/properties/secrets
|
Object |
userData
UserData entries which are used in all regions and all instance typesSee http://schemas.taskcluster.net/aws-provisioner/v1/create-worker-type-request.json#/properties/userData
|
Constructor and Description |
---|
CreateWorkerTypeRequest() |
public AvailabilityZoneConfiguration[] availabilityZones
public boolean canUseOndemand
True if this worker type is allowed on demand instances. Currently ignored
public boolean canUseSpot
True if this worker type is allowed spot instances. Currently ignored as all instances are Spot
public String description
A string which describes what this image is for and hints on using it
public InstanceTypeConfiguration[] instanceTypes
public Object launchSpec
Launch Specification entries which are used in all regions and all instance types
public int maxCapacity
Maximum number of capacity units to be provisioned.
public int maxPrice
Maximum price we’ll pay. Like minPrice, this takes into account the utility factor when figuring out what the actual SpotPrice submitted to Amazon will be
public int minCapacity
Minimum number of capacity units to be provisioned. A capacity unit is an abstract unit of capacity, where one capacity unit is roughly one task which should be taken off the queue
public int minPrice
Minimum price to pay for an instance. A Price is considered to be the Amazon Spot Price multiplied by the utility factor of the InstantType as specified in the instanceTypes list. For example, if the minPrice is set to $0.5 and the utility factor is 2, the actual minimum bid used will be $0.25
public String owner
A string which identifies the owner of this worker type
See http://schemas.taskcluster.net/aws-provisioner/v1/create-worker-type-request.json#/properties/owner
public RegionConfiguration[] regions
public int scalingRatio
A scaling ratio of 0.2
means that the provisioner will attempt to keep the number of pending tasks around 20% of the provisioned capacity. This results in pending tasks waiting 20% of the average task execution time before starting to run. A higher scaling ratio often results in better utilization and longer waiting times. For workerTypes running long tasks a short scaling ratio may be preferred, but for workerTypes running quick tasks a higher scaling ratio may increase utilization without major delays. If using a scaling ratio of 0, the provisioner will attempt to keep the capacity of pending spot requests equal to the number of pending tasks.
public String[] scopes
Scopes to issue credentials to for all regions Scopes must be composed of printable ASCII characters and spaces.
See http://schemas.taskcluster.net/aws-provisioner/v1/create-worker-type-request.json#/properties/scopes
public Object secrets
Static secrets entries which are used in all regions and all instance types
public Object userData
UserData entries which are used in all regions and all instance types
Copyright © 2014–2018 Mozilla. All rights reserved.