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
c76635c6
Commit
c76635c6
authored
Feb 29, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22168 from gmarek/density
Auto commit by PR queue bot
parents
414bf2aa
d9fe5283
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
density.go
test/e2e/density.go
+24
-2
No files found.
test/e2e/density.go
View file @
c76635c6
...
@@ -314,8 +314,30 @@ var _ = Describe("Density", func() {
...
@@ -314,8 +314,30 @@ var _ = Describe("Density", func() {
badEvents
:=
BadEvents
(
events
)
badEvents
:=
BadEvents
(
events
)
Expect
(
badEvents
)
.
NotTo
(
BeNumerically
(
">"
,
int
(
math
.
Floor
(
0.01
*
float64
(
totalPods
)))))
Expect
(
badEvents
)
.
NotTo
(
BeNumerically
(
">"
,
int
(
math
.
Floor
(
0.01
*
float64
(
totalPods
)))))
// Print some data about Pod to Node allocation
By
(
"Printing Pod to Node allocation data"
)
podList
,
err
:=
c
.
Pods
(
api
.
NamespaceAll
)
.
List
(
api
.
ListOptions
{})
expectNoError
(
err
)
pausePodAllocation
:=
make
(
map
[
string
]
int
)
systemPodAllocation
:=
make
(
map
[
string
][]
string
)
for
_
,
pod
:=
range
podList
.
Items
{
if
pod
.
Namespace
==
api
.
NamespaceSystem
{
systemPodAllocation
[
pod
.
Spec
.
NodeName
]
=
append
(
systemPodAllocation
[
pod
.
Spec
.
NodeName
],
pod
.
Name
)
}
else
{
pausePodAllocation
[
pod
.
Spec
.
NodeName
]
++
}
}
nodeNames
:=
make
([]
string
,
0
)
for
k
:=
range
pausePodAllocation
{
nodeNames
=
append
(
nodeNames
,
k
)
}
sort
.
Strings
(
nodeNames
)
for
_
,
node
:=
range
nodeNames
{
Logf
(
"%v: %v pause pods, system pods: %v"
,
node
,
pausePodAllocation
[
node
],
systemPodAllocation
[
node
])
}
if
itArg
.
runLatencyTest
{
if
itArg
.
runLatencyTest
{
Logf
(
"Sched
ling additional Pods to measure startup latencies"
)
By
(
"Schedu
ling additional Pods to measure startup latencies"
)
createTimes
:=
make
(
map
[
string
]
unversioned
.
Time
,
0
)
createTimes
:=
make
(
map
[
string
]
unversioned
.
Time
,
0
)
nodes
:=
make
(
map
[
string
]
string
,
0
)
nodes
:=
make
(
map
[
string
]
string
,
0
)
...
@@ -395,7 +417,7 @@ var _ = Describe("Density", func() {
...
@@ -395,7 +417,7 @@ var _ = Describe("Density", func() {
}
}
wg
.
Wait
()
wg
.
Wait
()
Logf
(
"Waiting for all Pods begin observed by the watch..."
)
By
(
"Waiting for all Pods begin observed by the watch..."
)
for
start
:=
time
.
Now
();
len
(
watchTimes
)
<
nodeCount
;
time
.
Sleep
(
10
*
time
.
Second
)
{
for
start
:=
time
.
Now
();
len
(
watchTimes
)
<
nodeCount
;
time
.
Sleep
(
10
*
time
.
Second
)
{
if
time
.
Since
(
start
)
<
timeout
{
if
time
.
Since
(
start
)
<
timeout
{
Failf
(
"Timeout reached waiting for all Pods being observed by the watch."
)
Failf
(
"Timeout reached waiting for all Pods being observed by the watch."
)
...
...
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