Skip to content

Commit

Permalink
Adjust timings
Browse files Browse the repository at this point in the history
  • Loading branch information
hjkatz committed Nov 8, 2024
1 parent 8d35a4e commit 17bf76f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions internal/controller/bindings/boundendpoint_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,9 @@ func (r *BoundEndpointReconciler) tryToBindEndpoint(ctx context.Context, boundEn

retries := 5
attempt := 0
waitDuration := 0 * time.Second // start immediately
backoffDuration := 10 * time.Second // increasing duration to wait between retries
dialTimeout := 5 * time.Second // timeout for dialing the targetService
waitDuration := 0 * time.Second // start immediately
backoffDuration := 3 * time.Second // increasing duration to wait between retries
dialTimeout := 1 * time.Second // timeout for dialing the targetService

// to be filled in
var bindErr error
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/bindings/boundendpoint_poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (r *BoundEndpointPoller) reconcileBoundEndpointAction(ctx context.Context,

go func() {
// attempt reconciliation actions every so often
ticker := time.NewTicker(5 * time.Second)
ticker := time.NewTicker(2 * time.Second)
defer ticker.Stop()

// remainingBindings is the list of BoundEndpoints that still need to be actioned upon
Expand Down

0 comments on commit 17bf76f

Please sign in to comment.