Skip to content

Commit

Permalink
Merge pull request etcd-io#18179 from siyuanfoundation/lazyfs
Browse files Browse the repository at this point in the history
robustness: Separate compaction and LazyFS test scenario for cluster size 1
  • Loading branch information
serathius authored Jun 15, 2024
2 parents f01f23d + aaa6e9e commit 15f9a59
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/robustness/scenarios.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 15f9a59

Please sign in to comment.