serving icon indicating copy to clipboard operation
serving copied to clipboard

[WIP] Add a flag to QueueProxy to enable reporting the request latency in header

Open lichenran1234 opened this issue 3 years ago • 6 comments

[WIP] Add a flag to QueueProxy to enable reporting the request latency in header

Proposed Changes

Add a flag to QueueProxy to enable reporting the request_latency/app_request_latency in the response header. They are already emitted by QueueProxy as Prometheus metrics:

  • app_request_latency is user container latency
  • request_latency is user container latency + queue latency

Some Knative users run Knative with an extra layer on top of the Knative networking layer, so the architecture looks like: extra layer (could be a custom load balancer) -> Knative networking layer -> Knative activator -> QueueProxy -> user container

With this change, those users can measure the latency between their custom load balancer and QueueProxy (i.e. the additional overhead imposed by their system).

lichenran1234 avatar Jun 01 '22 18:06 lichenran1234

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Jun 01 '22 18:06 google-cla[bot]

CLA Not Signed

  • :x: - login: @lichenran1234 / name: Chenran Li . The commit (151655b4727f2e1af8c762b07412e20a4f879547, bd2f26458d2021f31b8f21da98adc6a2299f3ba0, 9fb82965a757df7a3ba47ed0f6d341ca9ee1d9dc, 604e61a9639cdebf7ebfe2b410ab3f0fa01e7a27, 257030fc3a02c6a7d98df5575e4fe3509ec16049, 56521caf41b4ca5b30b50d10a6f409ce3beeb065, 65b9b542248da5cd9f4153b3c97f440eeee10954, 62e1512d2ed75bad05a7f62587e0a4ee113c2b6c) is not authorized under a signed CLA. Please click here to be authorized. For further assistance with EasyCLA, please submit a support request ticket.

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: lichenran1234 To complete the pull request process, please assign nak3 after the PR has been reviewed. You can assign the PR to them by writing /assign @nak3 in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

knative-prow[bot] avatar Jun 01 '22 18:06 knative-prow[bot]

Hi @lichenran1234. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

knative-prow[bot] avatar Jun 01 '22 18:06 knative-prow[bot]

@lichenran1234: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

knative-prow-robot avatar Jul 19 '22 09:07 knative-prow-robot

@dprotaso should this PR be closed as well based on closing the issue for inactivity - https://github.com/knative/serving/issues/12908#issuecomment-1203086546

nader-ziada avatar Aug 02 '22 19:08 nader-ziada

This Pull Request is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen with /reopen. Mark as fresh by adding the comment /remove-lifecycle stale.

github-actions[bot] avatar Nov 01 '22 01:11 github-actions[bot]

@dprotaso should this PR be closed as well based on closing the issue for inactivity - #12908 (comment)

dprotaso avatar Nov 09 '22 14:11 dprotaso