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
9d61a954
Commit
9d61a954
authored
May 26, 2015
by
Alex Robinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust the sleep time before tearing down e2e clusters and add a rough formula
for determining how long the sleep should be.
parent
3975f6eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
e2e.sh
hack/jenkins/e2e.sh
+5
-3
servicecontroller.go
pkg/cloudprovider/servicecontroller/servicecontroller.go
+6
-1
No files found.
hack/jenkins/e2e.sh
View file @
9d61a954
...
...
@@ -224,8 +224,10 @@ fi
if
[[
"
${
E2E_DOWN
,,
}
"
==
"true"
]]
;
then
# Sleep before deleting the cluster to give the controller manager time to
# delete any cloudprovider resources still around from the last test.
# 60 seconds was chosen as an arbitrary bound for how long it should take
# to delete load balancer resources.
sleep
60
# This is calibrated to allow enough time for 3 attempts to delete the
# resources. Each attempt is allocated 5 seconds for requests to the
# cloudprovider plus the processingRetryInterval from servicecontroller.go
# for the wait between attempts.
sleep
30
go run ./hack/e2e.go
${
E2E_OPT
}
-v
--down
fi
pkg/cloudprovider/servicecontroller/servicecontroller.go
View file @
9d61a954
...
...
@@ -38,6 +38,11 @@ import (
const
(
workerGoroutines
=
10
// How long to wait before retrying the processing of a service change.
// If this changes, the sleep in hack/jenkins/e2e.sh before downing a cluster
// should be changed appropriately.
processingRetryInterval
=
5
*
time
.
Second
clientRetryCount
=
5
clientRetryInterval
=
5
*
time
.
Second
...
...
@@ -151,7 +156,7 @@ func (s *ServiceController) watchServices(serviceQueue *cache.DeltaFIFO) {
if
shouldRetry
{
// Add the failed service back to the queue so we'll retry it.
glog
.
Errorf
(
"Failed to process service delta. Retrying: %v"
,
err
)
time
.
Sleep
(
5
*
time
.
Second
)
time
.
Sleep
(
processingRetryInterval
)
serviceQueue
.
AddIfNotPresent
(
deltas
)
}
else
if
err
!=
nil
{
util
.
HandleError
(
fmt
.
Errorf
(
"Failed to process service delta. Not retrying: %v"
,
err
))
...
...
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