Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a 5 seconds of timeout to connecting to S3. #2727

Merged
merged 1 commit into from Mar 15, 2019

Conversation

benhamad
Copy link
Contributor

@benhamad benhamad commented Mar 15, 2019

The default is 1000ms, but we can hit it a lot of we don't have direct
link to AWS (e.g. using VPN).
Steps to reproduce this:

sudo tc qdisc add dev wlp1s0 root netem delay 3000ms This will add 3 seconds of delays to your network.
If you try to realize a store path from an S3 binary cache, you will get this error

AWS error '' (Unable to connect to endpoint), will retry in 0 ms                
AWS error '' (Unable to connect to endpoint), will retry in 50 ms                                                                                                                                                                              
AWS error '' (Unable to connect to endpoint), will retry in 100 ms                                                                                                                                                                             
AWS error '' (Unable to connect to endpoint), will retry in 200 ms                                                                                                                                                                             
AWS error '' (Unable to connect to endpoint), will retry in 400 ms                  
AWS error '' (Unable to connect to endpoint), will retry in 800 ms                                                
AWS error '' (Unable to connect to endpoint), will retry in 1600 ms                 
AWS error '' (Unable to connect to endpoint), will retry in 3200 ms                                                                                               
AWS error '' (Unable to connect to endpoint), will retry in 6400 ms                                                                                               
AWS error '' (Unable to connect to endpoint), will retry in 12800 ms  

To delete the delay that you added previously.

sudo tc qdisc del dev wlp1s0 root

The default is 1000ms, but we can hit it a lot of we don't have direct
link to AWS (e.g. using VPN).
@edolstra edolstra merged commit 806291d into NixOS:master Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants