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
8061c623
Commit
8061c623
authored
Apr 18, 2017
by
gmarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update resource usage constraints
parent
eccba3b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
density.go
test/e2e/perf/density.go
+9
-16
No files found.
test/e2e/perf/density.go
View file @
8061c623
...
...
@@ -92,10 +92,10 @@ func density30AddonResourceVerifier(numNodes int) map[string]framework.ResourceC
}
else
if
numNodes
<=
100
{
apiserverCPU
=
1.5
apiserverMem
=
1500
*
(
1024
*
1024
)
controllerCPU
=
0.
7
5
controllerMem
=
75
0
*
(
1024
*
1024
)
schedulerCPU
=
0.
75
schedulerMem
=
50
0
*
(
1024
*
1024
)
controllerCPU
=
0.5
controllerMem
=
50
0
*
(
1024
*
1024
)
schedulerCPU
=
0.
4
schedulerMem
=
18
0
*
(
1024
*
1024
)
}
else
if
numNodes
<=
500
{
apiserverCPU
=
3.5
apiserverMem
=
3400
*
(
1024
*
1024
)
...
...
@@ -113,14 +113,12 @@ func density30AddonResourceVerifier(numNodes int) map[string]framework.ResourceC
}
}
else
{
if
numNodes
<=
100
{
// TODO: Investigate higher apiserver consumption and
// potentially revert to 1.5cpu and 1.3GB - see #30871
apiserverCPU
=
1.8
apiserverMem
=
22
00
*
(
1024
*
1024
)
apiserverMem
=
15
00
*
(
1024
*
1024
)
controllerCPU
=
0.5
controllerMem
=
3
00
*
(
1024
*
1024
)
controllerMem
=
5
00
*
(
1024
*
1024
)
schedulerCPU
=
0.4
schedulerMem
=
1
5
0
*
(
1024
*
1024
)
schedulerMem
=
1
8
0
*
(
1024
*
1024
)
}
}
...
...
@@ -143,13 +141,8 @@ func density30AddonResourceVerifier(numNodes int) map[string]framework.ResourceC
MemoryConstraint
:
100
*
(
1024
*
1024
),
}
constraints
[
"kube-proxy"
]
=
framework
.
ResourceConstraint
{
CPUConstraint
:
0.15
,
// When we are running purely density test, 30MB seems to be enough.
// However, we are usually running Density together with Load test.
// Thus, if Density is running after Load (which is creating and
// propagating a bunch of services), kubeproxy is using much more
// memory and not releasing it afterwards.
MemoryConstraint
:
60
*
(
1024
*
1024
),
CPUConstraint
:
0.15
,
MemoryConstraint
:
100
*
(
1024
*
1024
),
}
constraints
[
"l7-lb-controller"
]
=
framework
.
ResourceConstraint
{
CPUConstraint
:
0.15
,
...
...
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