refactor code

This commit is contained in:
Матвей
2026-11-06 11:12:38 +03:00
parent c885462c04
commit 7fe48e38c1
50 changed files with 5674 additions and 564 deletions
+187 -96
View File
@@ -1,211 +1,302 @@
{
"samples": [
{
"time": "2026-11-06T06:18:43.857552+00:00",
"monotonic": 49295.73000975,
"time": "2026-11-06T07:05:52.042304+00:00",
"monotonic": 52123.885794541,
"phase": "baseline",
"firing": [],
"eligible": 9.0,
"bad": 4.0
"all_firing": [],
"queue_depth": 0.0,
"queue_age": 0.0,
"eligible": 17.0,
"bad": 16.0
},
{
"time": "2026-11-06T06:18:49.195942+00:00",
"monotonic": 49301.068345333,
"time": "2026-11-06T07:05:57.341477+00:00",
"monotonic": 52129.184913625,
"phase": "worker_stopped",
"firing": [],
"eligible": 9.0,
"bad": 4.0
"all_firing": [],
"queue_depth": 0.0,
"queue_age": 0.0,
"eligible": 17.0,
"bad": 16.0
},
{
"time": "2026-11-06T06:18:54.211236+00:00",
"monotonic": 49306.083585125,
"time": "2026-11-06T07:06:02.378900+00:00",
"monotonic": 52134.222306833,
"phase": "worker_stopped",
"firing": [],
"eligible": 9.0,
"bad": 4.0
"all_firing": [],
"queue_depth": 0.0,
"queue_age": 0.0,
"eligible": 17.0,
"bad": 16.0
},
{
"time": "2026-11-06T06:18:59.238528+00:00",
"monotonic": 49311.110847333,
"time": "2026-11-06T07:06:07.432741+00:00",
"monotonic": 52139.276099166,
"phase": "worker_stopped",
"firing": [],
"eligible": 9.0,
"bad": 4.0
"all_firing": [],
"queue_depth": 8.0,
"queue_age": 1.943177,
"eligible": 17.0,
"bad": 16.0
},
{
"time": "2026-11-06T06:19:04.276851+00:00",
"monotonic": 49316.149107833,
"time": "2026-11-06T07:06:12.488438+00:00",
"monotonic": 52144.331749416,
"phase": "worker_stopped",
"firing": [],
"eligible": 9.0,
"bad": 4.0
"all_firing": [],
"queue_depth": 8.0,
"queue_age": 6.984557,
"eligible": 17.0,
"bad": 16.0
},
{
"time": "2026-11-06T06:19:09.316299+00:00",
"monotonic": 49321.18853025,
"time": "2026-11-06T07:06:17.540313+00:00",
"monotonic": 52149.383570875,
"phase": "worker_stopped",
"firing": [],
"eligible": 9.0,
"bad": 4.0
"all_firing": [],
"queue_depth": 8.0,
"queue_age": 12.016421,
"eligible": 17.0,
"bad": 16.0
},
{
"time": "2026-11-06T06:19:14.361014+00:00",
"monotonic": 49326.233190833,
"time": "2026-11-06T07:06:22.591885+00:00",
"monotonic": 52154.435094083,
"phase": "worker_stopped",
"firing": [],
"eligible": 9.0,
"bad": 4.0
"all_firing": [],
"queue_depth": 8.0,
"queue_age": 17.061549,
"eligible": 17.0,
"bad": 16.0
},
{
"time": "2026-11-06T06:19:19.399292+00:00",
"monotonic": 49331.271419,
"time": "2026-11-06T07:06:27.629967+00:00",
"monotonic": 52159.473106666,
"phase": "worker_stopped",
"firing": [],
"eligible": 9.0,
"bad": 4.0
"all_firing": [],
"queue_depth": 8.0,
"queue_age": 22.089736,
"eligible": 17.0,
"bad": 16.0
},
{
"time": "2026-11-06T06:19:24.439389+00:00",
"monotonic": 49336.31146675,
"time": "2026-11-06T07:06:32.659343+00:00",
"monotonic": 52164.502452166,
"phase": "worker_stopped",
"firing": [],
"eligible": 9.0,
"bad": 4.0
"all_firing": [],
"queue_depth": 8.0,
"queue_age": 27.133281,
"eligible": 17.0,
"bad": 16.0
},
{
"time": "2026-11-06T06:19:29.469853+00:00",
"monotonic": 49341.341864875,
"time": "2026-11-06T07:06:37.707157+00:00",
"monotonic": 52169.550216041,
"phase": "worker_stopped",
"firing": [
"MessengerReadyBurnFast",
"MessengerReadyBurnSlow"
],
"eligible": 17.0,
"bad": 12.0
"all_firing": [
"MessengerReadyBurnFast",
"MessengerReadyBurnSlow"
],
"queue_depth": 8.0,
"queue_age": 32.172568,
"eligible": 25.0,
"bad": 24.0
},
{
"time": "2026-11-06T06:19:35.732760+00:00",
"monotonic": 49347.604713666,
"phase": "recovery",
"time": "2026-11-06T07:06:42.757662+00:00",
"monotonic": 52174.600673666,
"phase": "worker_stopped",
"firing": [
"MessengerReadyBurnFast",
"MessengerReadyBurnSlow"
],
"eligible": 17.0,
"bad": 12.0
"all_firing": [
"MessengerReadyBurnFast",
"MessengerReadyBurnSlow"
],
"queue_depth": 8.0,
"queue_age": 37.20728,
"eligible": 25.0,
"bad": 24.0
},
{
"time": "2026-11-06T06:19:40.766904+00:00",
"monotonic": 49352.638829583,
"phase": "recovery",
"time": "2026-11-06T07:06:47.807056+00:00",
"monotonic": 52179.650017583,
"phase": "worker_stopped",
"firing": [
"MessengerReadyBurnFast",
"MessengerReadyBurnSlow"
],
"eligible": 17.0,
"bad": 12.0
"all_firing": [
"MessengerReadyBurnFast",
"MessengerReadyBurnSlow"
],
"queue_depth": 8.0,
"queue_age": 42.242111,
"eligible": 25.0,
"bad": 24.0
},
{
"time": "2026-11-06T06:19:45.800827+00:00",
"monotonic": 49357.672704333,
"time": "2026-11-06T07:06:52.863166+00:00",
"monotonic": 52184.706071666,
"phase": "worker_stopped",
"firing": [
"MessengerReadyBurnSlow"
],
"all_firing": [
"MessengerQueueLag",
"MessengerReadyBurnSlow"
],
"queue_depth": 8.0,
"queue_age": 47.286266,
"eligible": 25.0,
"bad": 24.0
},
{
"time": "2026-11-06T07:06:57.078846+00:00",
"monotonic": 52188.921692166,
"phase": "recovery",
"firing": [
"MessengerReadyBurnSlow"
],
"eligible": 17.0,
"bad": 12.0
"all_firing": [
"MessengerQueueLag",
"MessengerReadyBurnSlow"
],
"queue_depth": 8.0,
"queue_age": 52.325419,
"eligible": 25.0,
"bad": 24.0
},
{
"time": "2026-11-06T06:19:50.839444+00:00",
"monotonic": 49362.711278166,
"time": "2026-11-06T07:07:02.119205+00:00",
"monotonic": 52193.962019291,
"phase": "recovery",
"firing": [
"MessengerReadyBurnSlow"
],
"eligible": 17.0,
"bad": 12.0
"all_firing": [
"MessengerQueueLag",
"MessengerReadyBurnSlow"
],
"queue_depth": 6.0,
"queue_age": 57.330259,
"eligible": 25.0,
"bad": 24.0
},
{
"time": "2026-11-06T06:19:55.882108+00:00",
"monotonic": 49367.753864791,
"time": "2026-11-06T07:07:07.168689+00:00",
"monotonic": 52199.011455875,
"phase": "recovery",
"firing": [
"MessengerReadyBurnSlow"
],
"eligible": 17.0,
"bad": 12.0
"all_firing": [
"MessengerReadyBurnSlow"
],
"queue_depth": 0.0,
"queue_age": 0.0,
"eligible": 25.0,
"bad": 24.0
},
{
"time": "2026-11-06T06:20:00.935125+00:00",
"monotonic": 49372.806871,
"time": "2026-11-06T07:07:12.218862+00:00",
"monotonic": 52204.061583875,
"phase": "recovery",
"firing": [
"MessengerReadyBurnSlow"
],
"eligible": 17.0,
"bad": 12.0
"all_firing": [
"MessengerReadyBurnSlow"
],
"queue_depth": 0.0,
"queue_age": 0.0,
"eligible": 25.0,
"bad": 24.0
},
{
"time": "2026-11-06T06:20:05.976123+00:00",
"monotonic": 49377.847798625,
"time": "2026-11-06T07:07:17.266525+00:00",
"monotonic": 52209.109195083,
"phase": "recovery",
"firing": [
"MessengerReadyBurnSlow"
],
"eligible": 17.0,
"bad": 12.0
"all_firing": [
"MessengerReadyBurnSlow"
],
"queue_depth": 0.0,
"queue_age": 0.0,
"eligible": 25.0,
"bad": 24.0
},
{
"time": "2026-11-06T06:20:11.006201+00:00",
"monotonic": 49382.877811166,
"time": "2026-11-06T07:07:22.324719+00:00",
"monotonic": 52214.16734425,
"phase": "recovery",
"firing": [
"MessengerReadyBurnSlow"
],
"eligible": 17.0,
"bad": 12.0
"all_firing": [
"MessengerReadyBurnSlow"
],
"queue_depth": 0.0,
"queue_age": 0.0,
"eligible": 25.0,
"bad": 24.0
},
{
"time": "2026-11-06T06:20:16.034665+00:00",
"monotonic": 49387.906272875,
"time": "2026-11-06T07:07:27.378443+00:00",
"monotonic": 52219.221010083,
"phase": "recovery",
"firing": [
"MessengerReadyBurnSlow"
],
"eligible": 17.0,
"bad": 12.0
},
{
"time": "2026-11-06T06:20:21.073601+00:00",
"monotonic": 49392.945128916,
"phase": "recovery",
"firing": [
"all_firing": [
"MessengerReadyBurnSlow"
],
"eligible": 17.0,
"bad": 12.0
"queue_depth": 0.0,
"queue_age": 0.0,
"eligible": 25.0,
"bad": 24.0
},
{
"time": "2026-11-06T06:20:26.112334+00:00",
"monotonic": 49397.983810916,
"time": "2026-11-06T07:07:32.422103+00:00",
"monotonic": 52224.264601875,
"phase": "recovery",
"firing": [],
"eligible": 17.0,
"bad": 12.0
"all_firing": [],
"queue_depth": 0.0,
"queue_age": 0.0,
"eligible": 25.0,
"bad": 24.0
}
],
"jobs": 8,
"accepted_at": {
"time": "2026-11-06T06:18:49.190891+00:00",
"monotonic": 49301.063291333
"time": "2026-11-06T07:05:57.337134+00:00",
"monotonic": 52129.180572833
},
"worker_started": {
"time": "2026-11-06T06:19:31.951591+00:00",
"monotonic": 49343.823643916
"time": "2026-11-06T07:06:53.291419+00:00",
"monotonic": 52185.134359875
},
"all_ready": {
"time": "2026-11-06T06:19:35.725614+00:00",
"monotonic": 49347.597564333
"time": "2026-11-06T07:06:57.073151+00:00",
"monotonic": 52188.915998458
},
"result": "PASS"
}