@Generated(value="by GAPIC") @BetaApi public final class Backend extends Object implements com.google.api.gax.httpjson.ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
Backend.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.google.api.gax.httpjson.ApiMessage |
getApiMessageRequestBody() |
String |
getBalancingMode()
Specifies the balancing mode for the backend.
|
Float |
getCapacityScaler()
A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or
CONNECTION).
|
static Backend |
getDefaultInstance() |
String |
getDescription()
An optional description of this resource.
|
List<String> |
getFieldMask() |
Object |
getFieldValue(String fieldName) |
String |
getGroup()
The fully-qualified URL of an instance group or network endpoint group (NEG) resource.
|
Integer |
getMaxConnections()
Defines a maximum target for simultaneous connections for the entire backend (instance group or
NEG).
|
Integer |
getMaxConnectionsPerEndpoint()
Defines a maximum target for simultaneous connections for an endpoint of a NEG.
|
Integer |
getMaxConnectionsPerInstance()
Defines a maximum target for simultaneous connections for a single VM in a backend instance
group.
|
Integer |
getMaxRate()
The max requests per second (RPS) of the group.
|
Float |
getMaxRatePerEndpoint()
Defines a maximum target for requests per second (RPS) for an endpoint of a NEG.
|
Float |
getMaxRatePerInstance()
Defines a maximum target for requests per second (RPS) for a single VM in a backend instance
group.
|
Float |
getMaxUtilization()
Defines the maximum average CPU utilization of a backend VM in an instance group.
|
int |
hashCode() |
static Backend.Builder |
newBuilder() |
static Backend.Builder |
newBuilder(Backend prototype) |
Backend.Builder |
toBuilder() |
String |
toString() |
public Object getFieldValue(String fieldName)
getFieldValue
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public com.google.api.gax.httpjson.ApiMessage getApiMessageRequestBody()
getApiMessageRequestBody
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public List<String> getFieldMask()
getFieldMask
in interface com.google.api.gax.httpjson.ApiMessage
public String getBalancingMode()
When choosing a balancing mode, you need to consider the loadBalancingScheme, and protocol for the backend service, as well as the type of backend (instance group or NEG).
- If the load balancing mode is CONNECTION, then the load is spread based on how many concurrent connections the backend can handle. You can use the CONNECTION balancing mode if the protocol for the backend service is SSL, TCP, or UDP.
If the loadBalancingScheme for the backend service is EXTERNAL (SSL Proxy and TCP Proxy load balancers), you must also specify exactly one of the following parameters: maxConnections, maxConnectionsPerInstance, or maxConnectionsPerEndpoint.
If the loadBalancingScheme for the backend service is INTERNAL (internal TCP/UDP load balancers), you cannot specify any additional parameters.
- If the load balancing mode is RATE, the load is spread based on the rate of HTTP requests per second (RPS). You can use the RATE balancing mode if the protocol for the backend service is HTTP or HTTPS. You must specify exactly one of the following parameters: maxRate, maxRatePerInstance, or maxRatePerEndpoint.
- If the load balancing mode is UTILIZATION, the load is spread based on the CPU utilization of instances in an instance group. You can use the UTILIZATION balancing mode if the loadBalancingScheme of the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED and the backends are instance groups. There are no restrictions on the backend service protocol.
public Float getCapacityScaler()
This cannot be used for internal load balancing.
public String getDescription()
public String getGroup()
- When the loadBalancingScheme for the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED, the backend can be either an instance group or a NEG. The backends on the backend service must be either all instance groups or all NEGs. You cannot mix instance group and NEG backends on the same backend service.
- When the loadBalancingScheme for the backend service is INTERNAL, the backend must be an instance group in the same region as the backend service. NEGs are not supported.
You must use the fully-qualified URL (starting with https://www.googleapis.com/) to specify the instance group or NEG. Partial URLs are not supported.
public Integer getMaxConnections()
Not available if the backend's balancingMode is RATE. If the loadBalancingScheme is INTERNAL, then maxConnections is not supported, even though the backend requires a balancing mode of CONNECTION.
public Integer getMaxConnectionsPerEndpoint()
Not available if the backend's balancingMode is RATE. Internal TCP/UDP load balancing does not support setting maxConnectionsPerEndpoint even though its backends require a balancing mode of CONNECTION.
public Integer getMaxConnectionsPerInstance()
Not available if the backend's balancingMode is RATE. Internal TCP/UDP load balancing does not support setting maxConnectionsPerInstance even though its backends require a balancing mode of CONNECTION.
public Integer getMaxRate()
This cannot be used for internal load balancing.
public Float getMaxRatePerEndpoint()
If the backend's balancingMode is RATE, you must specify either this parameter, maxRate, or maxRatePerInstance.
Not available if the backend's balancingMode is CONNECTION.
public Float getMaxRatePerInstance()
If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the backend's balancingMode is RATE, you must specify either this parameter, maxRate, or maxRatePerEndpoint.
Not available if the backend's balancingMode is CONNECTION.
public Float getMaxUtilization()
This parameter can be used in conjunction with maxRate, maxRatePerInstance, maxConnections, or maxConnectionsPerInstance.
public static Backend.Builder newBuilder()
public static Backend.Builder newBuilder(Backend prototype)
public Backend.Builder toBuilder()
public static Backend getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.