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.

Reducint number of clients to avoid linearization timeouts.

Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
  • Loading branch information
serathius committed Aug 14, 2024
1 parent a8b30b1 commit 86a49d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 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 @@ -53,15 +54,15 @@ var (
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 86a49d9

Please sign in to comment.