Skip to content

Commit

Permalink
Reduce number of concurrent clients to 8 and compactions to avoid flakes
Browse files Browse the repository at this point in the history
Not hitting minimal QPS is expected to be caused by introduction of
compation. Let's avoid it for high throughput test cases.

Reducing number of clients to avoid linearization timeouts.

Signed-off-by: Marek Siarkowicz <[email protected]>
  • Loading branch information
serathius committed Aug 15, 2024
1 parent a8b30b1 commit f194f47
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions tests/robustness/traffic/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ var (
keyCount: 10,
leaseTTL: DefaultLeaseTTL,
largePutSize: 32769,
// Please keep the sum of weights equal 100.
requests: []random.ChoiceWeight[etcdRequestType]{
{Choice: Get, Weight: 15},
{Choice: List, Weight: 15},
Expand All @@ -44,24 +45,24 @@ var (
{Choice: PutWithLease, Weight: 5},
{Choice: LeaseRevoke, Weight: 5},
{Choice: CompareAndSet, Weight: 5},
{Choice: Put, Weight: 15},
{Choice: Put, Weight: 18},
{Choice: LargePut, Weight: 5},
{Choice: Compact, Weight: 5},
{Choice: Compact, Weight: 2},
},
}
EtcdPut Traffic = etcdTraffic{
keyCount: 10,
largePutSize: 32769,
leaseTTL: DefaultLeaseTTL,
// Please keep the sum of weights equal 100.
requests: []random.ChoiceWeight[etcdRequestType]{
{Choice: Get, Weight: 15},
{Choice: List, Weight: 15},
{Choice: StaleGet, Weight: 10},
{Choice: StaleList, Weight: 10},
{Choice: MultiOpTxn, Weight: 5},
{Choice: LargePut, Weight: 5},
{Choice: Put, Weight: 35},
{Choice: Compact, Weight: 5},
{Choice: Put, Weight: 40},
},
}
)
Expand Down
9 changes: 5 additions & 4 deletions tests/robustness/traffic/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ var (
averageKeyCount: 10,
resource: "pods",
namespace: "default",
// Please keep the sum of weights equal 1000.
writeChoices: []random.ChoiceWeight[KubernetesRequestType]{
{Choice: KubernetesUpdate, Weight: 85},
{Choice: KubernetesDelete, Weight: 5},
{Choice: KubernetesCreate, Weight: 5},
{Choice: KubernetesCompact, Weight: 5},
{Choice: KubernetesUpdate, Weight: 875},
{Choice: KubernetesDelete, Weight: 50},
{Choice: KubernetesCreate, Weight: 50},
{Choice: KubernetesCompact, Weight: 25},
},
}
)
Expand Down
2 changes: 1 addition & 1 deletion tests/robustness/traffic/traffic.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var (
HighTrafficProfile = Profile{
MinimalQPS: 200,
MaximalQPS: 1000,
ClientCount: 10,
ClientCount: 8,
MaxNonUniqueRequestConcurrency: 3,
}
)
Expand Down

0 comments on commit f194f47

Please sign in to comment.