[#374] Add inner-ring event metrics #405

Merged
fyrchik merged 1 commit from ale64bit/frostfs-node:feature/374-inner-ring-metrics into master 2023-05-31 10:11:49 +00:00
Member

Signed-off-by: Alejandro Lopez a.lopez@yadro.com
Close #374

Signed-off-by: Alejandro Lopez <a.lopez@yadro.com> Close #374
ale64bit added 1 commit 2023-05-29 09:05:38 +00:00
[#374] Add inner-ring event metrics
All checks were successful
ci/woodpecker/pr/pre-commit Pipeline was successful
0f7d3219b8
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
ale64bit requested review from storage-core-committers 2023-05-29 09:06:01 +00:00
ale64bit requested review from storage-core-developers 2023-05-29 09:06:01 +00:00
dstepanov-yadro approved these changes 2023-05-29 09:52:29 +00:00
fyrchik approved these changes 2023-05-29 10:16:27 +00:00
@ -0,0 +9,4 @@
func SubmitEvent(pool *ants.Pool, metrics metrics.Register, eventLabel string, eventProcessor func() bool) error {
return pool.Submit(func() {
start := time.Now()
Owner

Why did you decide to have start here and not before we submit the task in pool?
Just asking.

Why did you decide to have `start` here and not _before_ we submit the task in pool? Just asking.
Author
Member

well, because my intention was to measure the actual event processor duration,
excluding whatever wait time it spends on the pool. The pool wait time is statistically unrelated to the event processor time for specific event types, and it can be measured separately if you think it's interesting.

well, because my intention was to measure the actual event processor duration, excluding whatever wait time it spends on the pool. The pool wait time is statistically unrelated to the event processor time for specific event types, and it can be measured separately if you think it's interesting.
acid-ant approved these changes 2023-05-30 07:46:30 +00:00
fyrchik approved these changes 2023-05-31 10:11:44 +00:00
fyrchik merged commit ebcc8afbee into master 2023-05-31 10:11:49 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#405
No description provided.