@mark1russell7/capacity 0.0.0-stage → 0.1.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 (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1108 -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-0n6WhJzF.d.ts +782 -0
  8. package/build/instance-0n6WhJzF.d.ts.map +1 -0
  9. package/build/instance-check-CAuD9L4Z.js +1711 -0
  10. package/build/instance-check-CAuD9L4Z.js.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 +315 -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 +228 -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 +142 -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 +215 -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 +260 -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,543 @@
1
+ {
2
+ "format": "capacity-start-bracket/1",
3
+ "plan": "alerts-start-routes-limit-home",
4
+ "case": "alerts-start-routes-limit-home/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": 8589934592,
14
+ "unit": "B"
15
+ },
16
+ "swap": {
17
+ "value": 2147483648,
18
+ "unit": "B"
19
+ },
20
+ "cpus": 2,
21
+ "heapLimit": {
22
+ "value": 2348810240,
23
+ "unit": "B"
24
+ }
25
+ },
26
+ "ceiling": {
27
+ "value": 2348810240,
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": "Intel(R) Xeon(R) 6975P-C"
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 9V45 96-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": "AMD EPYC 9V45 96-Core Processor"
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": "INTEL(R) XEON(R) PLATINUM 8573C"
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) Platinum 8370C CPU @ 2.80GHz"
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": "AMD EPYC 7763 64-Core Processor"
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": "AMD EPYC 9V45 96-Core Processor"
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 9V45 96-Core Processor"
108
+ }
109
+ ],
110
+ "cpus": [
111
+ "AMD EPYC 7763 64-Core Processor",
112
+ "AMD EPYC 9V45 96-Core Processor",
113
+ "INTEL(R) XEON(R) PLATINUM 8573C",
114
+ "Intel(R) Xeon(R) 6975P-C",
115
+ "Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz"
116
+ ],
117
+ "points": [
118
+ {
119
+ "id": "persons-1000-incidents-200",
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": 200,
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": 1346699104,
154
+ "amount": 208000
155
+ },
156
+ {
157
+ "id": "persons-1000-incidents-250",
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": 250,
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": 1479423336,
192
+ "amount": 258000
193
+ },
194
+ {
195
+ "id": "persons-1000-incidents-300",
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": 300,
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": 1469466864,
230
+ "amount": 308000
231
+ },
232
+ {
233
+ "id": "persons-1000-incidents-350",
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": 350,
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": 1553771600,
268
+ "amount": 358000
269
+ },
270
+ {
271
+ "id": "persons-1000-incidents-400",
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": 400,
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": 0,
304
+ "kinds": [],
305
+ "worst": 1617534448,
306
+ "amount": 408000
307
+ },
308
+ {
309
+ "id": "persons-1000-incidents-450",
310
+ "at": {
311
+ "log": {
312
+ "value": 16777216,
313
+ "unit": "B"
314
+ },
315
+ "feeds": {
316
+ "value": 10,
317
+ "unit": "{feed}"
318
+ },
319
+ "persons": {
320
+ "value": 1000,
321
+ "unit": "{person}"
322
+ },
323
+ "incidents": {
324
+ "value": 450,
325
+ "unit": "{incident}"
326
+ },
327
+ "gdelt": {
328
+ "value": 0,
329
+ "unit": "{place}"
330
+ },
331
+ "score": {
332
+ "value": 0,
333
+ "unit": "{person}"
334
+ },
335
+ "chain": {
336
+ "value": 0,
337
+ "unit": "{stack}"
338
+ }
339
+ },
340
+ "starts": 20,
341
+ "failures": 17,
342
+ "kinds": [
343
+ "heap"
344
+ ],
345
+ "worst": 1537521736,
346
+ "amount": 458000
347
+ },
348
+ {
349
+ "id": "persons-1000-incidents-500",
350
+ "at": {
351
+ "log": {
352
+ "value": 16777216,
353
+ "unit": "B"
354
+ },
355
+ "feeds": {
356
+ "value": 10,
357
+ "unit": "{feed}"
358
+ },
359
+ "persons": {
360
+ "value": 1000,
361
+ "unit": "{person}"
362
+ },
363
+ "incidents": {
364
+ "value": 500,
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": 15,
382
+ "kinds": [
383
+ "heap"
384
+ ],
385
+ "worst": 1710112624,
386
+ "amount": 508000
387
+ },
388
+ {
389
+ "id": "persons-200-incidents-1000",
390
+ "at": {
391
+ "log": {
392
+ "value": 16777216,
393
+ "unit": "B"
394
+ },
395
+ "feeds": {
396
+ "value": 10,
397
+ "unit": "{feed}"
398
+ },
399
+ "persons": {
400
+ "value": 200,
401
+ "unit": "{person}"
402
+ },
403
+ "incidents": {
404
+ "value": 1000,
405
+ "unit": "{incident}"
406
+ },
407
+ "gdelt": {
408
+ "value": 0,
409
+ "unit": "{place}"
410
+ },
411
+ "score": {
412
+ "value": 0,
413
+ "unit": "{person}"
414
+ },
415
+ "chain": {
416
+ "value": 0,
417
+ "unit": "{stack}"
418
+ }
419
+ },
420
+ "starts": 20,
421
+ "failures": 0,
422
+ "kinds": [],
423
+ "worst": 1345448184,
424
+ "amount": 201600
425
+ },
426
+ {
427
+ "id": "persons-300-incidents-1000",
428
+ "at": {
429
+ "log": {
430
+ "value": 16777216,
431
+ "unit": "B"
432
+ },
433
+ "feeds": {
434
+ "value": 10,
435
+ "unit": "{feed}"
436
+ },
437
+ "persons": {
438
+ "value": 300,
439
+ "unit": "{person}"
440
+ },
441
+ "incidents": {
442
+ "value": 1000,
443
+ "unit": "{incident}"
444
+ },
445
+ "gdelt": {
446
+ "value": 0,
447
+ "unit": "{place}"
448
+ },
449
+ "score": {
450
+ "value": 0,
451
+ "unit": "{person}"
452
+ },
453
+ "chain": {
454
+ "value": 0,
455
+ "unit": "{stack}"
456
+ }
457
+ },
458
+ "starts": 20,
459
+ "failures": 0,
460
+ "kinds": [],
461
+ "worst": 1481009312,
462
+ "amount": 302400
463
+ },
464
+ {
465
+ "id": "persons-400-incidents-1000",
466
+ "at": {
467
+ "log": {
468
+ "value": 16777216,
469
+ "unit": "B"
470
+ },
471
+ "feeds": {
472
+ "value": 10,
473
+ "unit": "{feed}"
474
+ },
475
+ "persons": {
476
+ "value": 400,
477
+ "unit": "{person}"
478
+ },
479
+ "incidents": {
480
+ "value": 1000,
481
+ "unit": "{incident}"
482
+ },
483
+ "gdelt": {
484
+ "value": 0,
485
+ "unit": "{place}"
486
+ },
487
+ "score": {
488
+ "value": 0,
489
+ "unit": "{person}"
490
+ },
491
+ "chain": {
492
+ "value": 0,
493
+ "unit": "{stack}"
494
+ }
495
+ },
496
+ "starts": 20,
497
+ "failures": 0,
498
+ "kinds": [],
499
+ "worst": 1611014128,
500
+ "amount": 403200
501
+ },
502
+ {
503
+ "id": "persons-500-incidents-1000",
504
+ "at": {
505
+ "log": {
506
+ "value": 16777216,
507
+ "unit": "B"
508
+ },
509
+ "feeds": {
510
+ "value": 10,
511
+ "unit": "{feed}"
512
+ },
513
+ "persons": {
514
+ "value": 500,
515
+ "unit": "{person}"
516
+ },
517
+ "incidents": {
518
+ "value": 1000,
519
+ "unit": "{incident}"
520
+ },
521
+ "gdelt": {
522
+ "value": 0,
523
+ "unit": "{place}"
524
+ },
525
+ "score": {
526
+ "value": 0,
527
+ "unit": "{person}"
528
+ },
529
+ "chain": {
530
+ "value": 0,
531
+ "unit": "{stack}"
532
+ }
533
+ },
534
+ "starts": 20,
535
+ "failures": 16,
536
+ "kinds": [
537
+ "heap"
538
+ ],
539
+ "worst": 1711102248,
540
+ "amount": 504000
541
+ }
542
+ ]
543
+ }