M1: the build modules and the registry say their class and name every store's cap; detected-steps is pruned
Each of the four is core. Every state that named no cap names one, from its live fill read 2026-11-22 01:4x CET (mesh-broker show, nats_streams on novox): mesh-build-go steps 16.0 MiB (16,783,695 bytes) -> 128 MiB; mesh-build-node steps 2.35 MiB (2,463,833 bytes) -> 16 MiB; every other state under 2 MiB -> 8 MiB (largest: distribution holds 1,844,287 bytes, mesh-build-go detected-steps 868,554, distribution transfers 846,359, findings 668,161, idle 401,736, mesh-build-go pauses 254,366). The Go build module's finding-events is 8 MiB for 7 days. The objects stores already name their caps; none keeps a log. The Go and Node build modules prune their state detected-steps (each key an artifact's steps as detected, detected again when gone) at their own writes, past prune-mark 70 % down to prune-target 50 %, and serve <module>_state_prune_now and <module>_state_keep; no other state of the four is prunable (each is truth: running steps, pauses, keys, toolchains, findings, holds, transfers, windows, mirrors, taken asks). Builds: design 47 H2 §812, §820; H-A-411 (1), (2), (3), H-A-437
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"module": "mesh-build-go",
|
||||
"version": "0.1",
|
||||
"class": "core",
|
||||
"packages": {
|
||||
"git.novox.be/novox/mesh-delivery/modules/mesh-delivery-builder/builds": "0.1",
|
||||
"git.novox.be/novox/mesh-catalog/modules/ssh-client/sshkeys": "0.1"
|
||||
@@ -13,9 +14,18 @@
|
||||
"user-namespaces"
|
||||
],
|
||||
"state": [
|
||||
"toolchains",
|
||||
"keys",
|
||||
"pauses"
|
||||
{
|
||||
"name": "toolchains",
|
||||
"max-mib": 8
|
||||
},
|
||||
{
|
||||
"name": "keys",
|
||||
"max-mib": 8
|
||||
},
|
||||
{
|
||||
"name": "pauses",
|
||||
"max-mib": 8
|
||||
}
|
||||
],
|
||||
"claims": [
|
||||
{
|
||||
@@ -75,6 +85,24 @@
|
||||
"trusted": false,
|
||||
"runtime": true,
|
||||
"default": "15s,60s"
|
||||
},
|
||||
"prune-mark": {
|
||||
"type": "number",
|
||||
"description": "The fill of mesh-build-go's state detected-steps, in percent of its cap, past which the module prunes it at its own write, oldest first (design 47 H2 §812): below the bus module's raise mark of 75 %.",
|
||||
"trusted": false,
|
||||
"runtime": true,
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 70
|
||||
},
|
||||
"prune-target": {
|
||||
"type": "number",
|
||||
"description": "The fill, in percent of the cap, a prune of mesh-build-go's state detected-steps takes it down to (design 47 H2 §812); below prune-mark.",
|
||||
"trusted": false,
|
||||
"runtime": true,
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
}
|
||||
},
|
||||
"tools": [
|
||||
@@ -91,7 +119,9 @@
|
||||
"build_go_step_end",
|
||||
"build_go_toolchains",
|
||||
"build_go_status",
|
||||
"build_go_health"
|
||||
"build_go_health",
|
||||
"mesh-build-go_state_keep",
|
||||
"mesh-build-go_state_prune_now"
|
||||
],
|
||||
"requires": [
|
||||
{
|
||||
@@ -100,7 +130,8 @@
|
||||
"template": "state",
|
||||
"options": {
|
||||
"ttl-seconds": 172800,
|
||||
"objects-max-mib": 256
|
||||
"objects-max-mib": 256,
|
||||
"max-mib": 128
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -108,7 +139,8 @@
|
||||
"storage": "key-value",
|
||||
"template": "state",
|
||||
"options": {
|
||||
"history": 1
|
||||
"history": 1,
|
||||
"max-mib": 8
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -136,7 +168,10 @@
|
||||
{
|
||||
"name": "findings",
|
||||
"storage": "key-value",
|
||||
"template": "state"
|
||||
"template": "state",
|
||||
"options": {
|
||||
"max-mib": 8
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "finding-events",
|
||||
@@ -149,7 +184,7 @@
|
||||
"findings-stated.*"
|
||||
],
|
||||
"max-age-days": 7,
|
||||
"max-mib": 16
|
||||
"max-mib": 8
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user