你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ChaosParameters 构造函数

定义

重载

ChaosParameters()

初始化 ChaosParameters 类的新实例。

ChaosParameters(Int64, Nullable<TimeSpan>)

初始化 ChaosParameters 类的新实例。

ChaosParameters(TimeSpan, Int64, Boolean, Nullable<TimeSpan>)

初始化 ChaosParameters 类的新实例。

ChaosParameters(TimeSpan, Int64, Boolean, TimeSpan, Dictionary<String,String>)

初始化 ChaosParameters 类的新实例。

ChaosParameters(TimeSpan, Int64, Boolean, TimeSpan, Dictionary<String,String>, TimeSpan, TimeSpan)

初始化 ChaosParameters 类的新实例。

ChaosParameters(TimeSpan, Int64, Boolean, TimeSpan, Dictionary<String,String>, TimeSpan, TimeSpan, ClusterHealthPolicy)

初始化 ChaosParameters 类的新实例。

ChaosParameters()

初始化 ChaosParameters 类的新实例。

public ChaosParameters();
Public Sub New ()

适用于

ChaosParameters(Int64, Nullable<TimeSpan>)

初始化 ChaosParameters 类的新实例。

public ChaosParameters(long maxConcurrentFaults, TimeSpan? timeToRun = default);
new System.Fabric.Chaos.DataStructures.ChaosParameters : int64 * Nullable<TimeSpan> -> System.Fabric.Chaos.DataStructures.ChaosParameters
Public Sub New (maxConcurrentFaults As Long, Optional timeToRun As Nullable(Of TimeSpan) = Nothing)

参数

maxConcurrentFaults
Int64

每次迭代引发的最大并发故障数,最低为 1。 并发性越高,故障转移越主动,从而导致更复杂的一系列故障来发现 bug。 建议为此使用 2 或 3。

timeToRun
Nullable<TimeSpan>

混沌应运行的总时间:允许的最大值为 TimeSpan.FromSeconds (uint。MaxValue)

适用于

ChaosParameters(TimeSpan, Int64, Boolean, Nullable<TimeSpan>)

初始化 ChaosParameters 类的新实例。

public ChaosParameters(TimeSpan maxClusterStabilizationTimeout, long maxConcurrentFaults, bool enableMoveReplicaFaults, TimeSpan? timeToRun = default);
new System.Fabric.Chaos.DataStructures.ChaosParameters : TimeSpan * int64 * bool * Nullable<TimeSpan> -> System.Fabric.Chaos.DataStructures.ChaosParameters
Public Sub New (maxClusterStabilizationTimeout As TimeSpan, maxConcurrentFaults As Long, enableMoveReplicaFaults As Boolean, Optional timeToRun As Nullable(Of TimeSpan) = Nothing)

参数

maxClusterStabilizationTimeout
TimeSpan

故障迭代后等待整个群集稳定的最长时间;不能超过 TimeSpan.FromSeconds (uint。MaxValue)

maxConcurrentFaults
Int64

每次迭代引发的最大并发故障数,最低为 1。 并发性越高,故障转移越主动,从而导致更复杂的一系列故障来发现 bug。 建议为此使用 2 或 3。

enableMoveReplicaFaults
Boolean

启用或禁用 MovePrimary、MoveSecondary、MoveInstance 和 MoveAuxiliary 错误。

timeToRun
Nullable<TimeSpan>

混沌应运行的总时间:允许的最大值为 TimeSpan.FromSeconds (uint。MaxValue)

适用于

ChaosParameters(TimeSpan, Int64, Boolean, TimeSpan, Dictionary<String,String>)

初始化 ChaosParameters 类的新实例。

public ChaosParameters(TimeSpan maxClusterStabilizationTimeout, long maxConcurrentFaults, bool enableMoveReplicaFaults, TimeSpan timeToRun, System.Collections.Generic.Dictionary<string,string> context);
new System.Fabric.Chaos.DataStructures.ChaosParameters : TimeSpan * int64 * bool * TimeSpan * System.Collections.Generic.Dictionary<string, string> -> System.Fabric.Chaos.DataStructures.ChaosParameters
Public Sub New (maxClusterStabilizationTimeout As TimeSpan, maxConcurrentFaults As Long, enableMoveReplicaFaults As Boolean, timeToRun As TimeSpan, context As Dictionary(Of String, String))

参数

maxClusterStabilizationTimeout
TimeSpan

故障迭代后等待整个群集稳定的最长时间;不能超过 TimeSpan.FromSeconds (uint。MaxValue)

maxConcurrentFaults
Int64

每次迭代引发的最大并发故障数,最低为 1。 并发性越高,故障转移越主动,从而导致更复杂的一系列故障来发现 bug。 建议为此使用 2 或 3。

enableMoveReplicaFaults
Boolean

启用或禁用 MovePrimary、MoveSecondary、MoveInstance 和 MoveAuxiliary 错误。

timeToRun
TimeSpan

运行这么多时间后,混沌将停止:不能超过 TimeSpan.FromSeconds (uint。MaxValue)

context
Dictionary<String,String>

这是一包 (键、值) 对。 例如,这可用于记录有关为何启动混沌的详细上下文。

适用于

