-
Notifications
You must be signed in to change notification settings - Fork 119
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
Increase default HTTP timeout to 180 seconds #1121
Increase default HTTP timeout to 180 seconds #1121
Conversation
cc @bamarni |
@@ -796,7 +796,7 @@ def _get_api_url(path): | |||
|
|||
def _get_timeout(): | |||
""" | |||
:returns: timout value for API calls | |||
:returns: timeout value for API calls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, feel free to update the PR to only keep this commit and I'll merge.
run linux integration tests |
@bamarni the test failure looks unrelated to me:
|
@adamtheturtle : Thanks for the PR. This timeout is a hard topic as increasing and decreasing it affect a lot of different scenarios. To give you some background and suggestions about this :
Personally I find 180 quite long, this would leave some commands hanging when a cluster is unreachable. To clarify also about this timeout, it is not a timeout for the whole request / response round trip, quoting the requests doc :
So I think we should leave it low by default, if there are specific requests which require a longer one it should be set to |
@bamarni Thank you for your considered response. I'm in a situation where the 5 second timeout is not enough. Given that https://jira.mesosphere.com/browse/DCOS_OSS-1956 exists as a bug, and I am blocked apart from the most hacky hacks - I'd really like to fix the issue that I'm facing. Options I can think of:
If https://jira.mesosphere.com/browse/DCOS_OSS-1956 is done and nothing else, I'd want the integration test suite to increase the limit for this command. |
@adamtheturtle : see #1126 |
See https://jira.mesosphere.com/browse/DCOS_OSS-1957
5 seconds is too slow to pull the universe on my current network connection.
As per the JIRA issue, this matches the documented default.
https://jira.mesosphere.com/browse/DCOS_OSS-1956 may cover using the value from the config but this is an improvement anyways, in my opinion.