serving icon indicating copy to clipboard operation
serving copied to clipboard

Running the perf test for observed concurrency throws a panic

Open srinivashegde86 opened this issue 8 years ago • 5 comments

/area test-and-release /kind bug

wrk -t 1 -c 5 -d 60s -s reporter.lua --latency -H "Host: observed-concurrency.default.example.com" "http://35.196.136.123/?timeout=1000" Running 1m test @ http://35.196.136.123/?timeout=1000 1 threads and 5 connections PANIC: unprotected error in call to Lua API (reporter.lua:25: attempt to perform arithmetic on local 'n' (a nil value))

srinivashegde86 avatar Sep 12 '18 18:09 srinivashegde86

/assign @markusthoemmes /cc @josephburnett

srinivashegde86 avatar Sep 12 '18 18:09 srinivashegde86

curl does work, but when running wrk it panics

curl -H "Host: observed-concurrency.default.example.com" "http://35.196.136.123" 1536778439789735970,1536778439789736325

srinivashegde86 avatar Sep 12 '18 18:09 srinivashegde86

Meh. Sorry for the hazzle with the wrk script. I'll have a look!

On another note: I think at this point it might make sense to exchange the wrk "script" with @josephburnett's go load test driver like the one here: https://github.com/knative/docs/blob/master/serving/samples/autoscale-go/test/test.go

I'll try to fix the wrk thing anyway to unblock your work.

markusthoemmes avatar Sep 12 '18 20:09 markusthoemmes

@srinivashegde86 got around to take a look. Unfortunately we need to set an environment variable with the specified concurrency (mentioned in PR #2023).

That should unblock the work here. As mentioned above, we should move to a go based loaddriver to make this easier to work with. We can do that midterm though I guess?

markusthoemmes avatar Sep 14 '18 09:09 markusthoemmes

That would be great to have. Created https://github.com/knative/serving/issues/2040

srinivashegde86 avatar Sep 17 '18 19:09 srinivashegde86