Class Subsetting (1.17.0)

Subsetting(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Subsetting configuration for this BackendService. Currently this is applicable only for Internal TCP/UDP load balancing, Internal HTTP(S) load balancing and Traffic Director.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attribute

NameDescription
policy str
Check the Policy enum for the list of possible values. This field is a member of oneof_ _policy.

Classes

Policy

Policy(value)

Values: UNDEFINED_POLICY (0): A value indicating that the enum field is not set. CONSISTENT_HASH_SUBSETTING (108989492): Subsetting based on consistent hashing. For Traffic Director, the number of backends per backend group (the subset size) is based on the subset_size parameter. For Internal HTTP(S) load balancing, the number of backends per backend group (the subset size) is dynamically adjusted in two cases: - As the number of proxy instances participating in Internal HTTP(S) load balancing increases, the subset size decreases. - When the total number of backends in a network exceeds the capacity of a single proxy instance, subset sizes are reduced automatically for each service that has backend subsetting enabled. NONE (2402104): No Subsetting. Clients may open connections and send traffic to all backends of this backend service. This can lead to performance issues if there is substantial imbalance in the count of clients and backends.