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
68e2c3db
Commit
68e2c3db
authored
Sep 08, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13665 from wojtek-t/pod_startup_time_metrics
Auto commit by PR queue bot
parents
61a66a95
6cdeb7a7
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 @
68e2c3db
...
...
@@ -148,7 +148,6 @@ var _ = Describe("Density", func() {
expectNoError
(
writePerfData
(
c
,
fmt
.
Sprintf
(
testContext
.
OutputDir
+
"/%s"
,
uuid
),
"after"
))
// 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"
))
expectNoError
(
err
)
Expect
(
highLatencyRequests
)
.
NotTo
(
BeNumerically
(
">"
,
0
),
"There should be no high-latency requests"
)
...
...
@@ -386,6 +385,16 @@ var _ = Describe("Density", func() {
printLatencies
(
schedToWatchLag
,
"worst scheduled-to-end 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
for
_
,
l
:=
range
startupLag
{
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