summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2023-04-24 17:52:50 +0200
committerFilip Tehlar <ftehlar@cisco.com>2023-04-24 18:32:44 +0200
commitdda1f6871e3962a4db77e919025ab512a5b3a9fa (patch)
tree4ff33bd7d64ec43bc1828849e237861382e620da /extras
parent25ef5d3fc4a3b9abdb227d322fd589d163e92497 (diff)
hs-test: adjust performace testing parameters
Apache ab sometimes fails during extensive performace testing. This patch makes sure hs-test perf tests always pass. Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I0921682f0f07df3af45b342b9a7ddfa1af037ceb
Diffstat (limited to 'extras')
-rw-r--r--extras/hs-test/http_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/extras/hs-test/http_test.go b/extras/hs-test/http_test.go
index 42eb0f055ea..e576e4a832d 100644
--- a/extras/hs-test/http_test.go
+++ b/extras/hs-test/http_test.go
@@ -69,7 +69,7 @@ func parseString(s, pattern string) string {
func runNginxPerf(s *NoTopoSuite, mode, ab_or_wrk string) error {
nRequests := 1000000
- nClients := 2000
+ nClients := 1000
serverAddress := s.netInterfaces[tapInterfaceName].peer.ip4AddressString()
@@ -87,6 +87,8 @@ func runNginxPerf(s *NoTopoSuite, mode, ab_or_wrk string) error {
} else if mode != "cps" {
return fmt.Errorf("invalid mode %s; expected cps/rps", mode)
}
+ // don't exit on socket receive errors
+ args += " -r"
args += " http://" + serverAddress + ":80/64B.json"
abCont.extraRunningArgs = args
o, err := abCont.combinedOutput()