HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/394/help/man/man1/gcloud_beta_dataflow_jobs_update-options.1
.TH "GCLOUD_BETA_DATAFLOW_JOBS_UPDATE\-OPTIONS" 1



.SH "NAME"
.HP
gcloud beta dataflow jobs update\-options \- update pipeline options on\-the\-fly for running Dataflow jobs



.SH "SYNOPSIS"
.HP
\f5gcloud beta dataflow jobs update\-options\fR \fIJOB_ID\fR [\fB\-\-max\-num\-workers\fR=\fIMAX_NUM_WORKERS\fR] [\fB\-\-min\-num\-workers\fR=\fIMIN_NUM_WORKERS\fR] [\fB\-\-region\fR=\fIREGION_ID\fR] [\fB\-\-unset\-worker\-utilization\-hint\fR] [\fB\-\-worker\-utilization\-hint\fR=\fIWORKER_UTILIZATION_HINT\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(BETA)\fR This command can modify properties of running Dataflow jobs.
Currently, only updating autoscaling settings for Streaming Engine jobs is
supported.

Adjust the autoscaling settings for Streaming Engine Dataflow jobs by providing
at\-least one of \-\-min\-num\-workers or \-\-max\-num\-workers or
\-\-worker\-utilization\-hint (or all 3), or
\-\-unset\-worker\-utilization\-hint (which cannot be run at the same time as
\-\-worker\-utilization\-hint but works with the others). Allow a few minutes
for the changes to take effect.

Note that autoscaling settings can only be modified on\-the\-fly for Streaming
Engine jobs. Attempts to modify batch job or Streaming Appliance jobs will fail.



.SH "EXAMPLES"

Modify autoscaling settings to scale between 5\-10 workers:

.RS 2m
$ gcloud beta dataflow jobs update\-options \-\-min\-num\-workers=5 \e
    \-\-max\-num\-workers=10
.RE

Require a job to use at least 2 workers:

.RS 2m
$ gcloud beta dataflow jobs update\-options \-\-min\-num\-workers=2
.RE

Require a job to use at most 20 workers:

.RS 2m
$ gcloud beta dataflow jobs update\-options \-\-max\-num\-workers=20
.RE

Adjust the hint of target worker utilization to 70% for horizontal autoscaling:

.RS 2m
$ gcloud beta dataflow jobs update\-options \e
    \-\-worker\-utilization\-hint=0.7
.RE

"Unset" worker utilization hint so that horizontal scaling will rely on its
default CPU utilization target:

.RS 2m
$ gcloud beta dataflow jobs update\-options \e
    \-\-unset\-worker\-utilization\-hint
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m
\fIJOB_ID\fR

Job ID to operate on.


.RE
.sp

.SH "FLAGS"

.RS 2m
.TP 2m
\fB\-\-max\-num\-workers\fR=\fIMAX_NUM_WORKERS\fR

Upper\-bound for autoscaling, between 1\-1000. Only supported for
streaming\-engine jobs.

.TP 2m
\fB\-\-min\-num\-workers\fR=\fIMIN_NUM_WORKERS\fR

Lower\-bound for autoscaling, between 1\-1000. Only supported for
streaming\-engine jobs.

.TP 2m
\fB\-\-region\fR=\fIREGION_ID\fR

Region ID of the job's regional endpoint. Defaults to 'us\-central1'.

.TP 2m
\fB\-\-unset\-worker\-utilization\-hint\fR

Unset \-\-worker\-utilization\-hint. This causes the job autoscaling to fall
back to internal tunings if they exist, or otherwise use the default hint value.

.TP 2m
\fB\-\-worker\-utilization\-hint\fR=\fIWORKER_UTILIZATION_HINT\fR

Target CPU utilization for autoscaling, ranging from 0.1 to 0.9. Only supported
for streaming\-engine jobs with autoscaling enabled.


.RE
.sp

.SH "GCLOUD WIDE FLAGS"

These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.

Run \fB$ gcloud help\fR for details.



.SH "NOTES"

This command is currently in beta and might change without notice. This variant
is also available:

.RS 2m
$ gcloud dataflow jobs update\-options
.RE