mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcd-tester: update stresser weights with txn stresser
Large key writes (stressEntries[1].weight) should not take this much weight. It was triggering "database size exceeded" errors. Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
c5532ebbf6
commit
7783aada6a
@ -81,10 +81,9 @@ func (s *keyStresser) Stress() error {
|
||||
}
|
||||
if s.keyTxnSuffixRange > 0 {
|
||||
// adjust to make up ±70% of workloads with writes
|
||||
stressEntries[0].weight = 0.24
|
||||
stressEntries[1].weight = 0.24
|
||||
stressEntries[0].weight = 0.35
|
||||
stressEntries = append(stressEntries, stressEntry{
|
||||
weight: 0.24,
|
||||
weight: 0.35,
|
||||
f: newStressTxn(kvc, s.keyTxnSuffixRange, s.keyTxnOps),
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user