Method: projects.regions.clusters.nodeGroups.resize

Resizes a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata.

HTTP request

POST https://dataproc.googleapis.com/v1/{name=projects/*/regions/*/clusters/*/nodeGroups/*}:resize

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the node group to resize. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}

Request body

The request body contains data with the following structure:

JSON representation
{
  "size": integer,
  "requestId": string,
  "gracefulDecommissionTimeout": string,
  "parentOperationId": string
}
Fields
size

integer

Required. The number of running instances for the node group to maintain. The group adds or removes instances to maintain the number of instances specified by this parameter.

requestId

string

Optional. A unique ID used to identify the request. If the server receives two ResizeNodeGroupRequest with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.

Recommendation: Set this value to a UUID.

The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.

gracefulDecommissionTimeout

string (Duration format)

Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning allows the removal of nodes from the Compute Engine node group without interrupting jobs in progress. This timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation of Duration).

Only supported on Dataproc image versions 1.2 and higher.

parentOperationId

string

Optional. operation id of the parent operation sending the resize request

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.