Skip to content

Commit

Permalink
Merge pull request kubernetes#5274 from lavalamp/fix4
Browse files Browse the repository at this point in the history
Add 'thrash' test that starts and stops a bunch of rc's in parallel
  • Loading branch information
satnam6502 committed Mar 12, 2015
2 parents 9dab601 + a5396a8 commit d076833
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/e2e/density.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package e2e

import (
"fmt"
"sync"
"time"

"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
Expand Down Expand Up @@ -201,4 +202,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()
})
})

0 comments on commit d076833

Please sign in to comment.