From ef86ae9694b7562c73fab09b61819cd909fff771 Mon Sep 17 00:00:00 2001 From: Kush Trivedi <44091822+kushthedude@users.noreply.github.com> Date: Fri, 23 Oct 2020 02:43:43 +0530 Subject: [PATCH] fix: qps issues in nighthawk load-test (#19) Signed-off-by: Kush Trivedi --- apinighthawk/nighthawk.go | 3 ++- cmd/main.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apinighthawk/nighthawk.go b/apinighthawk/nighthawk.go index 557b24d5..f857a0a4 100644 --- a/apinighthawk/nighthawk.go +++ b/apinighthawk/nighthawk.go @@ -53,7 +53,8 @@ func NighthawkRun(config *NighthawkConfig) ([]byte, error) { "envoyproxy/nighthawk-dev:latest", "nighthawk_client", "--rps "+qps, - "--concurrency "+c, + "--concurrency 1", + "--connections "+c, "--duration "+duration, rURL.String(), "--output-format experimental_fortio_pedantic").Output() diff --git a/cmd/main.go b/cmd/main.go index 26362cbb..4965ad64 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -21,9 +21,9 @@ func init() { func main() { // Duration in seconds nighthawk default format testConfig := &apinighthawk.NighthawkConfig{ - Thread: 1, + Thread: 2, DurationInSeconds: 5, - QPS: 1, + QPS: 2, URL: "https://www.github.com", }