Repository navigation
Refactor observed-concurrency test. - #2667
Conversation
knative-prow-robot
left a comment
There was a problem hiding this comment.
@markusthoemmes: 0 warnings.
Details
In response to this:
The observed-concurrency test has been redone in Golang and since no longer emits the metrics that it should. See #1126 (comment) for a detailed description of how it is supposed to work.
Proposed Changes
- Calculate concurrency metrics based on the timestamps returned by the application.
- Consolidate Configartion CRD in our tests to pass through options.
- Set container concurrency for the performance test to actually see it scale (it used to stay at a scale of 1)
Release Note
NONE
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
|
/assign @srinivashegde86 |
|
|
||
| const ( | ||
| tName = "TestObservedConcurrency" | ||
| perfLatency = "perf_latency" |
There was a problem hiding this comment.
this string is used by testgrid to show the values on the dashboard. Can we keep it perf_latency?
There was a problem hiding this comment.
As long as it does not imply "end-user latency" as in: time to send the request until it gets back, then yes!
There was a problem hiding this comment.
A comment would clarify what this means and where it is used.
There was a problem hiding this comment.
Also, does it make sense to make it part of performance.go if it's related to the testgrid dashboard?
There was a problem hiding this comment.
yes. should be moved to performance.go. I can do it once this PR merges
| return true, nil | ||
| // generateTraffic loads the given endpoint with the given concurrency for the given duration. | ||
| // All responses are forwarded to a channel, if given. | ||
| func generateTraffic(client *spoof.SpoofingClient, url string, concurrency int, duration time.Duration, resChannel chan *spoof.Response) (int32, error) { |
There was a problem hiding this comment.
do you think we need a common non-fortio way of sending load for more than this test? Maybe this method should be in performance.go?
There was a problem hiding this comment.
In fact, this method is written in a very generalized way, yes. I kinda wanted to keep it separate until a proper need arises to not confuse people to chose between either.
If you feel strongly about it, I can move it immediately though.
There was a problem hiding this comment.
I understand that the main difference with our fortio wrapper is the ability to process the responses. Are we sure there's no way to expose that in fortio?
There was a problem hiding this comment.
@alculquicondor I'm fairly certain (read through the source code). Only the length of the responses will be reported.
There was a problem hiding this comment.
yeah. I did not find a way to parse the response object either. Maybe this is something we can check with the team.
There was a problem hiding this comment.
I agree we can address that upstream. I feel like if that shouldn't block this PR though, what's your take on that?
There was a problem hiding this comment.
yes. we can discuss this offline. not blocking the PR on that.
25a973f to
6aeb095
Compare
|
/test pull-knative-serving-build-tests |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: markusthoemmes, srinivashegde86 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
The observed-concurrency test has been redone in Golang and since no longer emits the metrics that it should. See #1126 (comment) for a detailed description of how it is supposed to work.
Proposed Changes
Release Note