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
0bee4aa7
Commit
0bee4aa7
authored
Jun 11, 2015
by
Marek Grabowski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9571 from fgrzadkowski/fix_load_test
Simplify e2e.RunRC method and wait up to 10 minutes for pods to start
parents
5a02fc07
03f161de
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
80 deletions
+5
-80
density.go
test/e2e/density.go
+5
-5
fifo_queue.go
test/e2e/fifo_queue.go
+0
-75
util.go
test/e2e/util.go
+0
-0
No files found.
test/e2e/density.go
View file @
0bee4aa7
...
...
@@ -102,17 +102,17 @@ var _ = Describe("Density", func() {
skip
bool
podsPerMinion
int
/* Controls how often the apiserver is polled for pods */
interval
int
interval
time
.
Duration
}
densityTests
:=
[]
Density
{
// This test should always run, even if larger densities are skipped.
{
podsPerMinion
:
3
,
skip
:
false
,
interval
:
10
},
{
podsPerMinion
:
30
,
skip
:
false
,
interval
:
10
},
{
podsPerMinion
:
3
,
skip
:
false
,
interval
:
10
*
time
.
Second
},
{
podsPerMinion
:
30
,
skip
:
false
,
interval
:
10
*
time
.
Second
},
// More than 30 pods per node is outside our v1.0 goals.
// We might want to enable those tests in the future.
{
podsPerMinion
:
50
,
skip
:
true
,
interval
:
10
},
{
podsPerMinion
:
100
,
skip
:
true
,
interval
:
1
},
{
podsPerMinion
:
50
,
skip
:
true
,
interval
:
10
*
time
.
Second
},
{
podsPerMinion
:
100
,
skip
:
true
,
interval
:
1
*
time
.
Second
},
}
for
_
,
testArg
:=
range
densityTests
{
...
...
test/e2e/fifo_queue.go
deleted
100644 → 0
View file @
5a02fc07
/*
Copyright 2014 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package
e2e
import
(
"sync"
"time"
)
type
QueueItem
struct
{
createTime
string
value
interface
{}
}
type
QueueItems
struct
{
pos
int
mutex
*
sync
.
Mutex
list
[]
QueueItem
}
type
FifoQueue
QueueItems
func
(
fq
*
FifoQueue
)
Push
(
elem
interface
{})
{
fq
.
mutex
.
Lock
()
fq
.
list
=
append
(
fq
.
list
,
QueueItem
{
time
.
Now
()
.
String
(),
elem
})
fq
.
mutex
.
Unlock
()
}
func
(
fq
*
FifoQueue
)
Pop
()
QueueItem
{
fq
.
mutex
.
Lock
()
var
val
QueueItem
if
len
(
fq
.
list
)
-
1
>=
fq
.
pos
{
val
=
fq
.
list
[
fq
.
pos
]
fq
.
pos
++
}
fq
.
mutex
.
Unlock
()
return
val
}
func
(
fq
FifoQueue
)
Len
()
int
{
return
len
(
fq
.
list
[
fq
.
pos
:
])
}
func
(
fq
*
FifoQueue
)
First
()
QueueItem
{
return
fq
.
list
[
fq
.
pos
]
}
func
(
fq
*
FifoQueue
)
Last
()
QueueItem
{
return
fq
.
list
[
len
(
fq
.
list
)
-
1
]
}
func
(
fq
*
FifoQueue
)
Reset
()
{
fq
.
pos
=
0
}
func
newFifoQueue
()
*
FifoQueue
{
tmp
:=
new
(
FifoQueue
)
tmp
.
mutex
=
&
sync
.
Mutex
{}
tmp
.
pos
=
0
return
tmp
}
test/e2e/util.go
View file @
0bee4aa7
This diff is collapsed.
Click to expand it.
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