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

feat: log how long tenant activation takes #4080

Merged
merged 4 commits into from
Apr 26, 2023
Merged

Conversation

koivunej
Copy link
Member

@koivunej koivunej commented Apr 26, 2023

Adds just a counter counting up from the creation to the tenant, logged after activation. Might help guide us with the investigation of #4025.

@koivunej koivunej requested review from a team as code owners April 26, 2023 08:09
@koivunej koivunej requested review from MMeent, problame and arssher and removed request for a team April 26, 2023 08:09
@koivunej koivunej enabled auto-merge (squash) April 26, 2023 08:18
Copy link
Contributor

@problame problame left a comment

Choose a reason for hiding this comment

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

In addition to the comments, I think we should have a global histogram metric for the timing as well, so we can start treating tenant activation time as a (soft) pageserver SLO and alert on it.

Would love to see the metric added in this PR as well, with the observe() call right next to the info!() line you added.

pageserver/src/tenant.rs Outdated Show resolved Hide resolved
pageserver/src/tenant.rs Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Apr 26, 2023

Test results for 3efeccb:


debug build: 219 tests run: 209 passed, 0 failed, 10 (full report)


release build: 219 tests run: 209 passed, 0 failed, 10 (full report)


@koivunej
Copy link
Member Author

I was hoping to get this in for the release since we have been sitting on the user-visible problem for offsite + week. I want to have something to make progress on the user-visible issue, you can follow-up with the metric for the next release.

@problame
Copy link
Contributor

Ok, will create an issue for the metric.

instead of using Debug impl which includes a full backtrace pointing to
few lines above, let's use the naming one (strum::IntoStaticStr).
@koivunej koivunej merged commit 381c8fc into main Apr 26, 2023
@koivunej koivunej deleted the log_activation_delay branch April 26, 2023 09:39
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.

3 participants