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
b2eab6b3
Commit
b2eab6b3
authored
Mar 02, 2016
by
Marek Grabowski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22349 from kubernetes/revert-22269-faster_load_test
Revert "Speed up load test in smaller clusters"
parents
0919f147
e9d99bd8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
load.go
test/e2e/load.go
+7
-17
No files found.
test/e2e/load.go
View file @
b2eab6b3
...
@@ -126,24 +126,17 @@ var _ = Describe("Load capacity", func() {
...
@@ -126,24 +126,17 @@ var _ = Describe("Load capacity", func() {
// We would like to spread creating replication controllers over time
// We would like to spread creating replication controllers over time
// to make it possible to create/schedule them in the meantime.
// to make it possible to create/schedule them in the meantime.
// Currently we assume 10 pods/second average throughput.
// Currently we assume 5 pods/second average throughput.
creatingTime
:=
time
.
Duration
(
totalPods
/
10
)
*
time
.
Second
// We may want to revisit it in the future.
// TODO: Remove it after speeding up scheduler #22262.
creatingTime
:=
time
.
Duration
(
totalPods
/
5
)
*
time
.
Second
if
nodeCount
>
500
{
creatingTime
=
time
.
Duration
(
totalPods
/
5
)
*
time
.
Second
}
createAllRC
(
configs
,
creatingTime
)
createAllRC
(
configs
,
creatingTime
)
By
(
"============================================================================"
)
By
(
"============================================================================"
)
// 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
10
pods/second average throughput.
// Currently we assume that
5
pods/second average throughput.
// The expected number of created/deleted pods is less than totalPods/3.
// The expected number of created/deleted pods is less than totalPods/3.
scalingTime
:=
time
.
Duration
(
totalPods
/
30
)
*
time
.
Second
scalingTime
:=
time
.
Duration
(
totalPods
/
15
)
*
time
.
Second
// TODO: Remove it after speeding up scheduler #22262.
if
nodeCount
>
500
{
scalingTime
=
time
.
Duration
(
totalPods
/
15
)
*
time
.
Second
}
scaleAllRC
(
configs
,
scalingTime
)
scaleAllRC
(
configs
,
scalingTime
)
By
(
"============================================================================"
)
By
(
"============================================================================"
)
...
@@ -152,11 +145,8 @@ var _ = Describe("Load capacity", func() {
...
@@ -152,11 +145,8 @@ var _ = Describe("Load capacity", func() {
// Cleanup all created replication controllers.
// Cleanup all created replication controllers.
// Currently we assume 5 pods/second average deletion throughput.
// Currently we assume 5 pods/second average deletion throughput.
deletingTime
:=
time
.
Duration
(
totalPods
/
10
)
*
time
.
Second
// We may want to revisit it in the future.
// TODO: Remove it after speeding up scheduler #22262.
deletingTime
:=
time
.
Duration
(
totalPods
/
5
)
*
time
.
Second
if
nodeCount
>
500
{
deletingTime
=
time
.
Duration
(
totalPods
/
5
)
*
time
.
Second
}
deleteAllRC
(
configs
,
deletingTime
)
deleteAllRC
(
configs
,
deletingTime
)
})
})
}
}
...
...
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