pds_log_bytes (spec/OPERATIONS.md) is the bytes of every log and checkpoint in the data directory. crates/pds-server/src/ops/metrics.rs (render) answers it by listing every account's DID (Directory::dids) and, for each account not loaded, listing its directory and sizing its files (directory::files_bytes).
What it costs
One directory listing and a few stats an account, on every scrape: with 500000 accounts, well over a million system calls each time Prometheus asks, typically every 15 seconds. Not measured; read from the code.
What would fix it
A total kept as logs are appended, sealed and compacted, with the bytes of the accounts not yet loaded since the start either kept in the service checkpoint's summary or sized once in the background.
What would check it
The scale run, at 100000 accounts, holding a scrape of /metrics to a time that does not grow with the accounts.
pds_log_bytes(spec/OPERATIONS.md) is the bytes of every log and checkpoint in the data directory.crates/pds-server/src/ops/metrics.rs(render) answers it by listing every account's DID (Directory::dids) and, for each account not loaded, listing its directory and sizing its files (directory::files_bytes).What it costs
One directory listing and a few
stats an account, on every scrape: with 500000 accounts, well over a million system calls each time Prometheus asks, typically every 15 seconds. Not measured; read from the code.What would fix it
A total kept as logs are appended, sealed and compacted, with the bytes of the accounts not yet loaded since the start either kept in the service checkpoint's summary or sized once in the background.
What would check it
The scale run, at 100000 accounts, holding a scrape of
/metricsto a time that does not grow with the accounts.