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
2f7f6dee
Commit
2f7f6dee
authored
Aug 23, 2018
by
Shyam Jeedigunta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-calibrate load test throughputs
parent
0e31372b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
load.go
test/e2e/scalability/load.go
+5
-4
No files found.
test/e2e/scalability/load.go
View file @
2f7f6dee
...
@@ -121,10 +121,10 @@ var _ = SIGDescribe("Load capacity", func() {
...
@@ -121,10 +121,10 @@ var _ = SIGDescribe("Load capacity", func() {
}
}
})
})
// We assume a default throughput of
1
0 pods/second throughput.
// We assume a default throughput of
2
0 pods/second throughput.
// We may want to revisit it in the future.
// We may want to revisit it in the future.
// However, this can be overridden by LOAD_TEST_THROUGHPUT env var.
// However, this can be overridden by LOAD_TEST_THROUGHPUT env var.
throughput
:=
1
0
throughput
:=
2
0
if
throughputEnv
:=
os
.
Getenv
(
"LOAD_TEST_THROUGHPUT"
);
throughputEnv
!=
""
{
if
throughputEnv
:=
os
.
Getenv
(
"LOAD_TEST_THROUGHPUT"
);
throughputEnv
!=
""
{
if
newThroughput
,
err
:=
strconv
.
Atoi
(
throughputEnv
);
err
==
nil
{
if
newThroughput
,
err
:=
strconv
.
Atoi
(
throughputEnv
);
err
==
nil
{
throughput
=
newThroughput
throughput
=
newThroughput
...
@@ -338,9 +338,10 @@ var _ = SIGDescribe("Load capacity", func() {
...
@@ -338,9 +338,10 @@ var _ = SIGDescribe("Load capacity", func() {
By
(
"============================================================================"
)
By
(
"============================================================================"
)
// Cleanup all created replication controllers.
// Cleanup all created replication controllers.
// Currently we assume <throughput> pods/second average deletion throughput.
// Currently we assume <throughput/2> pods/second average deletion throughput,
// as GC is rate-limited and needs to make 2 calls per pod deletion.
// We may want to revisit it in the future.
// We may want to revisit it in the future.
deletingTime
:=
time
.
Duration
(
totalPods
/
throughput
)
*
time
.
Second
deletingTime
:=
time
.
Duration
(
totalPods
/
(
throughput
/
2
)
)
*
time
.
Second
framework
.
Logf
(
"Starting to delete %v objects..."
,
itArg
.
kind
)
framework
.
Logf
(
"Starting to delete %v objects..."
,
itArg
.
kind
)
deleteAllResources
(
configs
,
deletingTime
,
testPhaseDurations
.
StartPhase
(
500
,
"load pods deletion"
))
deleteAllResources
(
configs
,
deletingTime
,
testPhaseDurations
.
StartPhase
(
500
,
"load pods deletion"
))
})
})
...
...
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