-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[V2] test: adding flag for replicas to run scale tests #1417
[V2] test: adding flag for replicas to run scale tests #1417
Conversation
Hi @chloeegong. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
pkg/azuredisk/azuredisk_v2.go
Outdated
@@ -89,6 +92,25 @@ const ( | |||
azDriverNodeHealthy azDriverNodeStatus = "Driver node healthy." | |||
) | |||
|
|||
// LatencyAdapter implements LatencyMetric. | |||
type LatencyAdapter struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are part of #1410 so you should probably leave these changes our in this PR.
@@ -46,6 +46,7 @@ const ( | |||
FsTypeField = "fstype" | |||
IncrementalField = "incremental" | |||
KindField = "kind" | |||
LatencyKey = "rate_limiter_throttling_request_latency_seconds" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as previous comment.
0a002ef
to
dd40b9c
Compare
test/scale/azdisk_scale_test.go
Outdated
@@ -46,6 +46,8 @@ func scaleTests(isMultiZone bool) { | |||
schedulerName = testutil.GetSchedulerForE2E() | |||
) | |||
|
|||
// handleFlags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the comment.
test/scale/flags.go
Outdated
@@ -26,6 +26,7 @@ import ( | |||
var ( | |||
skipClusterBootstrap = flag.Bool("skip-cluster-bootstrap", false, "flag to indicate that we can skip cluster bootstrap.") | |||
scaleTestTimeout = flag.Int("scale-test-timeout", 40, "flag to indicate the scale in and scale out test timeouts in minutes.") | |||
testerReplica = flag.Int("tester-replica", 2, "flag to indicate the number of replicas for the scale tests.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default value should be 1000.
test/scale/flags.go
Outdated
@@ -26,6 +26,7 @@ import ( | |||
var ( | |||
skipClusterBootstrap = flag.Bool("skip-cluster-bootstrap", false, "flag to indicate that we can skip cluster bootstrap.") | |||
scaleTestTimeout = flag.Int("scale-test-timeout", 40, "flag to indicate the scale in and scale out test timeouts in minutes.") | |||
testerReplica = flag.Int("tester-replica", 2, "flag to indicate the number of replicas for the scale tests.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
np: rename testerReplica
to replicas
or replica-count
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I meant to say that we need to rename the command line flag name, so tester-replica
to replicas
or replica-count
instead of testerReplica
43ccfd9
to
9c9e709
Compare
changing replica value renaming replicas flag name remove comments
9c9e709
to
1fda16a
Compare
/ok-to-test |
/retest |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chloeegong, edreed The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind test
What this PR does / why we need it:
creating a flag to indicate the number of replicas to run scale tests
Which issue(s) this PR fixes:
Fixes #
Requirements:
Special notes for your reviewer:
Release note:
none