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

Optionally overwrite timeout for Logcache::Client #2800

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

philippthun
Copy link
Member

@philippthun philippthun commented May 10, 2022

The timeout used for the Logcache GRPC client was hard-coded to 250 seconds. With this change the timeout can be (optionally) configured to a different value.

Running "cf push" results in requests to /v3/processes/:guid/stats. But in case Logcache is unavailable, "cf push" can actually continue/succeed without showing the requested data. The default timeout resulted in long-running requests without adding much value.

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

The timeout used for the Logcache GRPC client was hard-coded to 250
seconds. With this change the timeout can be (optionally) configured to
a different value.

Running "cf push" results in requests to /v3/processes/:guid/stats. But
in case Logcache is unavailable, "cf push" can actually continue/succeed
without showing the requested data. The default timeout resulted in
long-running requests without adding much value.
@philippthun philippthun marked this pull request as ready for review May 10, 2022 16:12
Copy link
Member

@moleske moleske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This configuration needs a capi-release pr to go with it

-michael & @sethboyles

@@ -6,7 +6,9 @@ class Client
MAX_LIMIT = 1000
DEFAULT_LIMIT = 100

def initialize(host:, port:, client_ca_path:, client_cert_path:, client_key_path:, tls_subject_name:)
def initialize(host:, port:, timeout:, client_ca_path:, client_cert_path:, client_key_path:, tls_subject_name:)
timeout ||= 250
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This default should be specified in capi-release

@philippthun philippthun self-assigned this Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants