ChaosParameters Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class defines all the test parameters to configure the ChaosTestScenario.
[System.Serializable]
public class ChaosParameters : System.Fabric.ByteSerializable
[<System.Serializable>]
type ChaosParameters = class
inherit ByteSerializable
Public Class ChaosParameters
Inherits ByteSerializable
- Inheritance
- Attributes
Constructors
ChaosParameters() |
Initializes a new instance of the ChaosParameters class. |
ChaosParameters(Int64, Nullable<TimeSpan>) |
Initializes a new instance of the ChaosParameters class. |
ChaosParameters(TimeSpan, Int64, Boolean, Nullable<TimeSpan>) |
Initializes a new instance of the ChaosParameters class. |
ChaosParameters(TimeSpan, Int64, Boolean, TimeSpan, Dictionary<String,String>, TimeSpan, TimeSpan, ClusterHealthPolicy) |
Initializes a new instance of the ChaosParameters class. |
ChaosParameters(TimeSpan, Int64, Boolean, TimeSpan, Dictionary<String,String>, TimeSpan, TimeSpan) |
Initializes a new instance of the ChaosParameters class. |
ChaosParameters(TimeSpan, Int64, Boolean, TimeSpan, Dictionary<String,String>) |
Initializes a new instance of the ChaosParameters class. |
Properties
ChaosTargetFilter |
List of cluster entities to target for Chaos faults. This filter can be used to target Chaos faults only to certain node types or only to certain applications. |
ClusterHealthPolicy |
ClusterHealthPolicy determines the state of the health of the entities that Chaos ensures before going onto the next set of faults. Setting 'ConsiderWarningAsError' to false would let Chaos go onto the next set of faults while there are entities in the cluster with healthState == warning (although Chaos will skip the entities in warning while choosing faultable entities.) |
Context |
Gets the bag of (key, value) pairs that was passed while starting Chaos |
EnableMoveReplicaFaults |
Enables or disables the MovePrimary, MoveSecondary, MoveInstance, and MoveAuxiliary faults. |
MaxClusterStabilizationTimeout |
The maximum amount of time to wait for the cluster to stabilize after a fault before failing the test. |
MaxConcurrentFaults |
Maximum number of concurrent faults induced per iteration with the lowest being 1. The higer the concurrency the more aggressive the failovers; thus, inducing more complex series of failures to uncover bugs -- using 2 or 3 for this is recommended. |
TimeToRun |
Total time for which the scenario will run before ending. |
WaitTimeBetweenFaults |
The maximum wait time between consecutive faults: the larger the value, the lower the concurrency (of faults). |
WaitTimeBetweenIterations |
Wait time between two iterations for a random duration bound by this value. |
Methods
FromBytes(Byte[]) |
This is the default implementation to covert an object back from a byte array (Inherited from ByteSerializable) |
Read(BinaryReader) |
Reads the state of this object from byte array. |
RehydratePropertiesNotInCtorFrom(ChaosParameters) |
Assumes the unique internal ctor is always called and populate the public properties that have not been set in that ctor |
ToBytes() |
This is the default implementation to convert an object into a byte array (Inherited from ByteSerializable) |
ToString() |
Returns a string representation of the class |
Write(BinaryWriter) |
Writes the state of this object into a byte array. |
Applies to
Azure SDK for .NET