Skip to content

[Serve] Add http request latency - #32839

Merged
edoakes merged 2 commits into
ray-project:masterfrom
sihanwang41:http_proxy_latency
Mar 1, 2023
Merged

[Serve] Add http request latency#32839
edoakes merged 2 commits into
ray-project:masterfrom
sihanwang41:http_proxy_latency

Conversation

@sihanwang41

@sihanwang41 sihanwang41 commented Feb 25, 2023

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Add http request latency metrics.

Related issue number

Closes #32711

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Comment thread doc/source/serve/production-guide/monitoring.md Outdated
Comment thread python/ray/serve/_private/http_proxy.py Outdated
Comment thread python/ray/serve/_private/http_proxy.py Outdated
Comment thread python/ray/serve/tests/test_metrics.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you know why this test was passing before if these metrics didn't exist yet?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry I misunderstood, this is a different metric. Still want to know if it was passing or not running though

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is same metric, the reason it can pass before because we check whether the deployment_processing_latency_ms_sum string is inside the metrics blob.
For this change, I just want to make the test check more restrict.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah makes sense!

@architkulkarni architkulkarni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me pending Edward's suggestions, and it would be good to double check that the test is running in CI

Signed-off-by: Sihan Wang <sihanwang41@gmail.com>
Signed-off-by: Sihan Wang <sihanwang41@gmail.com>
- The number of non-200 HTTP responses returned by each deployment.
* - ``serve_http_request_latency_ms`` [*]
- * endpoint
- The end-to-end latency of HTTP requests (measured from the Serve HTTP proxy).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
- The end-to-end latency of HTTP requests (measured from the Serve HTTP proxy).
- A histogram of end-to-end latencies for HTTP requests (measured from the Serve HTTP proxy).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will stick to the original one since it is following our current words convention.

@sihanwang41

Copy link
Copy Markdown
Contributor Author

@edoakes ping for merge!

@edoakes
edoakes merged commit 0c02ae8 into ray-project:master Mar 1, 2023
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request Mar 21, 2023
Add http request latency metrics.

Signed-off-by: Jack He <jackhe2345@gmail.com>
edoakes pushed a commit to edoakes/ray that referenced this pull request Mar 22, 2023
Add http request latency metrics.

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
peytondmurray pushed a commit to peytondmurray/ray that referenced this pull request Mar 22, 2023
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
Add http request latency metrics.

Signed-off-by: elliottower <elliot@elliottower.com>
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 2023
Add http request latency metrics.

Signed-off-by: Jack He <jackhe2345@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Serve] No http latency metrics

5 participants