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 streamlookup monitoring (dynamic counters) #10280

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

yumkam
Copy link
Collaborator

@yumkam yumkam commented Oct 10, 2024

Changelog entry

Adds dq_tasks/operation={query_id}/Lookup* sensors

Changelog category

  • Not for changelog (changelog entry is not required)

Additional information

...

@yumkam yumkam force-pushed the add-streamlookup-monitoring branch from d0208d1 to 4967983 Compare October 10, 2024 10:33
Copy link

github-actions bot commented Oct 10, 2024

2024-10-10 10:35:09 UTC Pre-commit check linux-x86_64-relwithdebinfo for 5a23df8 has started.
2024-10-10 10:35:19 UTC Artifacts will be uploaded here
2024-10-10 10:38:22 UTC ya make is running...
🔴 2024-10-10 10:47:09 UTC Build failed, see the logs.

Copy link

github-actions bot commented Oct 10, 2024

2024-10-10 10:35:50 UTC Pre-commit check linux-x86_64-release-asan for 5a23df8 has started.
2024-10-10 10:36:00 UTC Artifacts will be uploaded here
2024-10-10 10:39:07 UTC ya make is running...
2024-10-10 10:49:20 UTC Check cancelled

Copy link

github-actions bot commented Oct 10, 2024

2024-10-10 10:55:03 UTC Pre-commit check linux-x86_64-relwithdebinfo for f88c8b6 has started.
2024-10-10 10:55:14 UTC Artifacts will be uploaded here
2024-10-10 10:58:22 UTC ya make is running...
2024-10-10 11:04:35 UTC Check cancelled

Copy link

github-actions bot commented Oct 10, 2024

2024-10-10 10:55:09 UTC Pre-commit check linux-x86_64-release-asan for f88c8b6 has started.
2024-10-10 10:55:20 UTC Artifacts will be uploaded here
2024-10-10 10:58:16 UTC ya make is running...
2024-10-10 11:04:40 UTC Check cancelled

Copy link

github-actions bot commented Oct 10, 2024

2024-10-10 11:07:53 UTC Pre-commit check linux-x86_64-relwithdebinfo for c30cba5 has started.
2024-10-10 11:08:52 UTC Artifacts will be uploaded here
2024-10-10 11:12:28 UTC ya make is running...
🔴 2024-10-10 11:25:30 UTC Build failed, see the logs.

Copy link

github-actions bot commented Oct 10, 2024

2024-10-10 11:08:08 UTC Pre-commit check linux-x86_64-release-asan for c30cba5 has started.
2024-10-10 11:08:39 UTC Artifacts will be uploaded here
2024-10-10 11:12:07 UTC ya make is running...
🔴 2024-10-10 11:18:44 UTC Build failed, see the logs.

@yumkam yumkam force-pushed the add-streamlookup-monitoring branch from 74474f3 to 49c4fdc Compare October 10, 2024 11:28
Copy link

github-actions bot commented Oct 10, 2024

2024-10-10 11:29:51 UTC Pre-commit check linux-x86_64-release-asan for 57ad24a has started.
2024-10-10 11:30:02 UTC Artifacts will be uploaded here
2024-10-10 11:33:10 UTC ya make is running...
2024-10-10 11:35:49 UTC Check cancelled

StreamLookupTransformCount is same as GenericLookupCount
StreamLookupTransformKeys is same as GenericLookupKeys
StreamLookupTransformTimeMs is almost same as GenericLookupAnswerTimeMs
(plus expenses on actor message passing, and it expected to be small)
Copy link

github-actions bot commented Oct 10, 2024

2024-10-10 11:31:51 UTC Pre-commit check linux-x86_64-relwithdebinfo for 57ad24a has started.
2024-10-10 11:32:02 UTC Artifacts will be uploaded here
2024-10-10 11:35:01 UTC ya make is running...
2024-10-10 11:35:46 UTC Check cancelled

Copy link

github-actions bot commented Oct 10, 2024

2024-10-10 11:38:55 UTC Pre-commit check linux-x86_64-relwithdebinfo for 8cfc3a4 has started.
2024-10-10 11:38:59 UTC Artifacts will be uploaded here
2024-10-10 11:42:01 UTC ya make is running...
2024-10-10 11:42:50 UTC Check cancelled

Copy link

github-actions bot commented Oct 10, 2024

