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
c47aa368
Commit
c47aa368
authored
Feb 26, 2016
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase QPS limits in integration and e2e tests
parent
9e5d1b61
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
10 deletions
+18
-10
integration.go
cmd/integration/integration.go
+14
-2
density.go
test/e2e/density.go
+2
-6
framework.go
test/e2e/framework.go
+2
-2
No files found.
cmd/integration/integration.go
View file @
c47aa368
...
...
@@ -994,10 +994,22 @@ func main() {
// Wait for the synchronization threads to come up.
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.
// 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
testFuncs
:=
[]
testFunc
{
...
...
test/e2e/density.go
View file @
c47aa368
...
...
@@ -144,12 +144,8 @@ var _ = Describe("Density", func() {
})
// Explicitly put here, to delete namespace at the end of the test
// (after measuring latency metrics, etc.).framework := NewFramework("density")
options
:=
FrameworkOptions
{
clientQPS
:
20
,
clientBurst
:
30
,
}
framework
:=
NewFramework
(
"density"
,
options
)
// (after measuring latency metrics, etc.).
framework
:=
NewDefaultFramework
(
"density"
)
framework
.
NamespaceDeletionTimeout
=
time
.
Hour
BeforeEach
(
func
()
{
...
...
test/e2e/framework.go
View file @
c47aa368
...
...
@@ -84,8 +84,8 @@ type FrameworkOptions struct {
// you (you can write additional before/after each functions).
func
NewDefaultFramework
(
baseName
string
)
*
Framework
{
options
:=
FrameworkOptions
{
clientQPS
:
5
,
clientBurst
:
1
0
,
clientQPS
:
20
,
clientBurst
:
5
0
,
}
return
NewFramework
(
baseName
,
options
)
}
...
...
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