Resource: WorkerPool
WorkerPool acts as a top-level container that manages a set instance splits among a set of Revisions and a template for creating new Revisions.
JSON representation |
---|
{ "apiVersion" : string , "kind" : string , "metadata" : { object ( |
apiVersion
string
The API version for this call. It must be "run.googleapis.com/v1".
kind
string
The kind of resource. It must be "WorkerPool".
spec
object (
WorkerPoolSpec
)
Holds the desired state of the WorkerPool (from the client).
status
object (
WorkerPoolStatus
)
Communicates the system-controlled state of the WorkerPool.
WorkerPoolSpec
WorkerPoolSpec holds the desired state of the WorkerPool's template and instance splits.
JSON representation |
---|
{ "template" : { object ( |
Fields | |
---|---|
template
|
Holds the latest specification for the Revision to be stamped out. |
instanceSplits[]
|
Specifies how to distribute instances over a collection of Revisions. |
InstanceSplit
Holds a single instance split entry for the Worker. Allocations can be done to a specific Revision name, or pointing to the latest Ready Revision.
JSON representation |
---|
{ "percent" : integer , // Union field |
percent
integer
Optional. Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
target
. The target of this instance split. target
can be only one of the following:revisionName
string
Revision to which to assign this portion of instances.
latestRevision
boolean
Uses the "status.latestReadyRevisionName" to determine the instance split target. When it changes, workloads will automatically migrate from the prior "latest ready" revision to the new one.
WorkerPoolStatus
The current state of the WorkerPool. Output only.
JSON representation |
---|
{ "observedGeneration" : integer , "conditions" : [ { object ( |
observedGeneration
integer
Returns the generation last seen by the system. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False.
conditions[]
object (
Condition
)
Conditions communicate information about ongoing/complete reconciliation processes that bring the spec
inline with the observed state of the world.
-
Ready
:True
when all underlying resources are ready.
latestReadyRevisionName
string
Name of the latest Revision from this WorkerPool's template that has had its Ready
condition become True
.
latestCreatedRevisionName
string
Name of the last revision that was created from this WorkerPool's template. It might not be ready yet, for that use LatestReadyRevisionName.
instanceSplits[]
object (
InstanceSplit
)
Holds the configured workload distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed.
Methods |
|
---|---|
|
Creates a new WorkerPool. |
|
Deletes the provided worker pool. |
|
Gets information about a worker pool. |
|
Lists worker pools for the given project and region. |
|
Replaces a worker pool. |