The operator's question (how much are the build nodes used, is ace eligible) took six calls over four tools. build_usage reads it from the bus's states: seats held (have), capacity (mesh-config resolved), pauses, the build modules' steps by kind with left-running keys, the last hour and day with total and median time and time at capacity, the running tries, and the backlog the view program reads from the seats' streams. A try now names the asks it put, and the checker announces its tries readable, so the view tells a try's asks from a check's.
155 lines
3.5 KiB
JSON
155 lines
3.5 KiB
JSON
{
|
|
"module": "mesh-delivery-view",
|
|
"version": "1",
|
|
"moved": true,
|
|
"slug": "view",
|
|
"tools": [
|
|
"indexer_module",
|
|
"indexer_modules",
|
|
"indexer_candidate",
|
|
"indexer_candidates",
|
|
"builder_build",
|
|
"builder_builds",
|
|
"assigner_wants",
|
|
"assigner_want",
|
|
"assigner_differences",
|
|
"node_haves",
|
|
"build_usage"
|
|
],
|
|
"emits": [
|
|
"delivered",
|
|
"moving",
|
|
"settled",
|
|
"stuck"
|
|
],
|
|
"state": [
|
|
{ "name": "answers", "history": 5 }
|
|
],
|
|
"reads": [
|
|
"mesh-controller.assignments",
|
|
"mesh-controller.builds",
|
|
"mesh-build-go.pauses",
|
|
"mesh-build-go.steps",
|
|
"mesh-build-image.pauses",
|
|
"mesh-build-image.steps",
|
|
"mesh-build-node.pauses",
|
|
"mesh-build-node.steps",
|
|
"mesh-config.resolved",
|
|
"mesh-controller.composed",
|
|
"mesh-delivery-assigner.asks",
|
|
"mesh-delivery-assigner.differences",
|
|
"mesh-delivery-assigner.wants",
|
|
"mesh-delivery-builder.builds",
|
|
"mesh-delivery-checker.tries",
|
|
"mesh-delivery-gate.asks",
|
|
"mesh-delivery-gate.source",
|
|
"mesh-delivery-indexer.candidates",
|
|
"mesh-delivery-indexer.modules",
|
|
"mesh-delivery-teller.answers",
|
|
"mesh-delivery-watchman.presence",
|
|
"mesh-delivery-watchman.stuck",
|
|
"node-engine.have"
|
|
],
|
|
"own-secrets": {
|
|
"broker": "${dir:state}/broker"
|
|
},
|
|
"secrets-owner": "mesh-delivery-view",
|
|
"resources": [
|
|
{
|
|
"id": "account",
|
|
"type": "user",
|
|
"name": "mesh-delivery-view",
|
|
"shell": "/usr/bin/nologin",
|
|
"home": "/var/lib/mesh-delivery-view"
|
|
},
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"owner": "mesh-delivery-view",
|
|
"place": ".",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "socket-dir",
|
|
"type": "directory",
|
|
"path": "/var/lib/mesh-delivery-view-cli",
|
|
"mode": "0755",
|
|
"owner": "mesh-delivery-view",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "view",
|
|
"type": "process",
|
|
"name": "mesh-delivery-view",
|
|
"artifact": "program",
|
|
"run": [
|
|
"./mesh-delivery-view"
|
|
],
|
|
"env": {
|
|
"MESH_BROKER_FILE": "${dir:state}/broker"
|
|
},
|
|
"user": "mesh-delivery-view",
|
|
"health": {
|
|
"kind": "unit"
|
|
}
|
|
},
|
|
{
|
|
"id": "command-program",
|
|
"type": "archive",
|
|
"artifact": "cli",
|
|
"path": "/usr/local/lib/mesh-delivery-view",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "command",
|
|
"type": "file",
|
|
"path": "/usr/local/bin/mesh-delivery-cli",
|
|
"mode": "0755",
|
|
"template": "files/mesh-delivery-cli"
|
|
}
|
|
],
|
|
"items": [
|
|
{
|
|
"collection": "shell:zsh:normal",
|
|
"template": "files/zsh-normal"
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "program",
|
|
"kind": "bundle",
|
|
"language": "go",
|
|
"system": "arch",
|
|
"from": "cmd/mesh-delivery-view",
|
|
"binary": "mesh-delivery-view"
|
|
},
|
|
{
|
|
"name": "cli",
|
|
"kind": "bundle",
|
|
"language": "go",
|
|
"system": "arch",
|
|
"from": "cmd/mesh-delivery-cli",
|
|
"binary": "mesh-delivery-cli"
|
|
},
|
|
{
|
|
"name": "tools",
|
|
"kind": "bundle",
|
|
"language": "go",
|
|
"system": "arch",
|
|
"from": "cmd/mesh-delivery-view-tools",
|
|
"binary": "mesh-delivery-view-tools",
|
|
"loads": [
|
|
"mesh-delivery-view-tools"
|
|
]
|
|
},
|
|
{
|
|
"name": "files",
|
|
"kind": "archive",
|
|
"from": "files"
|
|
}
|
|
]
|
|
}
|
|
}
|