2024-10-10 11:39:19 UTC Pre-commit check linux-x86_64-release-asan for 8cfc3a4 has started.
2024-10-10 11:39:29 UTC Artifacts will be uploaded here
2024-10-10 11:42:26 UTC ya make is running...
2024-10-10 11:42:49 UTC Check cancelled

Copy link

github-actions bot commented Oct 10, 2024

2024-10-10 11:46:06 UTC Pre-commit check linux-x86_64-relwithdebinfo for c470553 has started.
2024-10-10 11:46:16 UTC Artifacts will be uploaded here
2024-10-10 11:49:24 UTC ya make is running...
2024-10-10 12:01:44 UTC Check cancelled

Copy link

github-actions bot commented Oct 10, 2024

2024-10-10 11:46:06 UTC Pre-commit check linux-x86_64-release-asan for c470553 has started.
2024-10-10 11:46:17 UTC Artifacts will be uploaded here
2024-10-10 11:49:17 UTC ya make is running...
2024-10-10 12:01:44 UTC Check cancelled

Copy link

github-actions bot commented Oct 11, 2024

2024-10-11 10:01:58 UTC Pre-commit check linux-x86_64-relwithdebinfo for 0981fda has started.
2024-10-11 10:02:09 UTC Artifacts will be uploaded here
2024-10-11 10:05:16 UTC ya make is running...
2024-10-11 10:21:56 UTC Check cancelled

Copy link

github-actions bot commented Oct 11, 2024

2024-10-11 10:02:11 UTC Pre-commit check linux-x86_64-release-asan for 0981fda has started.
2024-10-11 10:02:21 UTC Artifacts will be uploaded here
2024-10-11 10:05:18 UTC ya make is running...
2024-10-11 10:22:04 UTC Check cancelled

LruHits = taskCounters->GetCounter("StreamLookupTransformLruHits");
LruMiss = taskCounters->GetCounter("StreamLookupTransformLruMiss");
CpuTimeUs = taskCounters->GetCounter("StreamLookupTransformCpuTimeUs");
Batches = taskCounters->GetCounter("StreamLookupTransformBatchCount");
Copy link
Collaborator

Choose a reason for hiding this comment

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

длинноватые у тебя метки. лучше покороче именовать. это и на трафик влияет и можно упереться в лимиты на длину метки в соломоне

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

s/Transform// -- да; вообще говоря, можно ещё s/Lru//, но будет чуть слишком лаконично; на чем ещё сэкономить мне не очевидно (s/(Str|Gen)\w*(Lookup)/$1$2/? но тоже как-то слишком)

Copy link
Collaborator

Choose a reason for hiding this comment

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

StreamLookup -> SL
Transform можно удалить

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Совсем радикальный вариант:

            Count = taskCounters->GetCounter("GLReqs");
            Keys = taskCounters->GetCounter("GLKeys");
            ResultChunks = taskCounters->GetCounter("GLChunks");
            ResultRows = taskCounters->GetCounter("GLRows");
            ResultBytes = taskCounters->GetCounter("GLBytes");
            AnswerTime = taskCounters->GetCounter("GLAnswerMs");
            CpuTime = taskCounters->GetCounter("GLCpuUs");
....
        LruHits = taskCounters->GetCounter("SLHits");
        LruMiss = taskCounters->GetCounter("SLMiss");
        CpuTimeUs = taskCounters->GetCounter("SLCpuUs");
        Batches = taskCounters->GetCounter("SLBatches");

но как-то это выглядит совсем уже шифровкой

Copy link

github-actions bot commented Oct 11, 2024

2024-10-11 10:24:47 UTC Pre-commit check linux-x86_64-relwithdebinfo for cf49caa has started.
2024-10-11 10:25:55 UTC Artifacts will be uploaded here
2024-10-11 10:29:38 UTC ya make is running...
2024-10-11 10:43:52 UTC Check cancelled

Copy link

github-actions bot commented Oct 11, 2024

2024-10-11 10:24:53 UTC Pre-commit check linux-x86_64-release-asan for cf49caa has started.
2024-10-11 10:25:03 UTC Artifacts will be uploaded here
2024-10-11 10:28:00 UTC ya make is running...
2024-10-11 10:43:59 UTC Check cancelled

Copy link

github-actions bot commented Oct 11, 2024

2024-10-11 10:45:50 UTC Pre-commit check linux-x86_64-relwithdebinfo for 1ba8370 has started.
2024-10-11 10:46:00 UTC Artifacts will be uploaded here
2024-10-11 10:46:36 UTC Check cancelled

