Add xDS interop test specification for outlier detection (#29623)

* Add xDS interop test specification for outleir detection

* Add initial verification of traffic distribution
pull/29639/head
Michael Lumish 3 years ago committed by GitHub
parent 98cef58e9e
commit e68bf6ac30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 35
      doc/xds-test-descriptions.md

@ -745,3 +745,38 @@ the forwarding rule port `80` and the URL map host rule `myservice`.
1. No traffic goes to backends when configuring the target URI 1. No traffic goes to backends when configuring the target URI
`xds:///myservice`, the forwarding rule port `80` and the host rule `xds:///myservice`, the forwarding rule port `80` and the host rule
`myservice::80`. `myservice::80`.
### outlier_detection
This test verifies that the client applies the outlier detection configuration
and temporarily drops traffic to a server that fails requests.
Client parameters:
1. --num_channels=1
2. --qps=100
Load balancer configuration:
1. One MIG with five backends, with a `backendService` configuration with the
following `outlierDetection` entry
```json
{
"interval": {
"seconds": 2,
"nanos": 0
},
"successRateRequestVolume": 20
}
```
Assert:
1. The test driver asserts that traffic is equally distribted among the
five backends, and all requests end with the `OK` status.
2. The test driver chooses one of the five backends to fail requests, and
configures the client to send the metadata
`rpc-behavior: hostname=<chosen backend> error-code-2`. The driver asserts
that during some 10-second interval, all traffic goes to the other four
backends and all requests end with the `OK` status.
3. The test driver removes the client configuration to send metadata. The
driver asserts that during some 10-second interval, traffic is equally
distributed among the five backends, and all requests end with the `OK` status.
Loading…
Cancel
Save