Commit a5396a80 authored by Daniel Smith's avatar Daniel Smith

add 'thrash' test that starts and stops a bunch of rc's in parallel

parent aa4dbc0d
......@@ -18,6 +18,7 @@ package e2e
import (
"fmt"
"sync"
"time"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
......@@ -195,4 +196,20 @@ var _ = PDescribe("Density", func() {
RCName = "my-hostname-density100-" + string(util.NewUUID())
RunRC(c, RCName, ns, "dockerfile/nginx", 100*minionCount)
})
It("should have master components that can handle many short-lived pods", func() {
threads := 5
var wg sync.WaitGroup
wg.Add(threads)
for i := 0; i < threads; i++ {
go func() {
defer wg.Done()
for i := 0; i < 10; i++ {
name := "my-hostname-thrash-" + string(util.NewUUID())
RunRC(c, name, ns, "kubernetes/pause", 10*minionCount)
}
}()
}
wg.Wait()
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment