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
933834fd
Commit
933834fd
authored
Apr 18, 2017
by
Kubernetes Submit Queue
Committed by
GitHub
Apr 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #44614 from gmarek/resource_constraints
Automatic merge from submit-queue (batch tested with PRs 44222, 44614, 44292, 44638) Update resource usage constraints
parents
409b0a6f
8061c623
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 @
933834fd
...
@@ -92,10 +92,10 @@ func density30AddonResourceVerifier(numNodes int) map[string]framework.ResourceC
...
@@ -92,10 +92,10 @@ func density30AddonResourceVerifier(numNodes int) map[string]framework.ResourceC
}
else
if
numNodes
<=
100
{
}
else
if
numNodes
<=
100
{
apiserverCPU
=
1.5
apiserverCPU
=
1.5
apiserverMem
=
1500
*
(
1024
*
1024
)
apiserverMem
=
1500
*
(
1024
*
1024
)
controllerCPU
=
0.
7
5
controllerCPU
=
0.5
controllerMem
=
75
0
*
(
1024
*
1024
)
controllerMem
=
50
0
*
(
1024
*
1024
)
schedulerCPU
=
0.
75
schedulerCPU
=
0.
4
schedulerMem
=
50
0
*
(
1024
*
1024
)
schedulerMem
=
18
0
*
(
1024
*
1024
)
}
else
if
numNodes
<=
500
{
}
else
if
numNodes
<=
500
{
apiserverCPU
=
3.5
apiserverCPU
=
3.5
apiserverMem
=
3400
*
(
1024
*
1024
)
apiserverMem
=
3400
*
(
1024
*
1024
)
...
@@ -113,14 +113,12 @@ func density30AddonResourceVerifier(numNodes int) map[string]framework.ResourceC
...
@@ -113,14 +113,12 @@ func density30AddonResourceVerifier(numNodes int) map[string]framework.ResourceC
}
}
}
else
{
}
else
{
if
numNodes
<=
100
{
if
numNodes
<=
100
{
// TODO: Investigate higher apiserver consumption and
// potentially revert to 1.5cpu and 1.3GB - see #30871
apiserverCPU
=
1.8
apiserverCPU
=
1.8
apiserverMem
=
22
00
*
(
1024
*
1024
)
apiserverMem
=
15
00
*
(
1024
*
1024
)
controllerCPU
=
0.5
controllerCPU
=
0.5
controllerMem
=
3
00
*
(
1024
*
1024
)
controllerMem
=
5
00
*
(
1024
*
1024
)
schedulerCPU
=
0.4
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
...
@@ -143,13 +141,8 @@ func density30AddonResourceVerifier(numNodes int) map[string]framework.ResourceC
MemoryConstraint
:
100
*
(
1024
*
1024
),
MemoryConstraint
:
100
*
(
1024
*
1024
),
}
}
constraints
[
"kube-proxy"
]
=
framework
.
ResourceConstraint
{
constraints
[
"kube-proxy"
]
=
framework
.
ResourceConstraint
{
CPUConstraint
:
0.15
,
CPUConstraint
:
0.15
,
// When we are running purely density test, 30MB seems to be enough.
MemoryConstraint
:
100
*
(
1024
*
1024
),
// 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
),
}
}
constraints
[
"l7-lb-controller"
]
=
framework
.
ResourceConstraint
{
constraints
[
"l7-lb-controller"
]
=
framework
.
ResourceConstraint
{
CPUConstraint
:
0.15
,
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