View: the pipelines heard kept for the pages is the setting pipelines-heard
The view kept the last change of at most 1024 pipelines for its pages, a cap written into the code. A cap is a setting with a default (principle 11): the manifest gives pipelines-heard, 1024 by default, written into a file of the state directory the process reads at its start. The cap is kept, not removed: without it the pipelines heard grow without end over the view's life. Issue 1983, review round 1 finding 3. Builds: design 47 H2 H-A-467 (1)
This commit is contained in:
@@ -154,6 +154,15 @@
|
||||
"seat:mesh-vault.signers",
|
||||
"node-engine.have"
|
||||
],
|
||||
"config": {
|
||||
"pipelines-heard": {
|
||||
"type": "number",
|
||||
"description": "How many pipelines' last changes the view keeps for its pipelines pages before it forgets them all, read at its start (design 47 H2 H-A-467; principle 11).",
|
||||
"trusted": false,
|
||||
"minimum": 1,
|
||||
"default": 1024
|
||||
}
|
||||
},
|
||||
"own-secrets": {
|
||||
"broker": "${dir:state}/broker"
|
||||
},
|
||||
@@ -191,13 +200,22 @@
|
||||
"./mesh-delivery-view"
|
||||
],
|
||||
"env": {
|
||||
"MESH_BROKER_FILE": "${dir:state}/broker"
|
||||
"MESH_BROKER_FILE": "${dir:state}/broker",
|
||||
"MESH_DELIVERY_VIEW_PIPELINES_HEARD_FILE": "${dir:state}/pipelines-heard"
|
||||
},
|
||||
"user": "mesh-delivery-view",
|
||||
"health": {
|
||||
"kind": "unit"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "pipelines-heard",
|
||||
"type": "file",
|
||||
"path": "${dir:state}/pipelines-heard",
|
||||
"owner": "mesh-delivery-view",
|
||||
"mode": "0600",
|
||||
"content": "${config:pipelines-heard}"
|
||||
},
|
||||
{
|
||||
"id": "command-program",
|
||||
"type": "archive",
|
||||
|
||||
Reference in New Issue
Block a user