Browse Source

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>
Gyuho Lee 8 years ago
parent
commit
7783aada6a
1 changed files with 2 additions and 3 deletions
  1. 2 3
      tools/functional-tester/etcd-tester/key_stresser.go

+ 2 - 3
tools/functional-tester/etcd-tester/key_stresser.go

@@ -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),
 		})
 	}