Share via


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

ChaosTestScenarioParameters(TimeSpan, Int64, Boolean, TimeSpan) 构造函数

定义

初始化 ChaosTestScenarioParameters 类的新实例。

public ChaosTestScenarioParameters (TimeSpan maxClusterStabilizationTimeout, long maxConcurrentFaults, bool enableMoveReplicaFaults, TimeSpan timeToRun);
new System.Fabric.Testability.Scenario.ChaosTestScenarioParameters : TimeSpan * int64 * bool * TimeSpan -> System.Fabric.Testability.Scenario.ChaosTestScenarioParameters
Public Sub New (maxClusterStabilizationTimeout As TimeSpan, maxConcurrentFaults As Long, enableMoveReplicaFaults As Boolean, timeToRun As TimeSpan)

参数

maxClusterStabilizationTimeout
TimeSpan

在测试失败之前,在故障迭代后等待整个群集稳定下来的最长时间。

maxConcurrentFaults
Int64

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

enableMoveReplicaFaults
Boolean

启用或禁用 MovePrimary 和 MoveSecondary 错误。

timeToRun
TimeSpan

适用于