- JSON representation
- CloudSQLFailover
- L7LBHTTPFault
- HTTPAbort
- HTTPDelay
- GCEFailCompute
- MigElement
- InstanceList
- GKEFailCompute
The action to be performed by the experiment.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field action. Details about the fault-injection action. action can be only one of the following: |
|
cloudSqlFailover |
Specifies a CloudSQLFailover action. |
l7LbHttpFault |
Specifies an L7LBHTTPFault action. |
gceFailCompute |
Specifies a GCEFailCompute action. |
gkeFailCompute |
Specifies a GKEFailCompute action. |
CloudSQLFailover
CloudSQLFailover causes a Cloud SQL primary instance to fail over to another instance.
| JSON representation |
|---|
{ "instance": string } |
| Fields | |
|---|---|
instance |
Required. The identifying name of the Cloud SQL instance to fail over. Format: |
L7LBHTTPFault
Injection of HTTP faults into a layer 7 load balancer.
| JSON representation |
|---|
{ "forwardingRule": string, "backendService": string, // Union field |
| Fields | |
|---|---|
forwardingRule |
Required. The identifying name of the forwarding rule resource where the faults will be injected. Format: |
backendService |
Optional. Optional identifying name of the backend service to inject faults into. Format: |
Union field fault. The fault to be injected. Can inject either an HTTP error code or a delay. fault can be only one of the following: |
|
abort |
Returns an HTTP error code for some requests. |
delay |
Delays some HTTP responses. |
HTTPAbort
Artificially return a specific HTTP status code for a percentage of requests.
| JSON representation |
|---|
{ "statusCode": integer, "percentage": integer } |
| Fields | |
|---|---|
statusCode |
Required. HTTP status code to return. In the range 500 to 599, inclusive. |
percentage |
Required. Percentage of requests to abort, in the range 0 to 100, inclusive. |
HTTPDelay
Artificially delay HTTP responses for a percentage of requests.
| JSON representation |
|---|
{ "percentage": integer, "delay": string } |
| Fields | |
|---|---|
percentage |
Required. Percentage of requests to delay, in the range 0 to 100, inclusive. |
delay |
Required. Delay duration. A duration in seconds with up to nine fractional digits, ending with ' |
GCEFailCompute
GCEFailCompute specifies which instances to fail.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field specifier. Use one of these elements to specify which GCE instance(s) to fail. specifier can be only one of the following: |
|
secureTagValue |
Specifies a group of non-MIG (Managed Instance Group) instances by secure tag. See https://cloud.google.com/firewall/docs/tags-firewalls-overview for more details on tags. Format: |
mig |
Specifies a managed instance group. Can be zonal or regional. |
location |
Specifies that an entire zone or region should be affected. |
instances |
Specifies a list of instances. |
MigElement
Details specifying a Managed Instance Group (MIG) and optionally a zone within it.
| JSON representation |
|---|
{ "instanceGroupManager": string, "location": string } |
| Fields | |
|---|---|
instanceGroupManager |
Required. Specifies the manager of a managed instance group. Can be zonal or regional. Format: |
location |
Optional. Optionally specify a zone location to further restrict a regional MIG. |
InstanceList
A GCEFailCompute option for failing multiple instances by name.
| JSON representation |
|---|
{ "instances": [ string ] } |
| Fields | |
|---|---|
instances[] |
Required. Specifies instances by name. Format: |
GKEFailCompute
GKEFailCompute specifies infrastructure or workload to fail.
| JSON representation |
|---|
{ "cluster": string, "location": string, "k8sNamespace": [ string ] } |
| Fields | |
|---|---|
cluster |
Required. Options for selecting which GKE resources to fail. The GKE cluster resource name. Format: |
location |
Optional. Specifies a zone or region location. |
k8sNamespace[] |
Optional. Specifies one or more Kubernetes namespaces. |