-
Notifications
You must be signed in to change notification settings - Fork 735
lower priority for tablet metrics #28554
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3145,14 +3145,19 @@ void THive::RequestPoolsInformation() { | |||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| ui32 THive::GetEventPriority(IEventHandle* ev) { | ||||||||||||||||||||||
| // lower number = higher priority | ||||||||||||||||||||||
| switch (ev->GetTypeRewrite()) { | ||||||||||||||||||||||
| // requests from viewer/healthcheck - need to be answered fast so that hive is not reported as unresponsive | ||||||||||||||||||||||
| case TEvHive::EvRequestHiveInfo: | ||||||||||||||||||||||
| case TEvHive::EvRequestHiveDomainStats: | ||||||||||||||||||||||
| case TEvHive::EvRequestHiveNodeStats: | ||||||||||||||||||||||
| case TEvHive::EvRequestHiveStorageStats: | ||||||||||||||||||||||
| return 10; | ||||||||||||||||||||||
| default: | ||||||||||||||||||||||
| return 50; | ||||||||||||||||||||||
| // update metrics - there can be a lot of these, but they have no urgency | ||||||||||||||||||||||
| case TEvHive::EvTabletMetrics: | ||||||||||||||||||||||
| return 100; | ||||||||||||||||||||||
|
Comment on lines
3156
to
+3160
|
||||||||||||||||||||||
| default: | |
| return 50; | |
| // update metrics - there can be a lot of these, but they have no urgency | |
| case TEvHive::EvTabletMetrics: | |
| return 100; | |
| // update metrics - there can be a lot of these, but they have no urgency | |
| case TEvHive::EvTabletMetrics: | |
| return 100; | |
| default: | |
| return 50; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: может тогда в настройки унести, чтобы иметь возможность управления без перекомпиляции?