-
Notifications
You must be signed in to change notification settings - Fork 1k
/
anomalies_metadata.json
632 lines (632 loc) · 18.7 KB
/
anomalies_metadata.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
[
{
"metadataUuid": "ffac2c96-2db6-401d-a2e0-4f5767962cc2",
"category": "SQL",
"type": "SQL_QUERY_LATENCY_INCREASE",
"title": "SQL query latency increase detected",
"mainGraphs": [
{
"name": "query_latency",
"filters": {
"universeUuid": [],
"queryId": [],
"dbId": []
}
}
],
"defaultSettings": {
"splitMode": "NONE",
"splitType": "NONE",
"splitCount": 0,
"returnAggregatedValue": false,
"aggregatedValueFunction": "AVG"
},
"rcaGuidelines": [
{
"possibleCause": "Load increase",
"possibleCauseDescription": "RPS for this query or overall RPS increased significantly and DB is not able to process increased load",
"troubleshootingRecommendations": [
{
"recommendation": "Check RPS graph for this query",
"supportingGraphs": [
{
"name": "query_rps",
"filters": {
"universeUuid": [],
"queryId": [],
"dbId": []
}
}
]
},
{
"recommendation": "Check YSQL RPS graph",
"supportingGraphs": [
{
"name": "ysql_server_rpc_per_second",
"filters": {
"universeUuid": []
}
}
]
}
]
},
{
"possibleCause": "Response size or queried tables sizes increased significantly",
"possibleCauseDescription": "DB have to process more data to process each request, hence latency grows",
"troubleshootingRecommendations": [
{
"recommendation": "Check Average Rows graph for the query",
"supportingGraphs": [
{
"name": "query_rows_avg",
"filters": {
"universeUuid": [],
"queryId": [],
"dbId": []
}
}
]
},
{
"recommendation": "Check Table SST/WAL size graphs for tables, referenced in the query"
}
]
},
{
"possibleCause": "Query execution plan changed",
"possibleCauseDescription": "DB updated query execution plan based on the data statistics collected for requested tables",
"troubleshootingRecommendations": [
{
"recommendation": "Check query execution plan via EXPLAIN ANALYSE"
}
]
},
{
"possibleCause": "DB internal queues contention",
"possibleCauseDescription": "RPC queues are growing and DB is not able to process all the requests on time. Typically all queries latency will grow.",
"troubleshootingRecommendations": [
{
"recommendation": "Check RPC Queue Size graph",
"supportingGraphs": [
{
"name": "tserver_rpc_queue_size_tserver",
"filters": {
"universeUuid": []
}
}
]
}
]
},
{
"possibleCause": "Resource contention",
"possibleCauseDescription": "DB nodes face CPU, Memory or Disk IOPS/throughput limits. Typically all queries latency will grow.",
"troubleshootingRecommendations": [
{
"recommendation": "Check CPU, Memory and Disk IOPS/throughput graphs",
"supportingGraphs": [
{
"name": "cpu_usage",
"filters": {
"universeUuid": []
}
},
{
"name": "disk_iops",
"filters": {
"universeUuid": []
}
},
{
"name": "disk_bytes_per_second_per_node",
"filters": {
"universeUuid": []
}
},
{
"name": "lsm_rocksdb_memory_rejections",
"filters": {
"universeUuid": []
}
}
]
}
]
},
{
"possibleCause": "Infra issues",
"possibleCauseDescription": "Network latency between DB nodes increased, Disk IOPS/throughput degraded, Network partitioning or other outage",
"troubleshootingRecommendations": [
{
"recommendation": "Check network latency between the DB nodes"
},
{
"recommendation": "Check all DB nodes are up and running"
},
{
"recommendation": "Check Network graphs for anomaly"
}
]
},
{
"possibleCause": "Clock skew increased",
"possibleCauseDescription": "DB nodes clock became out of sync, which slows down queries processing",
"troubleshootingRecommendations": [
{
"recommendation": "Check Clock Skew graph",
"supportingGraphs": [
{
"name": "node_clock_skew",
"filters": {
"universeUuid": []
}
}
]
}
]
},
{
"possibleCause": "ASH events ratio for the query changed",
"possibleCauseDescription": "Various query processing step times can change due to various reasons.",
"troubleshootingRecommendations": [
{
"recommendation": "Check ASH graph for this query",
"supportingGraphs": [
{
"name": "active_session_history_tserver",
"filters": {
"universeUuid": [],
"queryId": []
}
},
{
"name": "active_session_history_ysql",
"filters": {
"universeUuid": [],
"queryId": []
}
}
]
}
]
}
]
},
{
"metadataUuid": "1d3ad67b-fdf8-4766-9bf8-6c516f3475fb",
"category": "SQL",
"type": "SQL_QUERY_LOCK_CONTENTION",
"title": "SQL query lock contention detected",
"mainGraphs": [
{
"name": "active_session_history_tserver",
"filters": {
"universeUuid": [],
"queryId": []
}
}
],
"defaultSettings": {
"splitMode": "NONE",
"splitType": "NONE",
"splitCount": 0,
"returnAggregatedValue": false,
"aggregatedValueFunction": "AVG"
},
"rcaGuidelines": [
{
"possibleCause": "Load increase",
"possibleCauseDescription": "RPS for this query or overall RPS increased significantly - more conflicts between queries",
"troubleshootingRecommendations": [
{
"recommendation": "Check RPS graph for this query",
"supportingGraphs": [
{
"name": "query_rps",
"filters": {
"universeUuid": [],
"queryId": [],
"dbId": []
}
}
]
},
{
"recommendation": "Check YSQL RPS graph",
"supportingGraphs": [
{
"name": "ysql_server_rpc_per_second",
"filters": {
"universeUuid": []
}
}
]
}
]
},
{
"possibleCause": "Query execution time increased",
"possibleCauseDescription": "Query execution takes longer, which is causing more conflicts between queries",
"troubleshootingRecommendations": [
{
"recommendation": "Check Query Latency graph",
"supportingGraphs": [
{
"name": "query_latency",
"filters": {
"universeUuid": [],
"queryId": [],
"dbId": []
}
}
]
}
]
},
{
"possibleCause": "ASH events ratio for the query changed",
"possibleCauseDescription": "Various query processing step times can change due to various reasons.",
"troubleshootingRecommendations": [
{
"recommendation": "Check ASH graph for this query",
"supportingGraphs": [
{
"name": "active_session_history_tserver",
"filters": {
"universeUuid": [],
"queryId": []
}
},
{
"name": "active_session_history_ysql",
"filters": {
"universeUuid": [],
"queryId": []
}
}
]
}
]
}
]
},
{
"metadataUuid": "f9d72305-e793-4ea5-9195-5504bbe93048",
"category": "NODE",
"type": "HOT_NODE_CPU",
"title": "Uneven CPU usage distribution across DB nodes",
"mainGraphs": [
{
"name": "cpu_usage",
"filters": {
"universeUuid": []
}
}
],
"defaultSettings": {
"splitMode": "TOP",
"splitType": "NODE",
"splitCount": 3,
"returnAggregatedValue": true,
"aggregatedValueFunction": "AVG"
},
"rcaGuidelines": [
{
"possibleCause": "DB node(s) are processing more queries",
"possibleCauseDescription": "Particular DB node or set of nodes are processing significantly more requests, that the other nodes",
"troubleshootingRecommendations": [
{
"recommendation": "Check YSQL RPC distribution across DB nodes",
"supportingGraphs": [
{
"name": "ysql_server_rpc_per_second",
"filters": {
"universeUuid": []
}
}
]
},
{
"recommendation": "Check TServer read/write requests distribution across DB nodes",
"supportingGraphs": [
{
"name": "tserver_rpcs_per_sec_by_universe",
"filters": {
"universeUuid": []
}
}
]
}
]
},
{
"possibleCause": "DB internal tasks",
"possibleCauseDescription": "Some DB background activities are consuming CPU unevenly",
"troubleshootingRecommendations": [
{
"recommendation": "Check TServer/Master logs for evidence of background activities"
}
]
},
{
"possibleCause": "3rd party processes",
"possibleCauseDescription": "Some process(es) are running on the DB nodes which consumes CPU",
"troubleshootingRecommendations": [
{
"recommendation": "Check top command output on the affected DB nodes"
}
]
}
]
},
{
"metadataUuid": "0b83923d-c712-47b4-ae64-59f79f5117ca",
"category": "NODE",
"type": "HOT_NODE_READS_WRITES",
"title": "Uneven TServer Reads/Writes distribution across DB nodes",
"mainGraphs": [
{
"name": "tserver_rpcs_per_sec_by_universe",
"filters": {
"universeUuid": []
}
}
],
"defaultSettings": {
"splitMode": "TOP",
"splitType": "NODE",
"splitCount": 3,
"returnAggregatedValue": true,
"aggregatedValueFunction": "AVG"
},
"rcaGuidelines": [
{
"possibleCause": "DB node(s) are storing data, accessed more often",
"possibleCauseDescription": "Data for particular table/set of tables is partitioned across DB nodes the way that particular node gets more read/write requests consistently",
"troubleshootingRecommendations": [
{
"recommendation": "Check reads/writes for particular tables too see - which table is causing uneven distribution"
},
{
"recommendation": "Check affected tables partitioning logic - maybe there is a better way to spread load across DB nodes"
}
]
},
{
"possibleCause": "Load balancing is not in progress or load is not balanced",
"possibleCauseDescription": "We can turn off load balancing during some DB operations. Also, load balancing may not be able to catch up on changed data, etc.",
"troubleshootingRecommendations": [
{
"recommendation": "Check load balancing status in Master UI"
}
]
},
{
"possibleCause": "ASH events ratio for the query changed",
"possibleCauseDescription": "Various query processing step times can change due to various reasons.",
"troubleshootingRecommendations": [
{
"recommendation": "Check ASH graph per query/client",
"supportingGraphs": [
{
"name": "active_session_history_tserver",
"filters": {
"universeUuid": []
}
},
{
"name": "active_session_history_ysql",
"filters": {
"universeUuid": []
}
}
]
}
]
}
]
},
{
"metadataUuid": "17a0c2e0-5823-43b6-a940-3714c5b0f8f8",
"category": "NODE",
"type": "HOT_NODE_YSQL_QUERIES",
"title": "Uneven distribution of YSQL queries across DB nodes",
"mainGraphs": [
{
"name": "ysql_server_rpc_per_second",
"filters": {
"universeUuid": []
}
}
],
"defaultSettings": {
"splitMode": "TOP",
"splitType": "NODE",
"splitCount": 3,
"returnAggregatedValue": true,
"aggregatedValueFunction": "AVG"
},
"rcaGuidelines": [
{
"possibleCause": "DB clients prefer particular set of nodes",
"possibleCauseDescription": "DB clients have more connections to particular set of nodes, or are sending more queries to particular set of nodes",
"troubleshootingRecommendations": [
{
"recommendation": "Check if connecition count is even across DB nodes",
"supportingGraphs": [
{
"name": "ysql_connections",
"filters": {
"universeUuid": []
}
},
{
"name": "ysql_connections_per_sec",
"filters": {
"universeUuid": []
}
}
]
},
{
"recommendation": "Check query stats UI to see - which query/set of queries is distributed unevenly"
}
]
},
{
"possibleCause": "ASH events ratio for the query changed",
"possibleCauseDescription": "Particular clients started to send more queries, etc.",
"troubleshootingRecommendations": [
{
"recommendation": "Check ASH graph per query/client",
"supportingGraphs": [
{
"name": "active_session_history_tserver",
"filters": {
"universeUuid": []
}
},
{
"name": "active_session_history_ysql",
"filters": {
"universeUuid": []
},
"groupBy": ["clientNodeIp"]
}
]
}
]
}
]
},
{
"metadataUuid": "e1bd486c-1823-48e5-97f9-3641ec685055",
"category": "NODE",
"type": "SLOW_DISKS",
"title": "DB node(s) disk IO too high",
"mainGraphs": [
{
"name": "disk_io_time",
"filters": {
"universeUuid": []
}
},
{
"name": "disk_io_queue_depth",
"filters": {
"universeUuid": []
}
}
],
"defaultSettings": {
"splitMode": "TOP",
"splitType": "NODE",
"splitCount": 3,
"returnAggregatedValue": true,
"aggregatedValueFunction": "AVG"
},
"rcaGuidelines": [
{
"possibleCause": "IOPS/throughput limit reached",
"possibleCauseDescription": "DB node disk IO approaches provisioned IOPS/throughput level or device limitations",
"troubleshootingRecommendations": [
{
"recommendation": "Check IOPS/throughput metrics",
"supportingGraphs": [
{
"name": "disk_iops",
"filters": {
"universeUuid": []
}
},
{
"name": "disk_bytes_per_second_per_node",
"filters": {
"universeUuid": []
}
}
]
}
]
},
{
"possibleCause": "Excessive compactions",
"possibleCauseDescription": "DB may run too many compaction operations, which consume IOPS/throughput",
"troubleshootingRecommendations": [
{
"recommendation": "Check compaction metrics",
"supportingGraphs": [
{
"name": "lsm_rocksdb_compaction",
"filters": {
"universeUuid": []
}
},
{
"name": "lsm_rocksdb_compaction_tasks",
"filters": {
"universeUuid": []
}
}
]
}
]
}
]
},
{
"metadataUuid": "2355a3d0-c4ca-42d1-929d-4a0fbfb4ddd7",
"category": "NODE",
"type": "HOT_NODE_DATA",
"title": "Table data is spread unevenly across DB nodes",
"mainGraphs": [
{
"name": "table_size",
"filters": {
"universeUuid": [],
"dbName": [],
"tableId": [],
"tableName": []
}
},
{
"name": "table_sst_size",
"filters": {
"universeUuid": [],
"dbName": [],
"tableId": [],
"tableName": []
}
},
{
"name": "table_wal_size",
"filters": {
"universeUuid": [],
"dbName": [],
"tableId": [],
"tableName": []
}
}
],
"defaultSettings": {
"splitMode": "TOP",
"splitType": "NODE",
"splitCount": 3,
"returnAggregatedValue": true,
"aggregatedValueFunction": "AVG"
},
"rcaGuidelines": [
{
"possibleCause": "Suboptimal table partitioning logic",
"possibleCauseDescription": "Particular range/hash key has significantly more data, than the other",
"troubleshootingRecommendations": [
{
"recommendation": "Check amount of rows for each range/hash value"
}
]
}
]
}
]