Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

fleetctl request timeout too low #743

Closed
bcwaldon opened this issue Aug 4, 2014 · 8 comments · Fixed by #748
Closed

fleetctl request timeout too low #743

bcwaldon opened this issue Aug 4, 2014 · 8 comments · Fixed by #748

Comments

@bcwaldon
Copy link
Contributor

bcwaldon commented Aug 4, 2014

When using fleetctl remotely, the default request timeout of 1s is typically too low. This default should be raised to something higher than a typical round-trip from a laptop on wifi into AWS.

@developerinlondon
Copy link

i still get timeout issues later on setting it to 5 like you suggested @bcwaldon
i get a whole bunch of go errors from fleet when deis tries to start the units.

@bcwaldon
Copy link
Contributor Author

bcwaldon commented Aug 5, 2014

@developerinlondon I'm more than happy to help, but I need a bit more information than that.

@developerinlondon
Copy link

@bcwaldon
Copy link
Contributor Author

bcwaldon commented Aug 5, 2014

@developerinlondon could you run that same command with --debug on, capturing the output in another gist? Are you running over an SSH tunnel? if so, how long does it take on average to establish an SSH connection?

@developerinlondon
Copy link

I actually dumped the cluster after i couldnt get it to work yesterday, but let me recreate it again and get you the --debug.

was using eval ssh-agent -s && /usr/bin/ssh-add ~/.ssh/<mykey>

normally ssh to any of the machines were pretty quick, but i noticed last time i had debug on it would make a whole bunch of etcd calls and the more units i have there the more etcd calls it would make.

anyways, debug output to follow shortly.

@bcwaldon
Copy link
Contributor Author

bcwaldon commented Aug 5, 2014

@developerinlondon The high number of etcd requests was identified and mostly fixed in #735. Expect that to be available in v0.6.2 which should be cut tonight/tomorrow.

@developerinlondon
Copy link

for some reason fleetctl seems to be querying 127.0.0.1 always even if the FLEETCTL_TUNNEL is set elsewhere. is this expected?

https://gist.github.com/developerinlondon/468d4586687aaf27ba39

@bcwaldon
Copy link
Contributor Author

bcwaldon commented Aug 8, 2014

@developerinlondon it's using your SSH tunnel to hit 127.0.0.1 from the other side. If you need to configure a custom etcd endpoint, use the --endpoint flag.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants