mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
functional-tester: less intensive stresser
This commit is contained in:
parent
b83b5307d1
commit
b3f0bcbeb4
@ -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
|
||||
if c.v2Only {
|
||||
for _, u := range clientURLs {
|
||||
@ -136,7 +139,7 @@ func (c *cluster) Bootstrap() error {
|
||||
Endpoint: u,
|
||||
KeySize: c.stressKeySize,
|
||||
KeySuffixRange: c.stressKeySuffixRange,
|
||||
N: 200,
|
||||
N: stressN,
|
||||
}
|
||||
go s.Stress()
|
||||
stressers = append(stressers, s)
|
||||
@ -147,7 +150,7 @@ func (c *cluster) Bootstrap() error {
|
||||
Endpoint: u,
|
||||
KeySize: c.stressKeySize,
|
||||
KeySuffixRange: c.stressKeySuffixRange,
|
||||
N: 200,
|
||||
N: stressN,
|
||||
}
|
||||
go s.Stress()
|
||||
stressers = append(stressers, s)
|
||||
|
Loading…
x
Reference in New Issue
Block a user