Copy link

github-actions bot commented Oct 11, 2024

2024-10-11 10:48:08 UTC Pre-commit check linux-x86_64-release-asan for c2286d4 has started.
2024-10-11 10:48:19 UTC Artifacts will be uploaded here
2024-10-11 10:51:27 UTC ya make is running...
2024-10-11 10:53:13 UTC Check cancelled

Copy link

github-actions bot commented Oct 11, 2024

2024-10-11 10:48:09 UTC Pre-commit check linux-x86_64-relwithdebinfo for c2286d4 has started.
2024-10-11 10:48:19 UTC Artifacts will be uploaded here
2024-10-11 10:51:19 UTC ya make is running...
2024-10-11 10:53:14 UTC Check cancelled

Copy link

github-actions bot commented Oct 11, 2024

2024-10-11 10:55:37 UTC Pre-commit check linux-x86_64-relwithdebinfo for 285a496 has started.
2024-10-11 10:55:46 UTC Artifacts will be uploaded here
2024-10-11 10:58:43 UTC ya make is running...
🟡 2024-10-11 12:04:05 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
74813 60851 0 6 13852 104

2024-10-11 12:11:15 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-10-11 12:22:40 UTC Tests successful.

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
106 (only retried tests) 7 0 0 0 99

🟢 2024-10-11 12:22:47 UTC Build successful.
🟢 2024-10-11 12:23:07 UTC ydbd size 2.8 GiB changed* by +59.9 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 623120d merge: 285a496 diff diff %
ydbd size 3 013 623 696 Bytes 3 013 685 040 Bytes +59.9 KiB +0.002%
ydbd stripped size 477 784 664 Bytes 477 793 432 Bytes +8.6 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

github-actions bot commented Oct 11, 2024

2024-10-11 10:56:03 UTC Pre-commit check linux-x86_64-release-asan for 285a496 has started.
2024-10-11 10:56:40 UTC Artifacts will be uploaded here
2024-10-11 11:00:09 UTC ya make is running...
🟡 2024-10-11 12:25:34 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11999 11776 0 55 64 104

🟢 2024-10-11 12:26:35 UTC Build successful.
🟡 2024-10-11 12:27:07 UTC ydbd size 5.7 GiB changed* by +165.3 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 623120d merge: 285a496 diff diff %
ydbd size 6 107 211 192 Bytes 6 107 380 424 Bytes +165.3 KiB +0.003%
ydbd stripped size 1 521 658 128 Bytes 1 521 685 904 Bytes +27.1 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

github-actions bot commented Oct 11, 2024

2024-10-11 12:53:52 UTC Pre-commit check linux-x86_64-release-asan for 61b1194 has started.
2024-10-11 12:53:56 UTC Artifacts will be uploaded here
2024-10-11 12:56:52 UTC ya make is running...
🟡 2024-10-11 14:40:00 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
12002 11780 0 63 56 103

🟢 2024-10-11 14:41:03 UTC Build successful.
🟡 2024-10-11 14:41:59 UTC ydbd size 5.7 GiB changed* by +163.8 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 7bae47f merge: 61b1194 diff diff %
ydbd size 6 107 238 816 Bytes 6 107 406 528 Bytes +163.8 KiB +0.003%
ydbd stripped size 1 521 686 352 Bytes 1 521 713 872 Bytes +26.9 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

github-actions bot commented Oct 11, 2024

2024-10-11 12:54:19 UTC Pre-commit check linux-x86_64-relwithdebinfo for 61b1194 has started.
2024-10-11 12:54:23 UTC Artifacts will be uploaded here
2024-10-11 12:57:23 UTC ya make is running...
🟡 2024-10-11 14:05:26 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
74811 60848 0 3 13858 102

2024-10-11 14:12:18 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-10-11 14:23:46 UTC Tests successful.

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
110 (only retried tests) 10 0 0 1 99

🟢 2024-10-11 14:23:53 UTC Build successful.
🟢 2024-10-11 14:24:12 UTC ydbd size 2.8 GiB changed* by +59.2 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 7bae47f merge: 61b1194 diff diff %
ydbd size 3 013 597 896 Bytes 3 013 658 472 Bytes +59.2 KiB +0.002%
ydbd stripped size 477 782 232 Bytes 477 790 808 Bytes +8.4 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

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