Merge pull request #22314 from yujuhong/resource_100

Auto commit by PR queue bot
pull/6/head
k8s-merge-robot 2016-03-04 18:48:02 -08:00
commit 28b3448a9a
1 changed files with 9 additions and 5 deletions

View File

@ -135,7 +135,7 @@ func verifyMemoryLimits(expected resourceUsagePerContainer, actual resourceUsage
}
}
if len(errList) > 0 {
Failf("CPU usage exceeding limits:\n %s", strings.Join(errList, "\n"))
Failf("Memory usage exceeding limits:\n %s", strings.Join(errList, "\n"))
}
}
@ -204,7 +204,8 @@ var _ = Describe("Kubelet [Serial] [Slow]", func() {
// deliberately set higher resource usage limits to account for the
// noise.
rTests := []resourceTest{
{podsPerNode: 0,
{
podsPerNode: 0,
cpuLimits: containersCPUSummary{
"/kubelet": {0.50: 0.06, 0.95: 0.08},
"/docker-daemon": {0.50: 0.05, 0.95: 0.06},
@ -216,9 +217,8 @@ var _ = Describe("Kubelet [Serial] [Slow]", func() {
"/docker-daemon": &containerResourceUsage{MemoryRSSInBytes: 85 * 1024 * 1024},
},
},
// TODO(yujuhong): change this test to ~100 pods per node after
// --max-pods have been changed.
{podsPerNode: 35,
{
podsPerNode: 35,
cpuLimits: containersCPUSummary{
"/kubelet": {0.50: 0.12, 0.95: 0.14},
"/docker-daemon": {0.50: 0.06, 0.95: 0.08},
@ -230,6 +230,10 @@ var _ = Describe("Kubelet [Serial] [Slow]", func() {
"/docker-daemon": &containerResourceUsage{MemoryRSSInBytes: 100 * 1024 * 1024},
},
},
{
// TODO(yujuhong): Set the limits after collecting enough data.
podsPerNode: 100,
},
}
for _, testArg := range rTests {
itArg := testArg