mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Increase QPS limits in integration and e2e tests
This commit is contained in:
parent
9e5d1b61fa
commit
c47aa368bd
@ -994,10 +994,22 @@ func main() {
|
|||||||
// Wait for the synchronization threads to come up.
|
// Wait for the synchronization threads to come up.
|
||||||
time.Sleep(time.Second * 10)
|
time.Sleep(time.Second * 10)
|
||||||
|
|
||||||
kubeClient := client.NewOrDie(&restclient.Config{Host: apiServerURL, ContentConfig: restclient.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
|
kubeClient := client.NewOrDie(
|
||||||
|
&restclient.Config{
|
||||||
|
Host: apiServerURL,
|
||||||
|
ContentConfig: restclient.ContentConfig{GroupVersion: testapi.Default.GroupVersion()},
|
||||||
|
QPS: 20,
|
||||||
|
Burst: 50,
|
||||||
|
})
|
||||||
// TODO: caesarxuchao: hacky way to specify version of Experimental client.
|
// TODO: caesarxuchao: hacky way to specify version of Experimental client.
|
||||||
// We will fix this by supporting multiple group versions in Config
|
// We will fix this by supporting multiple group versions in Config
|
||||||
kubeClient.ExtensionsClient = client.NewExtensionsOrDie(&restclient.Config{Host: apiServerURL, ContentConfig: restclient.ContentConfig{GroupVersion: testapi.Extensions.GroupVersion()}})
|
kubeClient.ExtensionsClient = client.NewExtensionsOrDie(
|
||||||
|
&restclient.Config{
|
||||||
|
Host: apiServerURL,
|
||||||
|
ContentConfig: restclient.ContentConfig{GroupVersion: testapi.Extensions.GroupVersion()},
|
||||||
|
QPS: 20,
|
||||||
|
Burst: 50,
|
||||||
|
})
|
||||||
|
|
||||||
// Run tests in parallel
|
// Run tests in parallel
|
||||||
testFuncs := []testFunc{
|
testFuncs := []testFunc{
|
||||||
|
@ -144,12 +144,8 @@ var _ = Describe("Density", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Explicitly put here, to delete namespace at the end of the test
|
// Explicitly put here, to delete namespace at the end of the test
|
||||||
// (after measuring latency metrics, etc.).framework := NewFramework("density")
|
// (after measuring latency metrics, etc.).
|
||||||
options := FrameworkOptions{
|
framework := NewDefaultFramework("density")
|
||||||
clientQPS: 20,
|
|
||||||
clientBurst: 30,
|
|
||||||
}
|
|
||||||
framework := NewFramework("density", options)
|
|
||||||
framework.NamespaceDeletionTimeout = time.Hour
|
framework.NamespaceDeletionTimeout = time.Hour
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
|
@ -84,8 +84,8 @@ type FrameworkOptions struct {
|
|||||||
// you (you can write additional before/after each functions).
|
// you (you can write additional before/after each functions).
|
||||||
func NewDefaultFramework(baseName string) *Framework {
|
func NewDefaultFramework(baseName string) *Framework {
|
||||||
options := FrameworkOptions{
|
options := FrameworkOptions{
|
||||||
clientQPS: 5,
|
clientQPS: 20,
|
||||||
clientBurst: 10,
|
clientBurst: 50,
|
||||||
}
|
}
|
||||||
return NewFramework(baseName, options)
|
return NewFramework(baseName, options)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user