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
d7f242b8
Commit
d7f242b8
authored
Jun 02, 2015
by
Filip Grzadkowski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8873 from piosz/load_generator
Re-enabled load e2e test for Jenkins scalability suite
parents
75800067
a2116f2b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
load.go
test/e2e/load.go
+10
-1
util.go
test/e2e/util.go
+1
-1
No files found.
test/e2e/load.go
View file @
d7f242b8
...
@@ -26,6 +26,7 @@ import (
...
@@ -26,6 +26,7 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/fields"
"github.com/GoogleCloudPlatform/kubernetes/pkg/fields"
"github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
"github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
...
@@ -67,6 +68,14 @@ var _ = Describe("Load", func() {
...
@@ -67,6 +68,14 @@ var _ = Describe("Load", func() {
if
err
:=
c
.
Namespaces
()
.
Delete
(
ns
);
err
!=
nil
{
if
err
:=
c
.
Namespaces
()
.
Delete
(
ns
);
err
!=
nil
{
Failf
(
"Couldn't delete ns %s"
,
err
)
Failf
(
"Couldn't delete ns %s"
,
err
)
}
}
// Verify latency metrics
// TODO: Update threshold to 1s once we reach this goal
// TODO: We should reset metrics before the test. Currently previous tests influence latency metrics.
_
,
err
:=
HighLatencyRequests
(
c
,
5
*
time
.
Second
,
util
.
NewStringSet
(
"events"
))
expectNoError
(
err
)
// TODO: uncomment the following line once the test is stable
// Expect(highLatencyRequests).NotTo(BeNumerically(">", 0))
})
})
type
Load
struct
{
type
Load
struct
{
...
@@ -78,7 +87,7 @@ var _ = Describe("Load", func() {
...
@@ -78,7 +87,7 @@ var _ = Describe("Load", func() {
}
}
for
_
,
testArg
:=
range
loadTests
{
for
_
,
testArg
:=
range
loadTests
{
name
:=
fmt
.
Sprintf
(
"[Skipped] should be able to handle %v pods per node"
,
testArg
.
podsPerNode
)
name
:=
fmt
.
Sprintf
(
"[
Performance suite] [
Skipped] should be able to handle %v pods per node"
,
testArg
.
podsPerNode
)
It
(
name
,
func
()
{
It
(
name
,
func
()
{
totalPods
:=
testArg
.
podsPerNode
*
nodeCount
totalPods
:=
testArg
.
podsPerNode
*
nodeCount
...
...
test/e2e/util.go
View file @
d7f242b8
...
@@ -776,7 +776,7 @@ func RunRC(c *client.Client, name string, ns, image string, replicas int) error
...
@@ -776,7 +776,7 @@ func RunRC(c *client.Client, name string, ns, image string, replicas int) error
By
(
fmt
.
Sprintf
(
"%v Waiting for all %d replicas to be running with a max container failures of %d"
,
time
.
Now
(),
replicas
,
maxContainerFailures
))
By
(
fmt
.
Sprintf
(
"%v Waiting for all %d replicas to be running with a max container failures of %d"
,
time
.
Now
(),
replicas
,
maxContainerFailures
))
same
=
0
same
=
0
last
=
0
last
=
0
failCount
=
1
0
failCount
=
2
0
current
=
0
current
=
0
oldPods
:=
make
([]
*
api
.
Pod
,
0
)
oldPods
:=
make
([]
*
api
.
Pod
,
0
)
for
same
<
failCount
&&
current
<
replicas
{
for
same
<
failCount
&&
current
<
replicas
{
...
...
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