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
04822a96
Commit
04822a96
authored
Jun 13, 2017
by
Shyam Jeedigunta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase threshold for LIST apicall latencies to 2s
parent
5d2dbb58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
metrics_util.go
test/e2e/framework/metrics_util.go
+7
-1
No files found.
test/e2e/framework/metrics_util.go
View file @
04822a96
...
...
@@ -50,6 +50,10 @@ const (
// portion of CPU and basically stop all the real work.
// Increasing threshold to 1s is within our SLO and should solve this problem.
apiCallLatencyThreshold
time
.
Duration
=
1
*
time
.
Second
// We set a higher threshold for list apicalls as they can take more time when
// the list is really big. For eg. list nodes in a 5000-node cluster.
apiListCallLatencyThreshold
time
.
Duration
=
2
*
time
.
Second
)
type
MetricsForE2E
metrics
.
MetricsCollection
...
...
@@ -341,7 +345,9 @@ func HighLatencyRequests(c clientset.Interface) (int, *APIResponsiveness, error)
top
:=
5
for
i
:=
range
metrics
.
APICalls
{
isBad
:=
false
if
metrics
.
APICalls
[
i
]
.
Latency
.
Perc99
>
apiCallLatencyThreshold
{
verb
:=
metrics
.
APICalls
[
i
]
.
Verb
if
verb
!=
"LIST"
&&
metrics
.
APICalls
[
i
]
.
Latency
.
Perc99
>
apiCallLatencyThreshold
||
verb
==
"LIST"
&&
metrics
.
APICalls
[
i
]
.
Latency
.
Perc99
>
apiListCallLatencyThreshold
{
badMetrics
++
isBad
=
true
}
...
...
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