Add timeout for Gloo adjustable by env vars #43
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds more flexibility by allowing the developer to configure timeout for Gloo using a new env variable "GLOO_TIMEOUT".
The default value is 1800 seconds and thus we have to wait 30 minutes to get error if other required processes are not running. In experimental deployments we'd rather to set this to a smaller value to avoid 30 minutes waiting and see the timeout error sooner.
On the other hand, we need to set this to a larger value for debugging, otherwise the execution is halted and the timeout error occurs if the line by line debugging takes more than 30 minutes.