Skip to content

Commit fbedb2f

Browse files
committed
Decrease initial backoff for Floating IP operations
The configured backoff was checking for floating IP status only every 30 seconds. This changes it to an exponential backoff starting at 1 second and doubling at each iteration to a maximum of 30 seconds.
1 parent c9cca1d commit fbedb2f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/cloud/services/networking/floatingip.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,10 @@ func (s *Service) DeleteFloatingIP(eventObject runtime.Object, ip string) error
114114

115115
var backoff = wait.Backoff{
116116
Steps: 10,
117-
Duration: 30 * time.Second,
118-
Factor: 1.0,
117+
Duration: 1 * time.Second,
118+
Factor: 2.0,
119119
Jitter: 0.1,
120+
Cap: 30 * time.Second,
120121
}
121122

122123
func (s *Service) AssociateFloatingIP(eventObject runtime.Object, fp *floatingips.FloatingIP, portID string) error {

0 commit comments

Comments
 (0)