Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
7250a562
Commit
7250a562
authored
Jul 31, 2018
by
Shyam Jeedigunta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix expected pod creations/deletions estimate in load test
parent
05acb32a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
load.go
test/e2e/scalability/load.go
+9
-2
No files found.
test/e2e/scalability/load.go
View file @
7250a562
...
@@ -320,12 +320,19 @@ var _ = SIGDescribe("Load capacity", func() {
...
@@ -320,12 +320,19 @@ var _ = SIGDescribe("Load capacity", func() {
// We would like to spread scaling replication controllers over time
// We would like to spread scaling replication controllers over time
// to make it possible to create/schedule & delete them in the meantime.
// to make it possible to create/schedule & delete them in the meantime.
// Currently we assume that <throughput> pods/second average throughput.
// Currently we assume that <throughput> pods/second average throughput.
// The expected number of created/deleted pods is less than totalPods/3.
scalingTime
:=
time
.
Duration
(
totalPods
/
(
3
*
throughput
))
*
time
.
Second
// The expected number of created/deleted pods is totalPods/4 when scaling
// for the first time, with each RC changing its size from X to a uniform
// random value in the interval [X/2, 3X/2].
scalingTime
:=
time
.
Duration
(
totalPods
/
(
4
*
throughput
))
*
time
.
Second
framework
.
Logf
(
"Starting to scale %v objects first time..."
,
itArg
.
kind
)
framework
.
Logf
(
"Starting to scale %v objects first time..."
,
itArg
.
kind
)
scaleAllResources
(
configs
,
scalingTime
,
testPhaseDurations
.
StartPhase
(
300
,
"scaling first time"
))
scaleAllResources
(
configs
,
scalingTime
,
testPhaseDurations
.
StartPhase
(
300
,
"scaling first time"
))
By
(
"============================================================================"
)
By
(
"============================================================================"
)
// The expected number of created/deleted pods is totalPods/3 when scaling for
// the second time, with each RC changing its size from a uniform random value
// in the interval [X/2, 3X/2] to another uniform random value in same interval.
scalingTime
=
time
.
Duration
(
totalPods
/
(
3
*
throughput
))
*
time
.
Second
framework
.
Logf
(
"Starting to scale %v objects second time..."
,
itArg
.
kind
)
framework
.
Logf
(
"Starting to scale %v objects second time..."
,
itArg
.
kind
)
scaleAllResources
(
configs
,
scalingTime
,
testPhaseDurations
.
StartPhase
(
400
,
"scaling second time"
))
scaleAllResources
(
configs
,
scalingTime
,
testPhaseDurations
.
StartPhase
(
400
,
"scaling second time"
))
By
(
"============================================================================"
)
By
(
"============================================================================"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment