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

add sensors for metadata cache KIKIMR-20775 #1104

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

vporyadke
Copy link
Collaborator

Changelog entry

Added sensors for monitoring database metadata cache

Changelog category

  • Improvement

Additional information

...

Copy link

github-actions bot commented Jan 17, 2024

2024-01-18 17:30:42 UTC Pre-commit check for b18e315 has started.
2024-01-18 17:30:45 UTC Build linux-x86_64-release-asan is running...
🟢 2024-01-18 17:33:23 UTC Build successful.
2024-01-18 17:33:38 UTC Tests are running...
🔴 2024-01-18 18:17:06 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15886 15812 0 25 38 11

Copy link

github-actions bot commented Jan 17, 2024

2024-01-18 17:20:18 UTC Pre-commit check for b18e315 has started.
2024-01-18 17:20:20 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-01-18 17:22:52 UTC Build successful.
2024-01-18 17:23:06 UTC Tests are running...
🔴 2024-01-18 18:07:28 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
59936 50690 0 15 9219 12

@@ -44,6 +45,9 @@ class TDatabaseMetadataCache : public TActorBootstrapped<TDatabaseMetadataCache>
TActorId PublishActor;
TActorId SubscribeActor;
bool RequestInProgress = false;
::NMonitoring::TDynamicCounterPtr Counters;
static const inline TString HEALTHCHECK_REQUESTS_MADE_COUNTER = "DbMetadataCache/HealthCheckRequestsMade";
Copy link
Member

Choose a reason for hiding this comment

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

I think people are more used to terms like "hit" or "miss"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

True, but RequestsMade aren't cache misses in the traditional sense - they are made periodically by the cache itself. You don't think calling them cache misses would be misleading?

Copy link
Member

Choose a reason for hiding this comment

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

it would. okay then. maybe we should add some sensors on grpc side. is there any flag or status in response data which could tell us if the response was generated from a cache?

@vporyadke vporyadke merged commit 7eb49cb into ydb-platform:main Jan 19, 2024
2 of 4 checks passed
@niksaveliev niksaveliev mentioned this pull request Jan 29, 2024
@vitstn vitstn mentioned this pull request Jan 29, 2024
@starlinskiy starlinskiy mentioned this pull request Feb 12, 2024
@vitstn vitstn mentioned this pull request Feb 16, 2024
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.

2 participants