Mongo proxy

MongoDB configuration overview.

  1. {
  2. "name": "mongo_proxy",
  3. "config": {
  4. "stat_prefix": "...",
  5. "access_log": "...",
  6. "fault": {}
  7. }
  8. }

stat_prefix

(required, string) The prefix to use when emitting statistics.

access_log

(optional, string) The optional path to use for writing Mongo access logs. If not access log path is specified no access logs will be written. Note that access log is also gated by runtime.

fault

(optional, object) If specified, the filter will inject faults based on the values in the object.

Fault configuration

Configuration for MongoDB fixed duration delays. Delays are applied to the following MongoDB operations: Query, Insert, GetMore, and KillCursors. Once an active delay is in progress, all incoming data up until the timer event fires will be a part of the delay.

  1. {
  2. "fixed_delay": {
  3. "percent": "...",
  4. "duration_ms": "..."
  5. }
  6. }

percent

(required, integer) Probability of an eligible MongoDB operation to be affected by the injected fault when there is no active fault. Valid values are integers in a range of [0, 100].

duration_ms

(required, integer) Non-negative delay duration in milliseconds.