Browse Source

Merge pull request #4643 from gyuho/stress

functional-tester: less intensive stresser
Gyu-Ho Lee 9 years ago
parent
commit
e93e41cd9a
1 changed files with 5 additions and 2 deletions
  1. 5 2
      tools/functional-tester/etcd-tester/cluster.go

+ 5 - 2
tools/functional-tester/etcd-tester/cluster.go

@@ -129,6 +129,9 @@ func (c *cluster) Bootstrap() error {
 		}
 		}
 	}
 	}
 
 
+	// TODO: Too intensive stressers can panic etcd member with
+	// 'out of memory' error. Put rate limits in server side.
+	stressN := 100
 	var stressers []Stresser
 	var stressers []Stresser
 	if c.v2Only {
 	if c.v2Only {
 		for _, u := range clientURLs {
 		for _, u := range clientURLs {
@@ -136,7 +139,7 @@ func (c *cluster) Bootstrap() error {
 				Endpoint:       u,
 				Endpoint:       u,
 				KeySize:        c.stressKeySize,
 				KeySize:        c.stressKeySize,
 				KeySuffixRange: c.stressKeySuffixRange,
 				KeySuffixRange: c.stressKeySuffixRange,
-				N:              200,
+				N:              stressN,
 			}
 			}
 			go s.Stress()
 			go s.Stress()
 			stressers = append(stressers, s)
 			stressers = append(stressers, s)
@@ -147,7 +150,7 @@ func (c *cluster) Bootstrap() error {
 				Endpoint:       u,
 				Endpoint:       u,
 				KeySize:        c.stressKeySize,
 				KeySize:        c.stressKeySize,
 				KeySuffixRange: c.stressKeySuffixRange,
 				KeySuffixRange: c.stressKeySuffixRange,
-				N:              200,
+				N:              stressN,
 			}
 			}
 			go s.Stress()
 			go s.Stress()
 			stressers = append(stressers, s)
 			stressers = append(stressers, s)