# Cloud Bigtable V2 API - Class Google::Cloud::Bigtable::V2::LoadBalancingOptions::PeakEwma (v1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.2 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.5 Reference documentation and code samples for the Cloud Bigtable V2 API class Google::Cloud::Bigtable::V2::LoadBalancingOptions::PeakEwma.

Balances vRPCs over backends, by maintaining a moving average of each AFE's
round-trip time, weighted by the number of outstanding vRPCs, and
distribute traffic to AFEs where that cost function is smallest.


<br />

See:
<https://linkerd.io/2016/03/16/beyond-round-robin-load-balancing-for-latency>

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #random_subset_size

    def random_subset_size() -> ::Integer

**Returns**

- (::Integer) --- Of all connected AFEs, the size of the random subset to compare costs over. Zero implies all connected AFEs.

### #random_subset_size=

    def random_subset_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Of all connected AFEs, the size of the random subset to compare costs over. Zero implies all connected AFEs.
**Returns**

- (::Integer) --- Of all connected AFEs, the size of the random subset to compare costs over. Zero implies all connected AFEs.