Skip to content

Add scale from zero performance test - #2323

Merged
knative-prow-robot merged 1 commit into
knative:masterfrom
greghaynes:feature/perf-scale-from-zero
Jan 22, 2019
Merged

knative-prow-robot merged 1 commit into
knative:masterfrom
greghaynes:feature/perf-scale-from-zero

Conversation

@greghaynes

@greghaynes greghaynes commented Oct 25, 2018 •

Copy link
Copy Markdown
Contributor

Create series of tests which record our scale from zero time by
measuring duration of a single request after a revision has scaled to
zero. Also record these values as we scale up the number of revisions.

Related to #2495

Release Note

NONE

@knative-prow-robot knative-prow-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 25, 2018
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 25, 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.

@greghaynes: 0 warnings.

Details

In response to this:

Create series of tests which record our scale from zero time by
measuring duration of a single request after a revision has scaled to
zero. Also record these values as we scale up the number of revisions.

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.

@greghaynes
greghaynes force-pushed the feature/perf-scale-from-zero branch from f65ca5a to a0d0d00 Compare October 25, 2018 22:36

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

Great PR Greg, would be pretty useful for the performance debugging.
I know its a WIP, but I think it would be easier to comment here rather then via PM.
(still lacking the test framework knowledge, please bear with the comments)

@greghaynes greghaynes left a comment

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.

Thanks for the reviews!

@greghaynes
greghaynes force-pushed the feature/perf-scale-from-zero branch from a0d0d00 to b1907b0 Compare October 29, 2018 20:59
@greghaynes greghaynes changed the title [WIP] Add scale from zero performance test Add scale from zero performance test Oct 29, 2018
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 29, 2018
@greghaynes
greghaynes force-pushed the feature/perf-scale-from-zero branch from b1907b0 to 69ce09d Compare October 30, 2018 01:11
@knative-prow-robot knative-prow-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 30, 2018
@greghaynes

Copy link
Copy Markdown
Contributor Author

/hold

This is built on top of #2320 which needs to merge first

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 30, 2018
@greghaynes
greghaynes force-pushed the feature/perf-scale-from-zero branch 2 times, most recently from 2629677 to ee7e7e6 Compare October 30, 2018 18:35
Comment thread test/performance/crd.go Outdated
Domain string
}

func CreateRouteAndConfig(clients *test.Clients, logger *logging.BaseLogger, imagePath string, options *test.Options) (test.ResourceNames, 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.

why can't we share the code with e2e tests? this is duplicated code.

Comment thread test/cluster.sh Outdated
-f config/monitoring/tracing/zipkin
}

function create_namespace() {

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.

can we pass in the actual name as parameter? so that other tests can use it but with their choice of namespace name.

Comment thread test/performance/performance.go Outdated
}

// GetServiceEndpoint gets the endpoint IP or hostname to use for the service
func GetServiceEndpoint(client *test.Clients) (*string, error) {

@jessiezcc jessiezcc Nov 21, 2018 •

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 function seems more general purposed than perf tests, a good candidate to be a common function. Similar to a few other functions in the file.

@srinivashegde86

Copy link
Copy Markdown
Contributor

it seems that you have a lot of conflicts and there are some changes in the repo that are showing as changes here. Can you please clean up this PR and then I can take a look at this.

Thanks.

@greghaynes
greghaynes force-pushed the feature/perf-scale-from-zero branch from ee7e7e6 to 4ff0f6c Compare November 29, 2018 23:54
@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 29, 2018
@greghaynes

Copy link
Copy Markdown
Contributor Author

/hold cancel

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 4, 2018
@greghaynes
greghaynes force-pushed the feature/perf-scale-from-zero branch from 4ff0f6c to ca8c5a9 Compare December 10, 2018 23:21

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

Left a few comments throughout. I think this can make a greater use of common functionality to simplify things and make the test's coder shorter overall. WDYT?

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

A few last nits, thanks for reworking the test!

@greghaynes
greghaynes force-pushed the feature/perf-scale-from-zero branch 2 times, most recently from 76739b7 to 9ebad66 Compare January 14, 2019 22:31

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

some nits

@greghaynes
greghaynes force-pushed the feature/perf-scale-from-zero branch 2 times, most recently from 1524bef to 2ce25f9 Compare January 15, 2019 18:54

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

/lgtm
single small suggestion.

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 15, 2019
@greghaynes

Copy link
Copy Markdown
Contributor Author

/test pull-knative-serving-integration-tests

Has to be a flake - didnt touch this code

@greghaynes
greghaynes force-pushed the feature/perf-scale-from-zero branch from 2ce25f9 to 47d43f2 Compare January 17, 2019 18:12
@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Jan 17, 2019
@greghaynes

Copy link
Copy Markdown
Contributor Author

/test pull-knative-serving-integration-tests

Comment thread test/crd_checks.go Resolved
@greghaynes
greghaynes force-pushed the feature/perf-scale-from-zero branch from 47d43f2 to 4577d8f Compare January 22, 2019 22:03
@srinivashegde86

Copy link
Copy Markdown
Contributor

small nit.

Create series of tests which record our scale from zero time by
measuring duration of a single request after a revision has scaled to
zero. Also record these values as we scale up the number of revisions.
@greghaynes
greghaynes force-pushed the feature/perf-scale-from-zero branch from 4577d8f to 0b520f1 Compare January 22, 2019 22:27
@srinivashegde86 srinivashegde86 added this to the Ice Box milestone Jan 22, 2019
@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 22, 2019
@srinivashegde86

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 22, 2019
@knative-prow-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: greghaynes, srinivashegde86, vagababov

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 merged commit a3106c0 into knative:master Jan 22, 2019
@dprotaso dprotaso removed this from the Ice Box milestone Oct 6, 2021
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.

8 participants