az sf chaos

Manage the Service Fabric Chaos service, designed to simulate real failures.

Commands

az sf chaos start If Chaos is not already running in the cluster, starts running Chaos with the specified in Chaos parameters.

az sf chaos start

If Chaos is not already running in the cluster, starts running Chaos with the specified in Chaos parameters.

az sf chaos start [--app-type-health-policy-map]
[--disable-move-replica-faults]
[--max-cluster-stabilization]
[--max-concurrent-faults]
[--max-percent-unhealthy-applications]
[--max-percent-unhealthy-nodes]
[--time-to-run]
[--timeout]
[--wait-time-between-faults]
[--wait-time-between-iterations]
[--warning-as-error]

Optional Parameters

--app-type-health-policy-map

JSON encoded list with max percentage unhealthy applications for specific application types. Each entry specifies as a key the application type name and as a value an integer that represents the MaxPercentUnhealthyApplications percentage used to evaluate the applications of the specified application type.

--disable-move-replica-faults

Disables the move primary and move secondary faults.

--max-cluster-stabilization

The maximum amount of time to wait for all cluster entities to become stable and healthy.

default value: 60
--max-concurrent-faults

The maximum number of concurrent faults induced per iteration.

default value: 1
--max-percent-unhealthy-applications

When evaluating cluster health during Chaos, the maximum allowed percentage of unhealthy applications before reporting an error.

--max-percent-unhealthy-nodes

When evaluating cluster health during Chaos, the maximum allowed percentage of unhealthy nodes before reporting an error.

--time-to-run

Total time (in seconds) for which Chaos will run before automatically stopping. The maximum allowed value is 4,294,967,295 (System.UInt32.MaxValue).

default value: 4294967295
--timeout -t

The server timeout for performing the operation, specified in seconds. This is the maximum time a client can wait.

default value: 60
--wait-time-between-faults

Wait time (in seconds) between consecutive faults within a single iteration.

default value: 20
--wait-time-between-iterations

Time-separation (in seconds) between two consecutive iterations of Chaos.

default value: 30
--warning-as-error

When evaluating cluster health during Chaos, treat warnings with the same severity as errors.