tricache 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +87 -1371
  3. package/dashboards/tricache-alerts.yaml +54 -0
  4. package/dashboards/tricache-grafana.json +548 -0
  5. package/dist/cache-service-5MZXFIGK.js +12 -0
  6. package/dist/cache-service-CyLdpo77.d.ts +871 -0
  7. package/dist/{chunk-EUGYR7KR.js → chunk-6PQ5MOWR.js} +2871 -490
  8. package/dist/chunk-7RV5ZVBB.js +1023 -0
  9. package/dist/{chunk-X5AXHPVD.js → chunk-LJ5QJB5O.js} +90 -5
  10. package/dist/chunk-QNU7B43J.js +687 -0
  11. package/dist/chunk-UGD4VEPD.js +138 -0
  12. package/dist/chunk-XZL45ABR.js +108 -0
  13. package/dist/chunk-ZTSWCFYO.js +135 -0
  14. package/dist/cli.cjs +2790 -471
  15. package/dist/cli.d.ts +1 -0
  16. package/dist/cli.js +103 -5
  17. package/dist/dashboard/index.cjs +1065 -0
  18. package/dist/dashboard/index.d.ts +183 -0
  19. package/dist/dashboard/index.js +22 -0
  20. package/dist/drizzle/index.cjs +2553 -470
  21. package/dist/drizzle/index.d.ts +3 -1
  22. package/dist/drizzle/index.js +1 -1
  23. package/dist/edge/index.cjs +1498 -0
  24. package/dist/edge/index.d.ts +127 -0
  25. package/dist/edge/index.js +1109 -0
  26. package/dist/hono-DQRS1Xd7.d.ts +370 -0
  27. package/dist/http/index.cjs +2926 -562
  28. package/dist/http/index.d.ts +109 -23
  29. package/dist/http/index.js +220 -72
  30. package/dist/index.cjs +6936 -2518
  31. package/dist/index.d.ts +547 -30
  32. package/dist/index.js +104 -5
  33. package/dist/murmur3-CMGw9PbV.d.ts +98 -0
  34. package/dist/nestjs/index.cjs +2494 -463
  35. package/dist/nestjs/index.d.ts +3 -1
  36. package/dist/nestjs/index.js +6 -3
  37. package/dist/next/index.cjs +2517 -483
  38. package/dist/next/index.d.ts +4 -2
  39. package/dist/next/index.js +14 -10
  40. package/dist/prisma/index.d.ts +3 -1
  41. package/dist/serialize-worker.cjs +5 -4
  42. package/dist/serialize-worker.js +1 -1
  43. package/dist/{cache-service-D8tIXmzb.d.ts → types-B6krw64X.d.ts} +596 -659
  44. package/package.json +34 -6
  45. package/src/adapters/auto-pipeliner.ts +206 -0
  46. package/src/adapters/node-redis.ts +370 -0
  47. package/src/cache-service.ts +1339 -402
  48. package/src/cli.ts +120 -2
  49. package/src/codec.ts +72 -0
  50. package/src/cross-region.ts +245 -0
  51. package/src/dashboard/handler.ts +392 -0
  52. package/src/dashboard/html.ts +594 -0
  53. package/src/dashboard/index.ts +195 -0
  54. package/src/dashboard/types.ts +96 -0
  55. package/src/disk-tier.ts +449 -47
  56. package/src/drizzle/index.ts +86 -86
  57. package/src/edge/adapters/cloudflare-do.ts +130 -0
  58. package/src/edge/adapters/cloudflare-kv.ts +115 -0
  59. package/src/edge/adapters/upstash.ts +143 -0
  60. package/src/edge/cache.ts +797 -0
  61. package/src/edge/crypto.ts +182 -0
  62. package/src/edge/hono.ts +203 -0
  63. package/src/edge/index.ts +37 -0
  64. package/src/edge/types.ts +230 -0
  65. package/src/edge/utils/base64.ts +63 -0
  66. package/src/edge/utils/murmur3.ts +179 -0
  67. package/src/encryption.ts +127 -5
  68. package/src/http/express.ts +195 -0
  69. package/src/http/fastify.ts +260 -0
  70. package/src/http/index.ts +39 -258
  71. package/src/http/utils.ts +92 -0
  72. package/src/index.ts +149 -47
  73. package/src/ipc-telemetry.ts +481 -0
  74. package/src/latency-watchdog.ts +282 -0
  75. package/src/nestjs/decorators.ts +161 -161
  76. package/src/nestjs/index.ts +23 -23
  77. package/src/nestjs/tricache.module.ts +104 -104
  78. package/src/nestjs/tricache.store.ts +97 -97
  79. package/src/nestjs/types.ts +79 -79
  80. package/src/next/cache-handler.ts +12 -9
  81. package/src/next/index.ts +37 -37
  82. package/src/next/isr-handler.ts +105 -105
  83. package/src/next/types.ts +130 -130
  84. package/src/remote-snapshot.ts +153 -0
  85. package/src/serialize-worker.ts +120 -120
  86. package/src/sigv4-snapshot-adapter.ts +260 -0
  87. package/src/smart-memory-cache.ts +91 -8
  88. package/src/types.ts +290 -2
  89. package/src/utils/cgroup.ts +100 -0
  90. package/src/utils/tracing.ts +54 -0
  91. package/src/wasm/bloom-filter-wasm.ts +109 -102
  92. package/src/worker-pool.ts +299 -299
  93. package/src/wtiny-lfu.ts +624 -0
  94. package/dist/cache-service-5GATUYAK.js +0 -7
  95. package/dist/chunk-UBSR5UYA.js +0 -0
