gcloud alpha compute backend-services update-backend
BACKEND_SERVICE_NAME
([--instance-group
=INSTANCE_GROUP
: --instance-group-region
=INSTANCE_GROUP_REGION
| --instance-group-zone
=INSTANCE_GROUP_ZONE
] | [--network-endpoint-group
=NETWORK_ENDPOINT_GROUP
: --network-endpoint-group-zone
=NETWORK_ENDPOINT_GROUP_ZONE
]) [--balancing-mode
=BALANCING_MODE
] [--capacity-scaler
=CAPACITY_SCALER
] [--description
=DESCRIPTION
] [--failover
] [--max-utilization
=MAX_UTILIZATION
] [--preference
=PREFERENCE
] [--clear-custom-metrics
| --custom-metrics
=[CUSTOM_METRICS
,…] | --custom-metrics-file
=[CUSTOM_METRICS
,…]] [--global
| --region
=REGION
] [--max-connections
=MAX_CONNECTIONS
| --max-connections-per-endpoint
=MAX_CONNECTIONS_PER_ENDPOINT
| --max-connections-per-instance
=MAX_CONNECTIONS_PER_INSTANCE
| --max-rate
=MAX_RATE
| --max-rate-per-endpoint
=MAX_RATE_PER_ENDPOINT
| --max-rate-per-instance
=MAX_RATE_PER_INSTANCE
] [GCLOUD_WIDE_FLAG …
]
(ALPHA)
gcloud alpha compute backend-services update-backend
updates a backend that is part of a backend service. This is useful for changing the way a backend behaves. Example changes that can be made include changing the load balancing policy and draining a backend by setting its capacity scaler to zero.
Backends are instance groups or network endpoint groups. One of the --network-endpoint-group
or --instance-group
flags is required to identify the backend that you are modifying. You cannot change the instance group or network endpoint group associated with a backend, but you can remove a backend and add a new one with backend-services remove-backend
and backend-services add-backend
.
The gcloud compute backend-services edit
command can also update a backend if the use of a text editor is desired.
For more information about the available settings, see https://cloud.google.com/load-balancing/docs/backend-service.
BACKEND_SERVICE_NAME
--instance-group
=INSTANCE_GROUP
This flag argument must be specified if any of the other arguments in this group are specified.
--instance-group-region
=INSTANCE_GROUP_REGION
To avoid prompting when this flag is omitted, you can set the
property:compute/region
gcloud config set compute/region REGION
A list of regions can be fetched by running:
gcloud compute regions list
To unset the property, run:
gcloud config unset compute/region
Alternatively, the region can be stored in the environment variable
.CLOUDSDK_COMPUTE_REGION
--instance-group-zone
=INSTANCE_GROUP_ZONE
compute/zone
property isn't set, you might be prompted to select a zone (interactive mode only).
To avoid prompting when this flag is omitted, you can set the
property:compute/zone
gcloud config set compute/zone ZONE
A list of zones can be fetched by running:
gcloud compute zones list
To unset the property, run:
gcloud config unset compute/zone
Alternatively, the zone can be stored in the environment variable
.CLOUDSDK_COMPUTE_ZONE
--network-endpoint-group
=NETWORK_ENDPOINT_GROUP
This flag argument must be specified if any of the other arguments in this group are specified.
--network-endpoint-group-zone
=NETWORK_ENDPOINT_GROUP_ZONE
compute/zone
property isn't set, you might be prompted to select a zone (interactive mode only).
To avoid prompting when this flag is omitted, you can set the
property:compute/zone
gcloud config set compute/zone ZONE
A list of zones can be fetched by running:
gcloud compute zones list
To unset the property, run:
gcloud config unset compute/zone
Alternatively, the zone can be stored in the environment variable
.CLOUDSDK_COMPUTE_ZONE
--balancing-mode
=BALANCING_MODE
BALANCING_MODE
must be one of:
CONNECTION
INTERNAL
or EXTERNAL
. Available if the backend service's protocol is one of SSL
, TCP
, or UDP
.
Spreads load based on how many concurrent connections the backend can handle.
For backend services with --load-balancing-scheme EXTERNAL
, you must specify exactly one of these additional parameters: --max-connections
, --max-connections-per-instance
, or --max-connections-per-endpoint
.
For backend services where --load-balancing-scheme
is INTERNAL
, you must omit all of these parameters.
CUSTOM_METRICS
RATE
INTERNAL_MANAGED
, INTERNAL_SELF_MANAGED
, or EXTERNAL
. Available if the backend service's protocol is one of HTTP, HTTPS, or HTTP/2.
Spreads load based on how many HTTP requests per second (RPS) the backend can handle.
You must specify exactly one of these additional parameters: --max-rate
, --max-rate-per-instance
, or --max-rate-per-endpoint
.
UTILIZATION
INTERNAL_MANAGED
, INTERNAL_SELF_MANAGED
, or EXTERNAL
. Available only for managed or unmanaged instance group backends.
Spreads load based on the backend utilization of instances in a backend instance group.
The following additional parameters may be specified: --max-utilization
, --max-rate
, --max-rate-per-instance
, --max-connections
, --max-connections-per-instance
. For valid combinations, see --max-utilization
.
--capacity-scaler
=CAPACITY_SCALER
--description
=DESCRIPTION
--failover
--max-utilization
=MAX_UTILIZATION
0.0
(0%) through 1.0
(100%). This is an optional parameter for the UTILIZATION
balancing mode.
You can use this parameter with other parameters for defining target capacity. For usage guidelines, see Balancing mode combinations.
--preference
=PREFERENCE
PREFERENCE
must be one of:
DEFAULT
PREFERRED
--clear-custom-metrics
--custom-metrics
=[CUSTOM_METRICS
,…]
Example:
gcloud alpha compute backend-services update-backend --custom-metrics='name=my-signal,maxUtilization=0.8,dryRun=true'
gcloud alpha compute backend-services update-backend --custom-metrics='name=my-signal,maxUtilization=0.8,dryRun=true'--custom-metrics='name=my-signal2,maxUtilization=0.2'
gcloud alpha compute backend-services update-backend --custom-metrics='[{"name" : "my-signal", "maxUtilization" :
0.8, "dryRun" : true}, {"name" : "my-signal2", "maxUtilization" : 0.1}]'
Sets custom_metrics
value.
dryRun
dryRun
value.
maxUtilization
maxUtilization
value.
name
name
value.
Shorthand Example:
--custom-metrics=dryRun=boolean,maxUtilization=float,name=string --custom-metrics=dryRun=boolean,maxUtilization=float,name=string
JSON Example:
--custom-metrics='[{"dryRun": boolean, "maxUtilization": float, "name": "string"}]'
File Example:
--custom-metrics=path_to_file.(yaml|json)
--custom-metrics-file
=[CUSTOM_METRICS
,…]
Example:
gcloud alpha compute backend-services update-backend --custom-metrics-file='customMetric.json'
Sets custom_metrics_file
value.
dryRun
dryRun
value.
maxUtilization
maxUtilization
value.
name
name
value.
Shorthand Example:
--custom-metrics-file=dryRun=boolean,maxUtilization=float,name=string --custom-metrics-file=dryRun=boolean,maxUtilization=float,name=string
JSON Example:
--custom-metrics-file='[{"dryRun": boolean, "maxUtilization": float, "name": "string"}]'
File Example:
--custom-metrics-file=path_to_file.(yaml|json)
--global
--region
=REGION
compute/region
property value for this command invocation.
--max-connections
=MAX_CONNECTIONS
--max-connections-per-endpoint
=MAX_CONNECTIONS_PER_ENDPOINT
MAX_CONNECTIONS_PER_ENDPOINT
by the number of endpoints in the network endpoint group, and then dividing by the number of healthy endpoints.
--max-connections-per-instance
=MAX_CONNECTIONS_PER_INSTANCE
MAX_CONNECTIONS_PER_INSTANCE
by the number of instances in the instance group, and then dividing by the number of healthy instances.
--max-rate
=MAX_RATE
--max-rate-per-endpoint
=MAX_RATE_PER_ENDPOINT
MAX_RATE_PER_ENDPOINT
by the number of endpoints in the network endpoint group, and then dividing by the number of healthy endpoints.
--max-rate-per-instance
=MAX_RATE_PER_INSTANCE
MAX_RATE_PER_INSTANCE
by the number of instances in the instance group, and then dividing by the number of healthy instances. This parameter is compatible with managed instance group backends that use autoscaling based on load balancing.
--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 $ gcloud help
for details.
gcloud compute backend-services update-backend
gcloud beta compute backend-services update-backend
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4