-
Notifications
You must be signed in to change notification settings - Fork 224
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
Make timeouts configurable for the PCP transport #2518
Labels
Feature
New features and improvements.
Comments
lucywyman
added a commit
to lucywyman/bolt
that referenced
this issue
Jan 9, 2021
This adds a `read-timeout` configuration setting for the PCP transport, which accepts an integer and passes the configuration to `OrchestratorClient.new()`. Although the option is an integer, it should be nil if a value is not provided, as there's no static default for `Net::Http::Persistent#read_timeout`, so we should not set one unless it's configured. This allows users to configure either failing quickly if the Orchestrator is busy (such as during code deploys), or to extend the time if they'd like to wait for the jobs to finish. `read-timeout` configures the length of time to wait for a response from the Orchestrator before raising a timeout error when making HTTP requests. !feature * **Add read-timeout configuration option for PCP transport** ([puppetlabs#2518](puppetlabs#2518)) Users can now configure a `read-timeout` for HTTP requests to the Orchestrator, which defines how long to wait for a response before raising a Timeout error.
lucywyman
added a commit
to lucywyman/bolt
that referenced
this issue
Jan 9, 2021
This adds a `read-timeout` configuration setting for the PCP transport, which accepts an integer and passes the configuration to `OrchestratorClient.new()`. Although the option is an integer, it should be nil if a value is not provided, as there's no static default for `Net::Http::Persistent#read_timeout`, so we should not set one unless it's configured. This allows users to configure either failing quickly if the Orchestrator is busy (such as during code deploys), or to extend the time if they'd like to wait for the jobs to finish. `read-timeout` configures the length of time to wait for a response from the Orchestrator before raising a timeout error when making HTTP requests. !feature * **Add read-timeout configuration option for PCP transport** ([puppetlabs#2518](puppetlabs#2518)) Users can now configure a `read-timeout` for HTTP requests to the Orchestrator, which defines how long to wait for a response before raising a Timeout error.
1 task
lucywyman
added a commit
to lucywyman/bolt
that referenced
this issue
Jan 9, 2021
This adds a `read-timeout` configuration setting for the PCP transport, which accepts an integer and passes the configuration to `OrchestratorClient.new()`. Although the option is an integer, it should be nil if a value is not provided, as there's no static default for `Net::Http::Persistent#read_timeout`, so we should not set one unless it's configured. This allows users to configure either failing quickly if the Orchestrator is busy (such as during code deploys), or to extend the time if they'd like to wait for the jobs to finish. `read-timeout` configures the length of time to wait for a response from the Orchestrator before raising a timeout error when making HTTP requests. !feature * **Add read-timeout configuration option for PCP transport** ([puppetlabs#2518](puppetlabs#2518)) Users can now configure a `read-timeout` for HTTP requests to the Orchestrator, which defines how long to wait for a response before raising a Timeout error.
1 task
lucywyman
added a commit
to lucywyman/bolt
that referenced
this issue
Jan 13, 2021
This adds a `read-timeout` configuration setting for the PCP transport, which accepts an integer and passes the configuration to `OrchestratorClient.new()`. Although the option is an integer, it should be nil if a value is not provided, as there's no static default for `Net::Http::Persistent#read_timeout`, so we should not set one unless it's configured. This allows users to configure either failing quickly if the Orchestrator is busy (such as during code deploys), or to extend the time if they'd like to wait for the jobs to finish. `read-timeout` configures the length of time to wait for a response from the Orchestrator before raising a timeout error when making HTTP requests. !feature * **Add read-timeout configuration option for PCP transport** ([puppetlabs#2518](puppetlabs#2518)) Users can now configure a `read-timeout` for HTTP requests to the Orchestrator, which defines how long to wait for a response before raising a Timeout error.
lucywyman
added a commit
to lucywyman/bolt
that referenced
this issue
Jan 14, 2021
This adds a `read-timeout` configuration setting for the PCP transport, which accepts an integer and passes the configuration to `OrchestratorClient.new()`. Although the option is an integer, it should be nil if a value is not provided, as there's no static default for `Net::Http::Persistent#read_timeout`, so we should not set one unless it's configured. This allows users to configure either failing quickly if the Orchestrator is busy (such as during code deploys), or to extend the time if they'd like to wait for the jobs to finish. `read-timeout` configures the length of time to wait for a response from the Orchestrator before raising a timeout error when making HTTP requests. !feature * **Add read-timeout configuration option for PCP transport** ([puppetlabs#2518](puppetlabs#2518)) Users can now configure a `read-timeout` for HTTP requests to the Orchestrator, which defines how long to wait for a response before raising a Timeout error.
beechtom
added a commit
that referenced
this issue
Jan 14, 2021
(GH-2518) Add read-timeout config for PCP transport
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use Case
Orchestrator may be slow to respond during a code deploy. Making the timeout easily configurable would provide a workaround.
example timeout
read-timeout
config for thepcp
transport, which configures how long to wait for any HTTP response from the Orchestrator.The text was updated successfully, but these errors were encountered: