10 lines
1.0 KiB
Markdown
10 lines
1.0 KiB
Markdown
# ryzen7-script
|
|
|
|
Customization test script for the RYZEN-7 gateway on castro — reads host signals through the sandbox sidecar and runs in an image-builder image.
|
|
|
|
Reads `ryzen7-cpu`, `ryzen7-ram` and `ryzen7-disk` (43, 44, 45) once a second, and writes their maximum to `ryzen7-load-index` (54) as an indicator of how loaded the host is. All three inputs are percentages on the same scale, so the maximum is meaningful without normalisation.
|
|
|
|
`ryzen7-load-index` is an i7state `state_signal` with a timeout, so it reads NaN when the job stops writing. A stale value is therefore impossible: if the number is there, the job is alive. When an input is missing or not yet reporting, the script skips the write rather than writing a value derived from partial data, which lets the signal time out honestly.
|
|
|
|
Runs in `docker.izazpi.cloud/infra/infra-python:0.1.12`, which carries the `i7lib` wheel. There is no library folder on the host — `i7lib` reaches the script only through the image, so a new `i7lib` version means a new image tag here.
|