Skip to content

Optionally overwrite timeout for Logcache::Client#2800

Open
philippthun wants to merge 1 commit intocloudfoundry:mainfrom
sap-contributions:log-cache-timeout
Open

Optionally overwrite timeout for Logcache::Client#2800
philippthun wants to merge 1 commit intocloudfoundry:mainfrom
sap-contributions:log-cache-timeout

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


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.

3 participants