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
c30f5269
Unverified
Commit
c30f5269
authored
Oct 18, 2018
by
k8s-ci-robot
Committed by
GitHub
Oct 18, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #69810 from chrisohaver/checkmem
Add DNS container memory check to scalability tests
parents
007ad917
402266af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
resource_usage_gatherer.go
test/e2e/framework/resource_usage_gatherer.go
+2
-0
density.go
test/e2e/scalability/density.go
+8
-0
load.go
test/e2e/scalability/load.go
+15
-0
No files found.
test/e2e/framework/resource_usage_gatherer.go
View file @
c30f5269
...
...
@@ -48,6 +48,8 @@ type SingleContainerSummary struct {
// we can't have int here, as JSON does not accept integer keys.
type
ResourceUsageSummary
map
[
string
][]
SingleContainerSummary
const
NoCPUConstraint
=
math
.
MaxFloat64
func
(
s
*
ResourceUsageSummary
)
PrintHumanReadable
()
string
{
buf
:=
&
bytes
.
Buffer
{}
w
:=
tabwriter
.
NewWriter
(
buf
,
1
,
0
,
1
,
' '
,
0
)
...
...
test/e2e/scalability/density.go
View file @
c30f5269
...
...
@@ -224,6 +224,14 @@ func density30AddonResourceVerifier(numNodes int) map[string]framework.ResourceC
CPUConstraint
:
schedulerCPU
,
MemoryConstraint
:
schedulerMem
,
}
constraints
[
"coredns"
]
=
framework
.
ResourceConstraint
{
CPUConstraint
:
framework
.
NoCPUConstraint
,
MemoryConstraint
:
170
*
(
1024
*
1024
),
}
constraints
[
"kubedns"
]
=
framework
.
ResourceConstraint
{
CPUConstraint
:
framework
.
NoCPUConstraint
,
MemoryConstraint
:
170
*
(
1024
*
1024
),
}
return
constraints
}
...
...
test/e2e/scalability/load.go
View file @
c30f5269
...
...
@@ -232,6 +232,8 @@ var _ = SIGDescribe("Load capacity", func() {
framework
.
ExpectNoError
(
CreateQuotas
(
f
,
namespaces
,
2
*
totalPods
,
testPhaseDurations
.
StartPhase
(
115
,
"quota creation"
)))
}
f
.
AddonResourceConstraints
=
loadResourceConstraints
()
serviceCreationPhase
:=
testPhaseDurations
.
StartPhase
(
120
,
"services creation"
)
defer
serviceCreationPhase
.
End
()
if
itArg
.
services
{
...
...
@@ -429,6 +431,19 @@ func computePodCounts(total int) (int, int, int) {
return
smallGroupCount
,
mediumGroupCount
,
bigGroupCount
}
func
loadResourceConstraints
()
map
[
string
]
framework
.
ResourceConstraint
{
constraints
:=
make
(
map
[
string
]
framework
.
ResourceConstraint
)
constraints
[
"coredns"
]
=
framework
.
ResourceConstraint
{
CPUConstraint
:
framework
.
NoCPUConstraint
,
MemoryConstraint
:
170
*
(
1024
*
1024
),
}
constraints
[
"kubedns"
]
=
framework
.
ResourceConstraint
{
CPUConstraint
:
framework
.
NoCPUConstraint
,
MemoryConstraint
:
170
*
(
1024
*
1024
),
}
return
constraints
}
func
generateConfigs
(
totalPods
int
,
image
string
,
...
...
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