@@ -0,0 +1,54 @@
1
+ apiVersion: monitoring.coreos.com/v1
2
+ kind: PrometheusRule
3
+ metadata:
4
+ name: tricache-alerts
5
+ labels:
6
+ role: alert-rules
7
+ spec:
8
+ groups:
9
+ - name: tricache.rules
10
+ rules:
11
+ # Alert 1: OOM Guard Watermark Breached
12
+ - alert: TriCacheOOMWatermarkBreached
13
+ expr: rate(tricache_oom_evictions_total[1m]) > 0
14
+ for: 1m
15
+ labels:
16
+ severity: warning
17
+ annotations:
18
+ summary: "TriCache emergency OOM evictions detected on instance {{ $labels.instance }}"
19
+ description: "Node.js heap memory has breached the safe watermark, triggering emergency L1 cache evictions. Consider increasing container memory or lowering l1MaxBytes."
20
+
21
+ # Alert 2: L2 Redis Circuit Breaker Tripped / Invalidation Errors
22
+ - alert: TriCacheCircuitBreakerOpen
23
+ expr: rate(tricache_cross_region_errors_total[2m]) > 5 or rate(tricache_backplane_sent_total[1m]) == 0 and rate(tricache_sets_total[1m]) > 10
24
+ for: 2m
25
+ labels:
26
+ severity: critical
27
+ annotations:
28
+ summary: "TriCache L2/Backplane degradation or circuit breaker open on {{ $labels.instance }}"
29
+ description: "Cache operations are falling back to L1/disk due to persistent L2 network errors or cross-region relay failures."
30
+
31
+ # Alert 3: Cache Hit Ratio Degraded
32
+ - alert: TriCacheHitRatioDegraded
33
+ expr: |
34
+ 100 * (1 - (
35
+ sum by (namespace, instance) (rate(tricache_fetches_total[5m]))
36
+ /
37
+ clamp_min(sum by (namespace, instance) (rate(tricache_gets_total[5m])), 1)
38
+ )) < 60
39
+ for: 5m
40
+ labels:
41
+ severity: warning
42
+ annotations:
43
+ summary: "TriCache hit ratio fell below 60% on {{ $labels.instance }} (namespace: {{ $labels.namespace }})"
44
+ description: "Cache hit ratio is critically low over a 5-minute window. Downstream database or service may experience excessive load."
45
+
46
+ # Alert 4: Stampede / Singleflight Queue Saturated
47
+ - alert: TriCacheSingleflightSaturated
48
+ expr: rate(tricache_stampedes_prevented_total[1m]) > 100
49
+ for: 2m
50
+ labels:
51
+ severity: info
52
+ annotations:
53
+ summary: "High volume of coalesced cache stampedes on {{ $labels.instance }}"
54
+ description: "Singleflight guard is coalescing over 100 in-flight requests/second. Indicates a thundering herd on popular expiring keys."
@@ -0,0 +1,548 @@
1
+ {
2
+ "annotations": {
3
+ "list": [
4
+ {
5
+ "builtIn": 1,
6
+ "datasource": "-- Grafana --",
7
+ "enable": true,
8
+ "hide": true,
9
+ "name": "Annotations & Alerts",
10
+ "type": "dashboard"
11
+ }
12
+ ]
13
+ },
14
+ "editable": true,
15
+ "fiscalYearStartMonth": 0,
16
+ "graphTooltip": 1,
17
+ "id": null,
18
+ "links": [],
19
+ "liveNow": false,
20
+ "panels": [
21
+ {
22
+ "collapsed": false,
23
+ "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 },
24
+ "id": 100,
25
+ "title": "🎯 Fleet Overview & Hit Ratios",
26
+ "type": "row"
27
+ },
28
+ {
29
+ "datasource": "${datasource}",
30
+ "fieldConfig": {
31
+ "defaults": {
32
+ "color": { "mode": "thresholds" },
33
+ "mappings": [],
34
+ "max": 100,
35
+ "min": 0,
36
+ "thresholds": {
37
+ "mode": "absolute",
38
+ "steps": [
39
+ { "color": "red", "value": null },
40
+ { "color": "yellow", "value": 75 },
41
+ { "color": "green", "value": 90 }
42
+ ]
43
+ },
44
+ "unit": "percent"
45
+ },
46
+ "overrides": []
47
+ },
48
+ "gridPos": { "h": 4, "w": 4, "x": 0, "y": 1 },
49
+ "id": 1,
50
+ "options": {
51
+ "colorMode": "value",
52
+ "graphMode": "area",
53
+ "justifyMode": "auto",
54
+ "orientation": "auto",
55
+ "reduceOptions": {
56
+ "calcs": ["lastNotNull"],
57
+ "fields": "",
58
+ "values": false
59
+ },
60
+ "textMode": "auto"
61
+ },
62
+ "pluginVersion": "10.0.0",
63
+ "targets": [
64
+ {
65
+ "datasource": "${datasource}",
66
+ "editorMode": "code",
67
+ "expr": "100 * (1 - (sum(rate(tricache_fetches_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval])) / clamp_min(sum(rate(tricache_gets_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval])), 0.0001)))",
68
+ "legendFormat": "Global Hit Rate",
69
+ "range": true,
70
+ "refId": "A"
71
+ }
72
+ ],
73
+ "title": "Overall Cache Hit Ratio",
74
+ "type": "stat"
75
+ },
76
+ {
77
+ "datasource": "${datasource}",
78
+ "fieldConfig": {
79
+ "defaults": {
80
+ "color": { "mode": "thresholds" },
81
+ "mappings": [],
82
+ "max": 100,
83
+ "min": 0,
84
+ "thresholds": {
85
+ "mode": "absolute",
86
+ "steps": [
87
+ { "color": "blue", "value": null }
88
+ ]
89
+ },
90
+ "unit": "percent"
91
+ },
92
+ "overrides": []
93
+ },
94
+ "gridPos": { "h": 4, "w": 4, "x": 4, "y": 1 },
95
+ "id": 2,
96
+ "options": {
97
+ "colorMode": "value",
98
+ "graphMode": "none",
99
+ "justifyMode": "auto",
100
+ "orientation": "auto",
101
+ "reduceOptions": {
102
+ "calcs": ["lastNotNull"],
103
+ "fields": "",
104
+ "values": false
105
+ },
106
+ "textMode": "auto"
107
+ },
108
+ "targets": [
109
+ {
110
+ "datasource": "${datasource}",
111
+ "expr": "100 * (sum(rate(tricache_l1_hits_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval])) / clamp_min(sum(rate(tricache_gets_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval])), 0.0001))",
112
+ "legendFormat": "L1 RAM Hit Rate",
113
+ "refId": "A"
114
+ }
115
+ ],
116
+ "title": "L1 RAM Hit Ratio",
117
+ "type": "stat"
118
+ },
119
+ {
120
+ "datasource": "${datasource}",
121
+ "fieldConfig": {
122
+ "defaults": {
123
+ "color": { "mode": "thresholds" },
124
+ "mappings": [],
125
+ "max": 100,
126
+ "min": 0,
127
+ "thresholds": {
128
+ "mode": "absolute",
129
+ "steps": [
130
+ { "color": "purple", "value": null }
131
+ ]
132
+ },
133
+ "unit": "percent"
134
+ },
135
+ "overrides": []
136
+ },
137
+ "gridPos": { "h": 4, "w": 4, "x": 8, "y": 1 },
138
+ "id": 3,
139
+ "options": {
140
+ "colorMode": "value",
141
+ "graphMode": "none",
142
+ "justifyMode": "auto",
143
+ "orientation": "auto",
144
+ "reduceOptions": {
145
+ "calcs": ["lastNotNull"],
146
+ "fields": "",
147
+ "values": false
148
+ },
149
+ "textMode": "auto"
150
+ },
151
+ "targets": [
152
+ {
153
+ "datasource": "${datasource}",
154
+ "expr": "100 * (sum(rate(tricache_disk_hits_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval])) / clamp_min(sum(rate(tricache_gets_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval])), 0.0001))",
155
+ "legendFormat": "Disk Hit Rate",
156
+ "refId": "A"
157
+ }
158
+ ],
159
+ "title": "L1.5 Disk Hit Ratio",
160
+ "type": "stat"
161
+ },
162
+ {
163
+ "datasource": "${datasource}",
164
+ "fieldConfig": {
165
+ "defaults": {
166
+ "color": { "mode": "thresholds" },
167
+ "mappings": [],
168
+ "max": 100,
169
+ "min": 0,
170
+ "thresholds": {
171
+ "mode": "absolute",
172
+ "steps": [
173
+ { "color": "orange", "value": null }
174
+ ]
175
+ },
176
+ "unit": "percent"
177
+ },
178
+ "overrides": []
179
+ },
180
+ "gridPos": { "h": 4, "w": 4, "x": 12, "y": 1 },
181
+ "id": 4,
182
+ "options": {
183
+ "colorMode": "value",
184
+ "graphMode": "none",
185
+ "justifyMode": "auto",
186
+ "orientation": "auto",
187
+ "reduceOptions": {
188
+ "calcs": ["lastNotNull"],
189
+ "fields": "",
190
+ "values": false
191
+ },
192
+ "textMode": "auto"
193
+ },
194
+ "targets": [
195
+ {
196
+ "datasource": "${datasource}",
197
+ "expr": "100 * (sum(rate(tricache_l2_hits_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval])) / clamp_min(sum(rate(tricache_gets_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval])), 0.0001))",
198
+ "legendFormat": "L2 Redis Hit Rate",
199
+ "refId": "A"
200
+ }
201
+ ],
202
+ "title": "L2 Redis Hit Ratio",
203
+ "type": "stat"
204
+ },
205
+ {
206
+ "datasource": "${datasource}",
207
+ "fieldConfig": {
208
+ "defaults": {
209
+ "color": { "mode": "thresholds" },
210
+ "mappings": [],
211
+ "thresholds": {
212
+ "mode": "absolute",
213
+ "steps": [
214
+ { "color": "green", "value": null }
215
+ ]
216
+ },
217
+ "unit": "short"
218
+ },
219
+ "overrides": []
220
+ },
221
+ "gridPos": { "h": 4, "w": 4, "x": 16, "y": 1 },
222
+ "id": 5,
223
+ "options": {
224
+ "colorMode": "value",
225
+ "graphMode": "area",
226
+ "justifyMode": "auto",
227
+ "orientation": "auto",
228
+ "reduceOptions": {
229
+ "calcs": ["lastNotNull"],
230
+ "fields": "",
231
+ "values": false
232
+ },
233
+ "textMode": "auto"
234
+ },
235
+ "targets": [
236
+ {
237
+ "datasource": "${datasource}",
238
+ "expr": "sum(increase(tricache_stampedes_prevented_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval]))",
239
+ "legendFormat": "Prevented Stampedes",
240
+ "refId": "A"
241
+ }
242
+ ],
243
+ "title": "Stampedes Prevented",
244
+ "type": "stat"
245
+ },
246
+ {
247
+ "datasource": "${datasource}",
248
+ "fieldConfig": {
249
+ "defaults": {
250
+ "color": { "mode": "thresholds" },
251
+ "mappings": [],
252
+ "thresholds": {
253
+ "mode": "absolute",
254
+ "steps": [
255
+ { "color": "blue", "value": null }
256
+ ]
257
+ },
258
+ "unit": "bytes"
259
+ },
260
+ "overrides": []
261
+ },
262
+ "gridPos": { "h": 4, "w": 4, "x": 20, "y": 1 },
263
+ "id": 6,
264
+ "options": {
265
+ "colorMode": "value",
266
+ "graphMode": "none",
267
+ "justifyMode": "auto",
268
+ "orientation": "auto",
269
+ "reduceOptions": {
270
+ "calcs": ["lastNotNull"],
271
+ "fields": "",
272
+ "values": false
273
+ },
274
+ "textMode": "auto"
275
+ },
276
+ "targets": [
277
+ {
278
+ "datasource": "${datasource}",
279
+ "expr": "sum(tricache_compression_bytes_saved{namespace=~\"$namespace\", instance=~\"$pod\"})",
280
+ "legendFormat": "Compression Saved",
281
+ "refId": "A"
282
+ }
283
+ ],
284
+ "title": "Msgpack Compression Saved",
285
+ "type": "stat"
286
+ },
287
+ {
288
+ "datasource": "${datasource}",
289
+ "fieldConfig": {
290
+ "defaults": {
291
+ "custom": {
292
+ "drawStyle": "line",
293
+ "fillOpacity": 15,
294
+ "gradientMode": "opacity",
295
+ "lineInterpolation": "smooth",
296
+ "lineWidth": 2,
297
+ "stacking": { "group": "A", "mode": "normal" }
298
+ },
299
+ "unit": "reqps"
300
+ },
301
+ "overrides": [
302
+ { "matcher": { "id": "byName", "options": "L1 RAM Hits" }, "properties": [{ "id": "color", "value": { "fixedColor": "super-light-blue", "mode": "fixed" } }] },
303
+ { "matcher": { "id": "byName", "options": "L1.5 Disk Hits" }, "properties": [{ "id": "color", "value": { "fixedColor": "purple", "mode": "fixed" } }] },
304
+ { "matcher": { "id": "byName", "options": "L2 Redis Hits" }, "properties": [{ "id": "color", "value": { "fixedColor": "orange", "mode": "fixed" } }] },
305
+ { "matcher": { "id": "byName", "options": "DB Misses" }, "properties": [{ "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } }] }
306
+ ]
307
+ },
308
+ "gridPos": { "h": 8, "w": 14, "x": 0, "y": 5 },
309
+ "id": 7,
310
+ "options": {
311
+ "legend": { "calcs": ["mean", "max"], "displayMode": "table", "placement": "bottom" },
312
+ "tooltip": { "mode": "multi", "sort": "desc" }
313
+ },
314
+ "targets": [
315
+ {
316
+ "datasource": "${datasource}",
317
+ "expr": "sum(rate(tricache_l1_hits_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval]))",
318
+ "legendFormat": "L1 RAM Hits",
319
+ "refId": "A"
320
+ },
321
+ {
322
+ "datasource": "${datasource}",
323
+ "expr": "sum(rate(tricache_disk_hits_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval]))",
324
+ "legendFormat": "L1.5 Disk Hits",
325
+ "refId": "B"
326
+ },
327
+ {
328
+ "datasource": "${datasource}",
329
+ "expr": "sum(rate(tricache_l2_hits_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval]))",
330
+ "legendFormat": "L2 Redis Hits",
331
+ "refId": "C"
332
+ },
333
+ {
334
+ "datasource": "${datasource}",
335
+ "expr": "sum(rate(tricache_fetches_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval]))",
336
+ "legendFormat": "DB Misses",
337
+ "refId": "D"
338
+ }
339
+ ],
340
+ "title": "Throughput by Tier (Stacked ops/sec)",
341
+ "type": "timeseries"
342
+ },
343
+ {
344
+ "datasource": "${datasource}",
345
+ "fieldConfig": {
346
+ "defaults": {
347
+ "custom": {
348
+ "drawStyle": "line",
349
+ "fillOpacity": 10,
350
+ "lineInterpolation": "smooth",
351
+ "lineWidth": 2
352
+ },
353
+ "unit": "ops"
354
+ },
355
+ "overrides": []
356
+ },
357
+ "gridPos": { "h": 8, "w": 10, "x": 14, "y": 5 },
358
+ "id": 8,
359
+ "options": {
360
+ "legend": { "calcs": ["mean", "max"], "displayMode": "table", "placement": "bottom" },
361
+ "tooltip": { "mode": "multi", "sort": "desc" }
362
+ },
363
+ "targets": [
364
+ {
365
+ "datasource": "${datasource}",
366
+ "expr": "sum(rate(tricache_stampedes_prevented_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval]))",
367
+ "legendFormat": "Coalesced Inflight Requests/s",
368
+ "refId": "A"
369
+ },
370
+ {
371
+ "datasource": "${datasource}",
372
+ "expr": "sum(rate(tricache_swr_revalidations_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval]))",
373
+ "legendFormat": "SWR Async Refreshes/s",
374
+ "refId": "B"
375
+ }
376
+ ],
377
+ "title": "Singleflight Coalescing & SWR Background Rate",
378
+ "type": "timeseries"
379
+ },
380
+ {
381
+ "collapsed": false,
382
+ "gridPos": { "h": 1, "w": 24, "x": 0, "y": 13 },
383
+ "id": 101,
384
+ "title": "🧠 Memory Footprint, OOM Guard & Invalidation Backplane",
385
+ "type": "row"
386
+ },
387
+ {
388
+ "datasource": "${datasource}",
389
+ "fieldConfig": {
390
+ "defaults": {
391
+ "custom": { "drawStyle": "line", "fillOpacity": 15, "lineWidth": 2 },
392
+ "unit": "bytes"
393
+ },
394
+ "overrides": []
395
+ },
396
+ "gridPos": { "h": 7, "w": 8, "x": 0, "y": 14 },
397
+ "id": 9,
398
+ "options": {
399
+ "legend": { "displayMode": "list", "placement": "bottom" },
400
+ "tooltip": { "mode": "single" }
401
+ },
402
+ "targets": [
403
+ {
404
+ "datasource": "${datasource}",
405
+ "expr": "sum(tricache_l1_size_bytes{namespace=~\"$namespace\", instance=~\"$pod\"}) by (instance)",
406
+ "legendFormat": "L1 RAM Heap ({{instance}})",
407
+ "refId": "A"
408
+ }
409
+ ],
410
+ "title": "L1 Memory Used Bytes by Pod",
411
+ "type": "timeseries"
412
+ },
413
+ {
414
+ "datasource": "${datasource}",
415
+ "fieldConfig": {
416
+ "defaults": {
417
+ "color": { "mode": "thresholds" },
418
+ "custom": { "drawStyle": "bars", "fillOpacity": 80, "lineWidth": 1 },
419
+ "thresholds": {
420
+ "mode": "absolute",
421
+ "steps": [
422
+ { "color": "green", "value": null },
423
+ { "color": "red", "value": 1 }
424
+ ]
425
+ },
426
+ "unit": "short"
427
+ },
428
+ "overrides": []
429
+ },
430
+ "gridPos": { "h": 7, "w": 8, "x": 8, "y": 14 },
431
+ "id": 10,
432
+ "options": {
433
+ "legend": { "displayMode": "list", "placement": "bottom" },
434
+ "tooltip": { "mode": "single" }
435
+ },
436
+ "targets": [
437
+ {
438
+ "datasource": "${datasource}",
439
+ "expr": "sum(rate(tricache_oom_evictions_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval]))",
440
+ "legendFormat": "OOM Emergency Evictions/s",
441
+ "refId": "A"
442
+ }
443
+ ],
444
+ "title": "OOM Emergency Purge Rounds",
445
+ "type": "timeseries"
446
+ },
447
+ {
448
+ "datasource": "${datasource}",
449
+ "fieldConfig": {
450
+ "defaults": {
451
+ "custom": { "drawStyle": "line", "fillOpacity": 10, "lineWidth": 2 },
452
+ "unit": "msgps"
453
+ },
454
+ "overrides": []
455
+ },
456
+ "gridPos": { "h": 7, "w": 8, "x": 16, "y": 14 },
457
+ "id": 11,
458
+ "options": {
459
+ "legend": { "displayMode": "table", "placement": "bottom" },
460
+ "tooltip": { "mode": "multi" }
461
+ },
462
+ "targets": [
463
+ {
464
+ "datasource": "${datasource}",
465
+ "expr": "sum(rate(tricache_backplane_sent_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval]))",
466
+ "legendFormat": "Backplane Invalidation Sent",
467
+ "refId": "A"
468
+ },
469
+ {
470
+ "datasource": "${datasource}",
471
+ "expr": "sum(rate(tricache_backplane_received_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval]))",
472
+ "legendFormat": "Backplane Invalidation Received",
473
+ "refId": "B"
474
+ },
475
+ {
476
+ "datasource": "${datasource}",
477
+ "expr": "sum(rate(tricache_cross_region_received_total{namespace=~\"$namespace\", instance=~\"$pod\"}[$__rate_interval]))",
478
+ "legendFormat": "Cross-Region Mesh Received",
479
+ "refId": "C"
480
+ }
481
+ ],
482
+ "title": "Invalidation Backplane & Cross-Region Mesh",
483
+ "type": "timeseries"
484
+ }
485
+ ],
486
+ "refresh": "5s",
487
+ "schemaVersion": 38,
488
+ "style": "dark",
489
+ "tags": ["tricache", "cache", "redis", "l1", "performance", "observability"],
490
+ "templating": {
491
+ "list": [
492
+ {
493
+ "current": {},
494
+ "hide": 0,
495
+ "includeAll": false,
496
+ "label": "Data Source",
497
+ "name": "datasource",
498
+ "options": [],
499
+ "query": "prometheus",
500
+ "refresh": 1,
501
+ "type": "datasource"
502
+ },
503
+ {
504
+ "allValue": ".*",
505
+ "current": { "selected": true, "text": "All", "value": "$__all" },
506
+ "datasource": "${datasource}",
507
+ "definition": "label_values(tricache_gets_total, namespace)",
508
+ "hide": 0,
509
+ "includeAll": true,
510
+ "label": "Namespace",
511
+ "multi": true,
512
+ "name": "namespace",
513
+ "options": [],
514
+ "query": { "query": "label_values(tricache_gets_total, namespace)", "refId": "StandardVariableQuery" },
515
+ "refresh": 2,
516
+ "sort": 1,
517
+ "type": "query"
518
+ },
519
+ {
520
+ "allValue": ".*",
521
+ "current": { "selected": true, "text": "All", "value": "$__all" },
522
+ "datasource": "${datasource}",
523
+ "definition": "label_values(tricache_gets_total, instance)",
524
+ "hide": 0,
525
+ "includeAll": true,
526
+ "label": "Pod / Instance",
527
+ "multi": true,
528
+ "name": "pod",
529
+ "options": [],
530
+ "query": { "query": "label_values(tricache_gets_total, instance)", "refId": "StandardVariableQuery" },
531
+ "refresh": 2,
532
+ "sort": 1,
533
+ "type": "query"
534
+ }
535
+ ]
536
+ },
537
+ "time": {
538
+ "from": "now-15m",
539
+ "to": "now"
540
+ },
541
+ "timepicker": {
542
+ "refresh_intervals": ["1s", "5s", "10s", "30s", "1m"]
543
+ },
544
+ "timezone": "browser",
545
+ "title": "TriCache Observability & Performance Dashboard",
546
+ "uid": "tricache-overview",
547
+ "version": 1
548
+ }
@@ -0,0 +1,12 @@
1
+ import {
2
+ CacheService,
3
+ ProcessTerminationBus,
4
+ deepMergeOptions
5
+ } from "./chunk-6PQ5MOWR.js";
6
+ import "./chunk-LJ5QJB5O.js";
7
+ import "./chunk-XZL45ABR.js";
8
+ export {
9
+ CacheService,
10
+ ProcessTerminationBus,
11
+ deepMergeOptions
12
+ };