Common fault injection types

config.filter.fault.v2.FaultDelay

[config.filter.fault.v2.FaultDelay proto]

Delay specification is used to inject latency into the HTTP/gRPC/Mongo/Redis operation or delay proxying of TCP connections.

{
  "type": "...",
  "fixed_delay": "{...}",
  "percentage": "{...}"
}
type
(config.filter.fault.v2.FaultDelay.FaultDelayType) Delay type to use (fixed|exponential|..). Currently, only fixed delay (step function) is supported.
fixed_delay
(Duration, REQUIRED) Add a fixed delay before forwarding the operation upstream. See https://developers.google.com/protocol-buffers/docs/proto3#json for the JSON/YAML Duration mapping. For HTTP/Mongo/Redis, the specified delay will be injected before a new request/operation. For TCP connections, the proxying of the connection upstream will be delayed for the specified period. This is required if type is FIXED.
percentage
(type.FractionalPercent) The percentage of operations/connections/requests on which the delay will be injected.

Enum config.filter.fault.v2.FaultDelay.FaultDelayType

[config.filter.fault.v2.FaultDelay.FaultDelayType proto]

FIXED
(DEFAULT) ⁣Fixed delay (step function).

config.filter.fault.v2.FaultRateLimit

[config.filter.fault.v2.FaultRateLimit proto]

Describes a rate limit to be applied.

{
  "fixed_limit": "{...}",
  "percentage": "{...}"
}
fixed_limit
(config.filter.fault.v2.FaultRateLimit.FixedLimit, REQUIRED) A fixed rate limit.
percentage
(type.FractionalPercent) The percentage of operations/connections/requests on which the rate limit will be injected.

config.filter.fault.v2.FaultRateLimit.FixedLimit

[config.filter.fault.v2.FaultRateLimit.FixedLimit proto]

Describes a fixed/constant rate limit.

{
  "limit_kbps": "..."
}
limit_kbps
(uint64) The limit supplied in KiB/s.