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

page_service: don't count time spent in Batcher towards smgr latency metrics #10075

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

problame
Copy link
Contributor

Problem

With pipelining enabled, the time a request spends in the batcher stage counts towards the smgr op latency.

If pipelining is disabled, that time is not accounted for.

In practice, this results in a jump in smgr getpage latencies in various dashboards and degrades the internal SLO.

Solution

In a similar vein to #10042 and with a similar rationale, this PR stops counting the time spent in batcher stage towards smgr op latency.

The smgr op latency metric is reduced to the actual execution time.

Time spent in batcher stage is tracked in a separate histogram.
I expect to remove that histogram after batching rollout is complete, but it will be helpful in the meantime to reason about the rollout.

@problame problame requested a review from a team as a code owner December 10, 2024 19:33
@problame problame requested review from erikgrinaker and VladLazar and removed request for erikgrinaker December 10, 2024 19:33
Copy link

github-actions bot commented Dec 10, 2024

7073 tests run: 6758 passed, 0 failed, 315 skipped (full report)


Flaky tests (4)

Postgres 17

Postgres 15

Postgres 14

Code coverage* (full report)

  • functions: 31.4% (8334 of 26533 functions)
  • lines: 47.7% (65661 of 137637 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
1e6af7e at 2024-12-11T09:06:52.889Z :recycle:

@problame problame force-pushed the problame/exclude-time-in-batching-from-smgr-latency branch from e5d710f to 1e6af7e Compare December 11, 2024 07:56
@problame problame added this pull request to the merge queue Dec 11, 2024
Merged via the queue into main with commit 9ae980b Dec 11, 2024
82 checks passed
@problame problame deleted the problame/exclude-time-in-batching-from-smgr-latency branch December 11, 2024 13:39
VladLazar pushed a commit that referenced this pull request Dec 11, 2024
…metrics (#10075)

## Problem

With pipelining enabled, the time a request spends in the batcher stage
counts towards the smgr op latency.

If pipelining is disabled, that time is not accounted for.

In practice, this results in a jump in smgr getpage latencies in various
dashboards and degrades the internal SLO.

## Solution

In a similar vein to #10042 and with a similar rationale, this PR stops
counting the time spent in batcher stage towards smgr op latency.

The smgr op latency metric is reduced to the actual execution time.

Time spent in batcher stage is tracked in a separate histogram.
I expect to remove that histogram after batching rollout is complete,
but it will be helpful in the meantime to reason about the rollout.
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.

2 participants