Skip to content

Commit

Permalink
fix: qps issues in nighthawk load-test (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Trivedi <[email protected]>
  • Loading branch information
kushthedude authored Oct 22, 2020
1 parent 5fc0b7e commit ef86ae9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apinighthawk/nighthawk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}

Expand Down

0 comments on commit ef86ae9

Please sign in to comment.