Overview#
How the tables connect and what they cost.
What a keepalive is#
Once a minute shirudo status --otel sends one OTLP log record with
the event name shirudo.keepalive. Its body is a compact JSON object,
sent as a string, and its only attribute, shirudo.quote, is a TPM
quote over the SHA-256 of that string:
attest=<base64 TPMS_ATTEST>;sig=<base64 TPMT_SIGNATURE>;ak=<base64 TPMT_PUBLIC>
A node is known by the name of its attestation key, ak_name, never
by the host name it claims, and its records are ordered by the quote’s
reset_count and clock, never by a wall clock.
How a keepalive moves through the schema#
A keepalive that a target sends enters the backend at
otel.otel_logs, is checked once on its way into checked, and from there fans out on insert to
keepalive, rejected, nodes,
keepalive_latest and boot_first. Refreshed views then
build node_ops, history_contradictions and
node_status every minute and node_vulns every five.
Each box links to its table.
Where the bytes go#
At a reference fleet of 10,000 nodes sending one keepalive a minute,
following one tree of 65,000 operations, with 50 SBOMs of 500 findings
each. keepalive is counted at its default retention of one
hour; it grows by about 2.9 GB a day of retention at this fleet.
Table |
Reference fleet |
Bytes |
|---|---|---|
0 B |
0 |
|
0 B |
0 |
|
600k rows ≈ 120 MB at the default 1 hour |
120 MB |
|
≈ 10 MB per misbehaving node |
10 MB |
|
10,000 rows ≈ 5 MB |
5 MB |
|
tens of rows, negligible |
under 1 MB |
|
hundreds of rows, negligible |
under 1 MB |
|
65,000 rows ≈ 23 MB |
23 MB |
|
negligible |
under 1 MB |
|
10,000 rows ≈ 2 MB |
2 MB |
|
thousands of rows, negligible |
1 MB |
|
negligible |
under 1 MB |
|
10,000 rows ≈ 2.5 MB |
2 MB |
|
≈ 15 MB |
15 MB |
|
~3 boots each: 30k rows ≈ 5 MB |
5 MB |
|
650M rows ≈ 22 GB (README) |
22 GB |
|
1,000 upatches each: 10M rows ≈ 700 MB |
700 MB |
|
negligible |
under 1 MB |
|
10,000 rows ≈ 7 MB, rewritten every minute |
7 MB |
|
negligible |
under 1 MB |
|
50 × 500 × 7 daily scans: 175k rows ≈ 15 MB |
15 MB |
|
thousands of rows, negligible |
under 1 MB |
|
10,000 × 500: 5M rows ≈ 300 MB, rewritten every 5 minutes |
300 MB |
|
Total, approximate |
All tables at the reference fleet |
about 23.2 GB |
TODO
node_ops grows unbounded with the number of tree operations.
The figure above is for 65,000.