ChaosParameters(TimeSpan, Int64, Boolean, TimeSpan, Dictionary<String,String>, TimeSpan, TimeSpan)

初始化 ChaosParameters 类的新实例。

public ChaosParameters(TimeSpan maxClusterStabilizationTimeout, long maxConcurrentFaults, bool enableMoveReplicaFaults, TimeSpan timeToRun, System.Collections.Generic.Dictionary<string,string> context, TimeSpan waitTimeBetweenIterations, TimeSpan waitTimeBetweenFaults);
new System.Fabric.Chaos.DataStructures.ChaosParameters : TimeSpan * int64 * bool * TimeSpan * System.Collections.Generic.Dictionary<string, string> * TimeSpan * TimeSpan -> System.Fabric.Chaos.DataStructures.ChaosParameters
Public Sub New (maxClusterStabilizationTimeout As TimeSpan, maxConcurrentFaults As Long, enableMoveReplicaFaults As Boolean, timeToRun As TimeSpan, context As Dictionary(Of String, String), waitTimeBetweenIterations As TimeSpan, waitTimeBetweenFaults As TimeSpan)

参数

maxClusterStabilizationTimeout
TimeSpan

故障迭代后等待整个群集稳定的最长时间;不能超过 TimeSpan.FromSeconds (uint。MaxValue)

maxConcurrentFaults
Int64

每次迭代引发的最大并发故障数,最低为 1。 并发性越高,故障转移越主动,从而导致更复杂的一系列故障来发现 bug。 建议为此使用 2 或 3。

enableMoveReplicaFaults
Boolean

启用或禁用 MovePrimary、MoveSecondary、MoveInstance 和 MoveAuxiliary 错误。

timeToRun
TimeSpan

运行这么多时间后,混沌将停止:不能超过 TimeSpan.FromSeconds (uint。MaxValue)

context
Dictionary<String,String>

这是一包 (键、值) 对。 例如,这可用于记录有关为何启动混沌的详细上下文。

waitTimeBetweenIterations
TimeSpan

这是故障引入的两个连续迭代之间的暂停量。 暂停次数越多,故障率随时间推移越少:不能超过 TimeSpan.FromSeconds (uint。MaxValue)

waitTimeBetweenFaults
TimeSpan

这是单个迭代中两个连续故障之间的暂停量 -- 暂停次数越多,错误的并发性越少;不能超过 TimeSpan.FromSeconds (uint。MaxValue)

适用于

ChaosParameters(TimeSpan, Int64, Boolean, TimeSpan, Dictionary<String,String>, TimeSpan, TimeSpan, ClusterHealthPolicy)

初始化 ChaosParameters 类的新实例。

public ChaosParameters(TimeSpan maxClusterStabilizationTimeout, long maxConcurrentFaults, bool enableMoveReplicaFaults, TimeSpan timeToRun, System.Collections.Generic.Dictionary<string,string> context, TimeSpan waitTimeBetweenIterations, TimeSpan waitTimeBetweenFaults, System.Fabric.Health.ClusterHealthPolicy clusterHealthPolicy);
new System.Fabric.Chaos.DataStructures.ChaosParameters : TimeSpan * int64 * bool * TimeSpan * System.Collections.Generic.Dictionary<string, string> * TimeSpan * TimeSpan * System.Fabric.Health.ClusterHealthPolicy -> System.Fabric.Chaos.DataStructures.ChaosParameters
Public Sub New (maxClusterStabilizationTimeout As TimeSpan, maxConcurrentFaults As Long, enableMoveReplicaFaults As Boolean, timeToRun As TimeSpan, context As Dictionary(Of String, String), waitTimeBetweenIterations As TimeSpan, waitTimeBetweenFaults As TimeSpan, clusterHealthPolicy As ClusterHealthPolicy)

参数

maxClusterStabilizationTimeout
TimeSpan

故障迭代后等待整个群集稳定的最长时间;不能超过 TimeSpan.FromSeconds (uint。MaxValue)

maxConcurrentFaults
Int64

每次迭代引发的最大并发故障数,最低为 1。 并发性越高,故障转移越主动,从而导致更复杂的一系列故障来发现 bug。 建议为此使用 2 或 3。

enableMoveReplicaFaults
Boolean

启用或禁用 MovePrimary、MoveSecondary、MoveInstance 和 MoveAuxiliary 错误。

timeToRun
TimeSpan

运行这么多时间后,混沌将停止:不能超过 TimeSpan.FromSeconds (uint。MaxValue)

context
Dictionary<String,String>

这是一包 (键、值) 对。 例如,这可用于记录有关为何启动混沌的详细上下文。

waitTimeBetweenIterations
TimeSpan

这是故障引入的两个连续迭代之间的暂停量。 暂停次数越多,故障率随时间推移越少:不能超过 TimeSpan.FromSeconds (uint。MaxValue)

waitTimeBetweenFaults
TimeSpan

这是单个迭代中两个连续故障之间的暂停量 -- 暂停次数越多,错误的并发性越少;不能超过 TimeSpan.FromSeconds (uint。MaxValue)

clusterHealthPolicy
ClusterHealthPolicy

群集运行状况策略,用于确定群集的运行状况,以便混乱继续导致故障。

适用于