Reference documentation and code samples for the Cloud Bigtable V2 Client class 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.
See: https://linkerd.io/2016/03/16/beyond-round-robin-load-balancing-for-latency
Generated from protobuf message google.bigtable.v2.LoadBalancingOptions.PeakEwma
Namespace
Google \ Cloud \ Bigtable \ V2 \ LoadBalancingOptionsMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ random_subset_size |
int|string
Of all connected AFEs, the size of the random subset to compare costs over. Zero implies all connected AFEs. |
getRandomSubsetSize
Of all connected AFEs, the size of the random subset to compare costs over. Zero implies all connected AFEs.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setRandomSubsetSize
Of all connected AFEs, the size of the random subset to compare costs over. Zero implies all connected AFEs.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|