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
5bf9a699
Commit
5bf9a699
authored
Nov 10, 2016
by
Yu-Ju Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use generous limits in the resource usage tracking tests
These tests are mainly used to catch resource leaks in the soak cluster. Using higher limits to reduce noise.
parent
f70c2ef2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
22 deletions
+13
-22
kubelet_perf.go
test/e2e/kubelet_perf.go
+13
-22
No files found.
test/e2e/kubelet_perf.go
View file @
5bf9a699
...
@@ -227,15 +227,21 @@ var _ = framework.KubeDescribe("Kubelet [Serial] [Slow]", func() {
...
@@ -227,15 +227,21 @@ var _ = framework.KubeDescribe("Kubelet [Serial] [Slow]", func() {
// initialization. This *noise* is obvious when N is small. We
// initialization. This *noise* is obvious when N is small. We
// deliberately set higher resource usage limits to account for the
// deliberately set higher resource usage limits to account for the
// noise.
// noise.
//
// We set all resource limits generously because this test is mainly
// used to catch resource leaks in the soak cluster. For tracking
// kubelet/runtime resource usage, please see the node e2e benchmark
// dashboard. http://node-perf-dash.k8s.io/
//
// TODO(#36621): Deprecate this test once we have a node e2e soak
// cluster.
rTests
:=
[]
resourceTest
{
rTests
:=
[]
resourceTest
{
{
{
podsPerNode
:
0
,
podsPerNode
:
0
,
cpuLimits
:
framework
.
ContainersCPUSummary
{
cpuLimits
:
framework
.
ContainersCPUSummary
{
stats
.
SystemContainerKubelet
:
{
0.50
:
0.
06
,
0.95
:
0.08
},
stats
.
SystemContainerKubelet
:
{
0.50
:
0.
10
,
0.95
:
0.20
},
stats
.
SystemContainerRuntime
:
{
0.50
:
0.
05
,
0.95
:
0.06
},
stats
.
SystemContainerRuntime
:
{
0.50
:
0.
10
,
0.95
:
0.20
},
},
},
// We set the memory limits generously because the distribution
// of the addon pods affect the memory usage on each node.
memLimits
:
framework
.
ResourceUsagePerContainer
{
memLimits
:
framework
.
ResourceUsagePerContainer
{
stats
.
SystemContainerKubelet
:
&
framework
.
ContainerResourceUsage
{
MemoryRSSInBytes
:
70
*
1024
*
1024
},
stats
.
SystemContainerKubelet
:
&
framework
.
ContainerResourceUsage
{
MemoryRSSInBytes
:
70
*
1024
*
1024
},
// The detail can be found at https://github.com/kubernetes/kubernetes/issues/28384#issuecomment-244158892
// The detail can be found at https://github.com/kubernetes/kubernetes/issues/28384#issuecomment-244158892
...
@@ -243,28 +249,13 @@ var _ = framework.KubeDescribe("Kubelet [Serial] [Slow]", func() {
...
@@ -243,28 +249,13 @@ var _ = framework.KubeDescribe("Kubelet [Serial] [Slow]", func() {
},
},
},
},
{
{
podsPerNode
:
35
,
cpuLimits
:
framework
.
ContainersCPUSummary
{
cpuLimits
:
framework
.
ContainersCPUSummary
{
stats
.
SystemContainerKubelet
:
{
0.50
:
0.12
,
0.95
:
0.16
},
stats
.
SystemContainerKubelet
:
{
0.50
:
0.35
,
0.95
:
0.50
},
stats
.
SystemContainerRuntime
:
{
0.50
:
0.05
,
0.95
:
0.07
},
stats
.
SystemContainerRuntime
:
{
0.50
:
0.10
,
0.95
:
0.50
},
},
// We set the memory limits generously because the distribution
// of the addon pods affect the memory usage on each node.
memLimits
:
framework
.
ResourceUsagePerContainer
{
stats
.
SystemContainerKubelet
:
&
framework
.
ContainerResourceUsage
{
MemoryRSSInBytes
:
70
*
1024
*
1024
},
stats
.
SystemContainerRuntime
:
&
framework
.
ContainerResourceUsage
{
MemoryRSSInBytes
:
200
*
1024
*
1024
},
},
},
{
cpuLimits
:
framework
.
ContainersCPUSummary
{
stats
.
SystemContainerKubelet
:
{
0.50
:
0.20
,
0.95
:
0.29
},
stats
.
SystemContainerRuntime
:
{
0.50
:
0.06
,
0.95
:
0.09
},
},
},
podsPerNode
:
100
,
podsPerNode
:
100
,
// We set the memory limits generously because the distribution
// of the addon pods affect the memory usage on each node.
memLimits
:
framework
.
ResourceUsagePerContainer
{
memLimits
:
framework
.
ResourceUsagePerContainer
{
stats
.
SystemContainerKubelet
:
&
framework
.
ContainerResourceUsage
{
MemoryRSSInBytes
:
8
0
*
1024
*
1024
},
stats
.
SystemContainerKubelet
:
&
framework
.
ContainerResourceUsage
{
MemoryRSSInBytes
:
10
0
*
1024
*
1024
},
stats
.
SystemContainerRuntime
:
&
framework
.
ContainerResourceUsage
{
MemoryRSSInBytes
:
300
*
1024
*
1024
},
stats
.
SystemContainerRuntime
:
&
framework
.
ContainerResourceUsage
{
MemoryRSSInBytes
:
300
*
1024
*
1024
},
},
},
},
},
...
...
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