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
3191b26b
Commit
3191b26b
authored
May 19, 2015
by
Robert Rati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only sleep 1.1*interval. #7572
parent
7361f751
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
util.go
test/e2e/util.go
+2
-2
No files found.
test/e2e/util.go
View file @
3191b26b
...
@@ -555,7 +555,7 @@ func RunRC(config RCConfig) error {
...
@@ -555,7 +555,7 @@ func RunRC(config RCConfig) error {
By
(
fmt
.
Sprintf
(
"Making sure all %d replicas of rc %s in namespace %s exist"
,
replicas
,
name
,
ns
))
By
(
fmt
.
Sprintf
(
"Making sure all %d replicas of rc %s in namespace %s exist"
,
replicas
,
name
,
ns
))
failCount
:=
int
(
25
/
interval
)
failCount
:=
int
(
25
/
interval
)
for
same
<
failCount
&&
current
<
replicas
{
for
same
<
failCount
&&
current
<
replicas
{
time
.
Sleep
(
time
.
Duration
(
interval
*
2
)
*
time
.
Second
)
time
.
Sleep
(
time
.
Duration
(
float32
(
interval
)
*
1.1
)
*
time
.
Second
)
// Greedily read all existing entries in the queue until
// Greedily read all existing entries in the queue until
// all pods are found submitted or the queue is empty
// all pods are found submitted or the queue is empty
...
@@ -593,7 +593,7 @@ func RunRC(config RCConfig) error {
...
@@ -593,7 +593,7 @@ func RunRC(config RCConfig) error {
podLists
.
Reset
()
podLists
.
Reset
()
foundAllPods
:=
false
foundAllPods
:=
false
for
same
<
failCount
&&
current
<
replicas
{
for
same
<
failCount
&&
current
<
replicas
{
time
.
Sleep
(
time
.
Duration
(
interval
*
2
)
*
time
.
Second
)
time
.
Sleep
(
time
.
Duration
(
float32
(
interval
)
*
1.1
)
*
time
.
Second
)
// Greedily read all existing entries in the queue until
// Greedily read all existing entries in the queue until
// either all pods are running or the queue is empty
// either all pods are running or the queue is empty
...
...
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