@mark1russell7/capacity 0.0.0-stage → 0.1.1

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 (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1110 -2
  3. package/build/index.d.ts +858 -0
  4. package/build/index.d.ts.map +1 -0
  5. package/build/index.js +1713 -0
  6. package/build/index.js.map +1 -0
  7. package/build/instance-check-Bt-SI8va.js +1732 -0
  8. package/build/instance-check-Bt-SI8va.js.map +1 -0
  9. package/build/instance-sZmVOOvz.d.ts +801 -0
  10. package/build/instance-sZmVOOvz.d.ts.map +1 -0
  11. package/build/schema.d.ts +69 -0
  12. package/build/schema.d.ts.map +1 -0
  13. package/build/schema.js +325 -0
  14. package/build/schema.js.map +1 -0
  15. package/limits/alerts-routes.line.json +78 -0
  16. package/limits/alerts-scale.limits.json +10 -0
  17. package/limits/alerts-start-gate.limits.json +1149 -0
  18. package/limits/alerts-start-routes-limit-home.bracket.json +543 -0
  19. package/limits/alerts-start-routes-limit-mid.bracket.json +464 -0
  20. package/limits/alerts-start-routes-limit.bracket.json +579 -0
  21. package/limits/alerts-tail-gate.limits.json +610 -0
  22. package/package.json +85 -3
  23. package/src/app-check.ts +477 -0
  24. package/src/app-metrics.ts +105 -0
  25. package/src/app.ts +239 -0
  26. package/src/check.ts +253 -0
  27. package/src/composition.ts +680 -0
  28. package/src/demand.ts +312 -0
  29. package/src/fit.ts +153 -0
  30. package/src/forms.ts +358 -0
  31. package/src/gate.ts +237 -0
  32. package/src/index.ts +143 -0
  33. package/src/instance-check.ts +122 -0
  34. package/src/instance.ts +84 -0
  35. package/src/knee.ts +606 -0
  36. package/src/law.ts +236 -0
  37. package/src/limit.ts +112 -0
  38. package/src/names.ts +19 -0
  39. package/src/observe.ts +74 -0
  40. package/src/program.ts +74 -0
  41. package/src/scale.ts +617 -0
  42. package/src/schema.ts +263 -0
  43. package/src/value.ts +206 -0
  44. package/src/workload-check.ts +130 -0
  45. package/src/workload.ts +88 -0
@@ -0,0 +1,579 @@
1
+ {
2
+ "format": "capacity-start-bracket/1",
3
+ "plan": "alerts-start-routes-limit",
4
+ "case": "alerts-start-routes-limit/grid",
5
+ "subject": "alerts-runtime",
6
+ "app": "https://github.com/metrograph-labs/alerts.git",
7
+ "arm": "main",
8
+ "commit": "fda7d62ee4f1f89aedcd898d4733e883b9d80f3f",
9
+ "target": {
10
+ "image": "node:24.21.0-bookworm-slim",
11
+ "node": "v24.21.0",
12
+ "memory": {
13
+ "value": 1011425280,
14
+ "unit": "B"
15
+ },
16
+ "swap": {
17
+ "value": 2147483648,
18
+ "unit": "B"
19
+ },
20
+ "cpus": 2,
21
+ "heapLimit": {
22
+ "value": 556269568,
23
+ "unit": "B"
24
+ }
25
+ },
26
+ "ceiling": {
27
+ "value": 556269568,
28
+ "unit": "B"
29
+ },
30
+ "variable": {
31
+ "id": "routes",
32
+ "unit": "{route}"
33
+ },
34
+ "measure": {
35
+ "id": "heapPeak",
36
+ "unit": "B"
37
+ },
38
+ "runs": [
39
+ {
40
+ "id": "46331249632/1/1",
41
+ "url": "https://github.com/metrograph-labs/capacity/actions/runs/46331249632",
42
+ "job": "1",
43
+ "attempt": 1,
44
+ "cpu": "AMD EPYC 9V45 96-Core Processor"
45
+ },
46
+ {
47
+ "id": "46331249632/2/1",
48
+ "url": "https://github.com/metrograph-labs/capacity/actions/runs/46331249632",
49
+ "job": "2",
50
+ "attempt": 1,
51
+ "cpu": "AMD EPYC 9V74 80-Core Processor"
52
+ },
53
+ {
54
+ "id": "46331249632/3/1",
55
+ "url": "https://github.com/metrograph-labs/capacity/actions/runs/46331249632",
56
+ "job": "3",
57
+ "attempt": 1,
58
+ "cpu": "AMD EPYC 7763 64-Core Processor"
59
+ },
60
+ {
61
+ "id": "46331249632/4/1",
62
+ "url": "https://github.com/metrograph-labs/capacity/actions/runs/46331249632",
63
+ "job": "4",
64
+ "attempt": 1,
65
+ "cpu": "INTEL(R) XEON(R) PLATINUM 8573C"
66
+ },
67
+ {
68
+ "id": "46331249632/5/1",
69
+ "url": "https://github.com/metrograph-labs/capacity/actions/runs/46331249632",
70
+ "job": "5",
71
+ "attempt": 1,
72
+ "cpu": "AMD EPYC 7763 64-Core Processor"
73
+ },
74
+ {
75
+ "id": "46353047697/1/1",
76
+ "url": "https://github.com/metrograph-labs/capacity/actions/runs/46353047697",
77
+ "job": "1",
78
+ "attempt": 1,
79
+ "cpu": "Intel(R) Xeon(R) 6975P-C"
80
+ },
81
+ {
82
+ "id": "46353047697/2/1",
83
+ "url": "https://github.com/metrograph-labs/capacity/actions/runs/46353047697",
84
+ "job": "2",
85
+ "attempt": 1,
86
+ "cpu": "Intel(R) Xeon(R) 6975P-C"
87
+ },
88
+ {
89
+ "id": "46353047697/3/1",
90
+ "url": "https://github.com/metrograph-labs/capacity/actions/runs/46353047697",
91
+ "job": "3",
92
+ "attempt": 1,
93
+ "cpu": "Intel(R) Xeon(R) 6975P-C"
94
+ },
95
+ {
96
+ "id": "46353047697/4/1",
97
+ "url": "https://github.com/metrograph-labs/capacity/actions/runs/46353047697",
98
+ "job": "4",
99
+ "attempt": 1,
100
+ "cpu": "Intel(R) Xeon(R) 6975P-C"
101
+ },
102
+ {
103
+ "id": "46353047697/5/1",
104
+ "url": "https://github.com/metrograph-labs/capacity/actions/runs/46353047697",
105
+ "job": "5",
106
+ "attempt": 1,
107
+ "cpu": "AMD EPYC 7763 64-Core Processor"
108
+ }
109
+ ],
110
+ "cpus": [
111
+ "AMD EPYC 7763 64-Core Processor",
112
+ "AMD EPYC 9V45 96-Core Processor",
113
+ "AMD EPYC 9V74 80-Core Processor",
114
+ "INTEL(R) XEON(R) PLATINUM 8573C",
115
+ "Intel(R) Xeon(R) 6975P-C"
116
+ ],
117
+ "points": [
118
+ {
119
+ "id": "persons-1000-incidents-20",
120
+ "at": {
121
+ "log": {
122
+ "value": 16777216,
123
+ "unit": "B"
124
+ },
125
+ "feeds": {
126
+ "value": 10,
127
+ "unit": "{feed}"
128
+ },
129
+ "persons": {
130
+ "value": 1000,
131
+ "unit": "{person}"
132
+ },
133
+ "incidents": {
134
+ "value": 20,
135
+ "unit": "{incident}"
136
+ },
137
+ "gdelt": {
138
+ "value": 0,
139
+ "unit": "{place}"
140
+ },
141
+ "score": {
142
+ "value": 0,
143
+ "unit": "{person}"
144
+ },
145
+ "chain": {
146
+ "value": 0,
147
+ "unit": "{stack}"
148
+ }
149
+ },
150
+ "starts": 20,
151
+ "failures": 0,
152
+ "kinds": [],
153
+ "worst": 262825296,
154
+ "amount": 28000
155
+ },
156
+ {
157
+ "id": "persons-1000-incidents-30",
158
+ "at": {
159
+ "log": {
160
+ "value": 16777216,
161
+ "unit": "B"
162
+ },
163
+ "feeds": {
164
+ "value": 10,
165
+ "unit": "{feed}"
166
+ },
167
+ "persons": {
168
+ "value": 1000,
169
+ "unit": "{person}"
170
+ },
171
+ "incidents": {
172
+ "value": 30,
173
+ "unit": "{incident}"
174
+ },
175
+ "gdelt": {
176
+ "value": 0,
177
+ "unit": "{place}"
178
+ },
179
+ "score": {
180
+ "value": 0,
181
+ "unit": "{person}"
182
+ },
183
+ "chain": {
184
+ "value": 0,
185
+ "unit": "{stack}"
186
+ }
187
+ },
188
+ "starts": 20,
189
+ "failures": 0,
190
+ "kinds": [],
191
+ "worst": 320779424,
192
+ "amount": 38000
193
+ },
194
+ {
195
+ "id": "persons-1000-incidents-40",
196
+ "at": {
197
+ "log": {
198
+ "value": 16777216,
199
+ "unit": "B"
200
+ },
201
+ "feeds": {
202
+ "value": 10,
203
+ "unit": "{feed}"
204
+ },
205
+ "persons": {
206
+ "value": 1000,
207
+ "unit": "{person}"
208
+ },
209
+ "incidents": {
210
+ "value": 40,
211
+ "unit": "{incident}"
212
+ },
213
+ "gdelt": {
214
+ "value": 0,
215
+ "unit": "{place}"
216
+ },
217
+ "score": {
218
+ "value": 0,
219
+ "unit": "{person}"
220
+ },
221
+ "chain": {
222
+ "value": 0,
223
+ "unit": "{stack}"
224
+ }
225
+ },
226
+ "starts": 20,
227
+ "failures": 0,
228
+ "kinds": [],
229
+ "worst": 336661840,
230
+ "amount": 48000
231
+ },
232
+ {
233
+ "id": "persons-1000-incidents-50",
234
+ "at": {
235
+ "log": {
236
+ "value": 16777216,
237
+ "unit": "B"
238
+ },
239
+ "feeds": {
240
+ "value": 10,
241
+ "unit": "{feed}"
242
+ },
243
+ "persons": {
244
+ "value": 1000,
245
+ "unit": "{person}"
246
+ },
247
+ "incidents": {
248
+ "value": 50,
249
+ "unit": "{incident}"
250
+ },
251
+ "gdelt": {
252
+ "value": 0,
253
+ "unit": "{place}"
254
+ },
255
+ "score": {
256
+ "value": 0,
257
+ "unit": "{person}"
258
+ },
259
+ "chain": {
260
+ "value": 0,
261
+ "unit": "{stack}"
262
+ }
263
+ },
264
+ "starts": 20,
265
+ "failures": 0,
266
+ "kinds": [],
267
+ "worst": 390995592,
268
+ "amount": 58000
269
+ },
270
+ {
271
+ "id": "persons-1000-incidents-60",
272
+ "at": {
273
+ "log": {
274
+ "value": 16777216,
275
+ "unit": "B"
276
+ },
277
+ "feeds": {
278
+ "value": 10,
279
+ "unit": "{feed}"
280
+ },
281
+ "persons": {
282
+ "value": 1000,
283
+ "unit": "{person}"
284
+ },
285
+ "incidents": {
286
+ "value": 60,
287
+ "unit": "{incident}"
288
+ },
289
+ "gdelt": {
290
+ "value": 0,
291
+ "unit": "{place}"
292
+ },
293
+ "score": {
294
+ "value": 0,
295
+ "unit": "{person}"
296
+ },
297
+ "chain": {
298
+ "value": 0,
299
+ "unit": "{stack}"
300
+ }
301
+ },
302
+ "starts": 20,
303
+ "failures": 1,
304
+ "kinds": [
305
+ "heap"
306
+ ],
307
+ "worst": 382715168,
308
+ "amount": 68000
309
+ },
310
+ {
311
+ "id": "persons-1000-incidents-70",
312
+ "at": {
313
+ "log": {
314
+ "value": 16777216,
315
+ "unit": "B"
316
+ },
317
+ "feeds": {
318
+ "value": 10,
319
+ "unit": "{feed}"
320
+ },
321
+ "persons": {
322
+ "value": 1000,
323
+ "unit": "{person}"
324
+ },
325
+ "incidents": {
326
+ "value": 70,
327
+ "unit": "{incident}"
328
+ },
329
+ "gdelt": {
330
+ "value": 0,
331
+ "unit": "{place}"
332
+ },
333
+ "score": {
334
+ "value": 0,
335
+ "unit": "{person}"
336
+ },
337
+ "chain": {
338
+ "value": 0,
339
+ "unit": "{stack}"
340
+ }
341
+ },
342
+ "starts": 20,
343
+ "failures": 0,
344
+ "kinds": [],
345
+ "worst": 409654328,
346
+ "amount": 78000
347
+ },
348
+ {
349
+ "id": "persons-20-incidents-1000",
350
+ "at": {
351
+ "log": {
352
+ "value": 16777216,
353
+ "unit": "B"
354
+ },
355
+ "feeds": {
356
+ "value": 10,
357
+ "unit": "{feed}"
358
+ },
359
+ "persons": {
360
+ "value": 20,
361
+ "unit": "{person}"
362
+ },
363
+ "incidents": {
364
+ "value": 1000,
365
+ "unit": "{incident}"
366
+ },
367
+ "gdelt": {
368
+ "value": 0,
369
+ "unit": "{place}"
370
+ },
371
+ "score": {
372
+ "value": 0,
373
+ "unit": "{person}"
374
+ },
375
+ "chain": {
376
+ "value": 0,
377
+ "unit": "{stack}"
378
+ }
379
+ },
380
+ "starts": 20,
381
+ "failures": 0,
382
+ "kinds": [],
383
+ "worst": 213035200,
384
+ "amount": 20160
385
+ },
386
+ {
387
+ "id": "persons-30-incidents-1000",
388
+ "at": {
389
+ "log": {
390
+ "value": 16777216,
391
+ "unit": "B"
392
+ },
393
+ "feeds": {
394
+ "value": 10,
395
+ "unit": "{feed}"
396
+ },
397
+ "persons": {
398
+ "value": 30,
399
+ "unit": "{person}"
400
+ },
401
+ "incidents": {
402
+ "value": 1000,
403
+ "unit": "{incident}"
404
+ },
405
+ "gdelt": {
406
+ "value": 0,
407
+ "unit": "{place}"
408
+ },
409
+ "score": {
410
+ "value": 0,
411
+ "unit": "{person}"
412
+ },
413
+ "chain": {
414
+ "value": 0,
415
+ "unit": "{stack}"
416
+ }
417
+ },
418
+ "starts": 20,
419
+ "failures": 0,
420
+ "kinds": [],
421
+ "worst": 272534112,
422
+ "amount": 30240
423
+ },
424
+ {
425
+ "id": "persons-40-incidents-1000",
426
+ "at": {
427
+ "log": {
428
+ "value": 16777216,
429
+ "unit": "B"
430
+ },
431
+ "feeds": {
432
+ "value": 10,
433
+ "unit": "{feed}"
434
+ },
435
+ "persons": {
436
+ "value": 40,
437
+ "unit": "{person}"
438
+ },
439
+ "incidents": {
440
+ "value": 1000,
441
+ "unit": "{incident}"
442
+ },
443
+ "gdelt": {
444
+ "value": 0,
445
+ "unit": "{place}"
446
+ },
447
+ "score": {
448
+ "value": 0,
449
+ "unit": "{person}"
450
+ },
451
+ "chain": {
452
+ "value": 0,
453
+ "unit": "{stack}"
454
+ }
455
+ },
456
+ "starts": 20,
457
+ "failures": 0,
458
+ "kinds": [],
459
+ "worst": 332541120,
460
+ "amount": 40320
461
+ },
462
+ {
463
+ "id": "persons-50-incidents-1000",
464
+ "at": {
465
+ "log": {
466
+ "value": 16777216,
467
+ "unit": "B"
468
+ },
469
+ "feeds": {
470
+ "value": 10,
471
+ "unit": "{feed}"
472
+ },
473
+ "persons": {
474
+ "value": 50,
475
+ "unit": "{person}"
476
+ },
477
+ "incidents": {
478
+ "value": 1000,
479
+ "unit": "{incident}"
480
+ },
481
+ "gdelt": {
482
+ "value": 0,
483
+ "unit": "{place}"
484
+ },
485
+ "score": {
486
+ "value": 0,
487
+ "unit": "{person}"
488
+ },
489
+ "chain": {
490
+ "value": 0,
491
+ "unit": "{stack}"
492
+ }
493
+ },
494
+ "starts": 20,
495
+ "failures": 0,
496
+ "kinds": [],
497
+ "worst": 372562856,
498
+ "amount": 50400
499
+ },
500
+ {
501
+ "id": "persons-60-incidents-1000",
502
+ "at": {
503
+ "log": {
504
+ "value": 16777216,
505
+ "unit": "B"
506
+ },
507
+ "feeds": {
508
+ "value": 10,
509
+ "unit": "{feed}"
510
+ },
511
+ "persons": {
512
+ "value": 60,
513
+ "unit": "{person}"
514
+ },
515
+ "incidents": {
516
+ "value": 1000,
517
+ "unit": "{incident}"
518
+ },
519
+ "gdelt": {
520
+ "value": 0,
521
+ "unit": "{place}"
522
+ },
523
+ "score": {
524
+ "value": 0,
525
+ "unit": "{person}"
526
+ },
527
+ "chain": {
528
+ "value": 0,
529
+ "unit": "{stack}"
530
+ }
531
+ },
532
+ "starts": 20,
533
+ "failures": 0,
534
+ "kinds": [],
535
+ "worst": 385306408,
536
+ "amount": 60480
537
+ },
538
+ {
539
+ "id": "persons-70-incidents-1000",
540
+ "at": {
541
+ "log": {
542
+ "value": 16777216,
543
+ "unit": "B"
544
+ },
545
+ "feeds": {
546
+ "value": 10,
547
+ "unit": "{feed}"
548
+ },
549
+ "persons": {
550
+ "value": 70,
551
+ "unit": "{person}"
552
+ },
553
+ "incidents": {
554
+ "value": 1000,
555
+ "unit": "{incident}"
556
+ },
557
+ "gdelt": {
558
+ "value": 0,
559
+ "unit": "{place}"
560
+ },
561
+ "score": {
562
+ "value": 0,
563
+ "unit": "{person}"
564
+ },
565
+ "chain": {
566
+ "value": 0,
567
+ "unit": "{stack}"
568
+ }
569
+ },
570
+ "starts": 20,
571
+ "failures": 15,
572
+ "kinds": [
573
+ "heap"
574
+ ],
575
+ "worst": 354606056,
576
+ "amount": 70560
577
+ }
578
+ ]
579
+ }