Skip to content

Commit

Permalink
Adjusted private endpoint setup delay to 30s.
Browse files Browse the repository at this point in the history
The original 10s delay was not sufficient to guarentee the propagation
of the private dns names throughout AWS's infrastructure.  Adjusting it
to 30s to try and make it more reliable.  90% of the time, we ended up
needing to wait for 5m+ due to negative cacheing.
  • Loading branch information
brett19 committed Sep 24, 2024
1 parent 1484827 commit 3c3f333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/awscontrol/privateendpointscontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (c *PrivateEndpointsController) EnableVPCEndpointPrivateDNS(ctx context.Con

// its safer for us to sleep here for 10s than to accidentally fetch the DNS
// entry before its been propagated and then need to wait 5m for it to update.
time.Sleep(10 * time.Second)
time.Sleep(30 * time.Second)

return nil
}
Expand Down

0 comments on commit 3c3f333

Please sign in to comment.