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

network delays when fetching providers #16804

Closed
jbardin opened this issue Nov 30, 2017 · 3 comments
Closed

network delays when fetching providers #16804

jbardin opened this issue Nov 30, 2017 · 3 comments
Assignees

Comments

@jbardin
Copy link
Member

jbardin commented Nov 30, 2017

Some users have reported reproducible network issues when fetching providers. These have manifested as network timeouts, or just extremely slow throughput.

See #15798 and #15481

#16751 may also be related, but that is happening when connecting to the registry.

#16448 is more intermittent, and manifests as a TLS handshake timeout.

In each of these cases curl still appears to work as expected, which leads me to believe that the difference is related to the Go network stack. The 2 primary pieces of concern are the the Dialer and the http2 transport.

  • curl is using http/1.1 by default, where as Terraform is using http2.
  • curl is using the host resolver, and Terraform uses the go resolver.
  • "Happy eyeballs" is not enabled by default in Terraform.

I tested various routes by spinning up hosts in most global AWS regions, and a few DO regions. None of the hosts had any trouble fetching modules or provider releases, nor were any particularly slow. Those hosts were also dual stack when possible.

What I did find was that null routing the ipv6 packets caused the exact same delay patterns as shown in the comments of #15798. Since this is the broken network configuration that rfc6555 was written for, enabling the dual stack dialer in Terraform should fix this particular issue.

@jbardin jbardin self-assigned this Nov 30, 2017
@jbardin
Copy link
Member Author

jbardin commented Nov 30, 2017

Confirmed that enabling "happy eyeballs" in Terraform fixes the broken ipv6 issue as expected.
I'll get a patch upstream asap.

@jbardin
Copy link
Member Author

jbardin commented Mar 30, 2018

Since the only outstanding related issues seem to have been traced to internet provider and network problem I'm going to close this one as complete.

@jbardin jbardin closed this as completed Mar 30, 2018
@ghost
Copy link

ghost commented Apr 4, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant