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
41e8f10d
Commit
41e8f10d
authored
Sep 05, 2016
by
gmarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add few more logs to the Load test
parent
2cc5923e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
load.go
test/e2e/load.go
+7
-1
No files found.
test/e2e/load.go
View file @
41e8f10d
...
...
@@ -149,6 +149,7 @@ var _ = framework.KubeDescribe("Load capacity", func() {
_
,
err
:=
c
.
Services
(
service
.
Namespace
)
.
Create
(
service
)
framework
.
ExpectNoError
(
err
)
}
framework
.
Logf
(
"%v Services created."
,
len
(
services
))
}
else
{
framework
.
Logf
(
"Skipping service creation"
)
}
...
...
@@ -168,6 +169,7 @@ var _ = framework.KubeDescribe("Load capacity", func() {
// to make it possible to create/schedule them in the meantime.
// Currently we assume <throughput> pods/second average throughput.
// We may want to revisit it in the future.
framework
.
Logf
(
"Starting to create ReplicationControllers..."
)
creatingTime
:=
time
.
Duration
(
totalPods
/
throughput
)
*
time
.
Second
createAllRC
(
configs
,
creatingTime
)
By
(
"============================================================================"
)
...
...
@@ -177,9 +179,11 @@ var _ = framework.KubeDescribe("Load capacity", func() {
// 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
framework
.
Logf
(
"Starting to scale ReplicationControllers first time..."
)
scaleAllRC
(
configs
,
scalingTime
)
By
(
"============================================================================"
)
framework
.
Logf
(
"Starting to scale ReplicationControllers second time..."
)
scaleAllRC
(
configs
,
scalingTime
)
By
(
"============================================================================"
)
...
...
@@ -187,13 +191,15 @@ var _ = framework.KubeDescribe("Load capacity", func() {
// Currently we assume <throughput> pods/second average deletion throughput.
// We may want to revisit it in the future.
deletingTime
:=
time
.
Duration
(
totalPods
/
throughput
)
*
time
.
Second
framework
.
Logf
(
"Starting to delete ReplicationControllers..."
)
deleteAllRC
(
configs
,
deletingTime
)
if
createServices
==
"true"
{
framework
.
Logf
(
"Starting to delete services..."
)
for
_
,
service
:=
range
services
{
err
:=
c
.
Services
(
ns
)
.
Delete
(
service
.
Name
)
framework
.
ExpectNoError
(
err
)
}
framework
.
Logf
(
"
%v Services created."
,
len
(
services
)
)
framework
.
Logf
(
"
Services deleted"
)
}
})
}
...
...
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