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
6cdeb7a7
Commit
6cdeb7a7
authored
Sep 08, 2015
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test whether pod startup latency is good enough.
parent
0d21b588
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
density.go
test/e2e/density.go
+10
-1
No files found.
test/e2e/density.go
View file @
6cdeb7a7
...
@@ -148,7 +148,6 @@ var _ = Describe("Density", func() {
...
@@ -148,7 +148,6 @@ var _ = Describe("Density", func() {
expectNoError
(
writePerfData
(
c
,
fmt
.
Sprintf
(
testContext
.
OutputDir
+
"/%s"
,
uuid
),
"after"
))
expectNoError
(
writePerfData
(
c
,
fmt
.
Sprintf
(
testContext
.
OutputDir
+
"/%s"
,
uuid
),
"after"
))
// Verify latency metrics
// Verify latency metrics
// TODO: We should reset metrics before the test. Currently previous tests influence latency metrics.
highLatencyRequests
,
err
:=
HighLatencyRequests
(
c
,
3
*
time
.
Second
,
util
.
NewStringSet
(
"events"
))
highLatencyRequests
,
err
:=
HighLatencyRequests
(
c
,
3
*
time
.
Second
,
util
.
NewStringSet
(
"events"
))
expectNoError
(
err
)
expectNoError
(
err
)
Expect
(
highLatencyRequests
)
.
NotTo
(
BeNumerically
(
">"
,
0
),
"There should be no high-latency requests"
)
Expect
(
highLatencyRequests
)
.
NotTo
(
BeNumerically
(
">"
,
0
),
"There should be no high-latency requests"
)
...
@@ -386,6 +385,16 @@ var _ = Describe("Density", func() {
...
@@ -386,6 +385,16 @@ var _ = Describe("Density", func() {
printLatencies
(
schedToWatchLag
,
"worst scheduled-to-end total latencies"
)
printLatencies
(
schedToWatchLag
,
"worst scheduled-to-end total latencies"
)
printLatencies
(
e2eLag
,
"worst e2e total latencies"
)
printLatencies
(
e2eLag
,
"worst e2e total latencies"
)
// Test whether e2e pod startup time is acceptable.
// TODO: Switch it to 5 seconds once we are sure our tests are passing.
podStartupThreshold
:=
8
*
time
.
Second
e2ePodStartupTime50perc
:=
e2eLag
[
len
(
e2eLag
)
/
2
]
.
Latency
e2ePodStartupTime90perc
:=
e2eLag
[
len
(
e2eLag
)
*
9
/
10
]
.
Latency
e2ePodStartupTime99perc
:=
e2eLag
[
len
(
e2eLag
)
*
99
/
100
]
.
Latency
Expect
(
e2ePodStartupTime50perc
<
podStartupThreshold
)
.
To
(
Equal
(
true
),
"Too high pod startup time 50th percentile"
)
Expect
(
e2ePodStartupTime90perc
<
podStartupThreshold
)
.
To
(
Equal
(
true
),
"Too high pod startup time 90th percentile"
)
Expect
(
e2ePodStartupTime99perc
<
podStartupThreshold
)
.
To
(
Equal
(
true
),
"Too high pod startup time 99th percentile"
)
// Log suspicious latency metrics/docker errors from all nodes that had slow startup times
// Log suspicious latency metrics/docker errors from all nodes that had slow startup times
for
_
,
l
:=
range
startupLag
{
for
_
,
l
:=
range
startupLag
{
if
l
.
Latency
>
NodeStartupThreshold
{
if
l
.
Latency
>
NodeStartupThreshold
{
...
...
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