mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
robustness: Separate compaction and LazyFS test scenario for cluster size 1.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
This commit is contained in:
parent
45f14539e0
commit
aaa6e9ef8c
@ -106,8 +106,17 @@ func exploratoryScenarios(_ *testing.T) []testScenario {
|
||||
clusterOfSize1Options = append(clusterOfSize1Options, e2e.WithClusterSize(1))
|
||||
// Add LazyFS only for traffic with lower QPS as it uses a lot of CPU lowering minimal QPS.
|
||||
if enableLazyFS && tp.Profile.MinimalQPS <= 100 {
|
||||
clusterOfSize1Options = append(clusterOfSize1Options, e2e.WithLazyFSEnabled(true))
|
||||
name = filepath.Join(name, "LazyFS")
|
||||
// Set CompactionBatchLimit to default when LazyFS is enabled, because frequent compaction uses a lot of CPU too.
|
||||
lazyFSOptions := append(clusterOfSize1Options, e2e.WithLazyFSEnabled(true), e2e.WithCompactionBatchLimit(1000))
|
||||
scenarios = append(scenarios, testScenario{
|
||||
name: filepath.Join(name, "LazyFS"),
|
||||
traffic: tp.Traffic,
|
||||
profile: tp.Profile,
|
||||
cluster: *e2e.NewConfig(lazyFSOptions...),
|
||||
})
|
||||
// Smaller CompactionBatchLimit without LazyFS to test Compact.
|
||||
clusterOfSize1Options = append(clusterOfSize1Options, options.WithCompactionBatchLimit(10, 100))
|
||||
name = filepath.Join(name, "Compact")
|
||||
}
|
||||
scenarios = append(scenarios, testScenario{
|
||||
name: name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user