Skip to content

Refactor observed-concurrency test. - #2667

Merged
knative-prow-robot merged 7 commits into
knative:masterfrom
markusthoemmes:refactor-observed
Dec 14, 2018
Merged

knative-prow-robot merged 7 commits into
knative:masterfrom
markusthoemmes:refactor-observed

Conversation

@markusthoemmes

Copy link
Copy Markdown
Contributor

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

@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 7, 2018

@knative-prow-robot knative-prow-robot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

@markusthoemmes

Copy link
Copy Markdown
Contributor Author

/assign @srinivashegde86

@adrcunha
adrcunha requested review from srinivashegde86 and removed request for steuhs December 7, 2018 16:07
Comment thread test/crd.go Resolved

const (
tName = "TestObservedConcurrency"
perfLatency = "perf_latency"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this string is used by testgrid to show the values on the dashboard. Can we keep it perf_latency?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as it does not imply "end-user latency" as in: time to send the request until it gets back, then yes!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment would clarify what this means and where it is used.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, does it make sense to make it part of performance.go if it's related to the testgrid dashboard?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alculquicondor I'm fairly certain (read through the source code). Only the length of the responses will be reported.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah. I did not find a way to parse the response object either. Maybe this is something we can check with the team.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree we can address that upstream. I feel like if that shouldn't block this PR though, what's your take on that?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. we can discuss this offline. not blocking the PR on that.

@markusthoemmes

Copy link
Copy Markdown
Contributor Author

/test pull-knative-serving-build-tests

@knative-prow-robot

Copy link
Copy Markdown
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 14, 2018
@srinivashegde86

Copy link
Copy Markdown
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 14, 2018
@knative-prow-robot
knative-prow-robot merged commit b8da6c2 into knative:master Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants