Skip to content

Commit 77ac0cf

Browse files
committed
fix: improve load balancer health checks
1 parent 2858417 commit 77ac0cf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pkg/cloud/services/loadbalancer/loadbalancer.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,13 @@ func (s *Service) getOrCreateMonitor(openStackCluster *infrav1.OpenStackCluster,
332332
s.scope.Logger.Info(fmt.Sprintf("Creating load balancer monitor for pool %q", poolID), "name", monitorName, "lb-id", lbID)
333333

334334
monitorCreateOpts := monitors.CreateOpts{
335-
Name: monitorName,
336-
PoolID: poolID,
337-
Type: "TCP",
338-
Delay: 30,
339-
Timeout: 5,
340-
MaxRetries: 3,
335+
Name: monitorName,
336+
PoolID: poolID,
337+
Type: "TCP",
338+
Delay: 10,
339+
MaxRetries: 5,
340+
MaxRetriesDown: 3,
341+
Timeout: 5,
341342
}
342343
monitor, err = s.loadbalancerClient.CreateMonitor(monitorCreateOpts)
343344
if err != nil {

0 commit comments

Comments
 (0)