observer: block headroom SLI demo#533
Draft
x3c41a wants to merge 4 commits into
Draft
Conversation
Adds observer/ with a small PAPI script that exercises three SLIs against a Bulletin RPC (Paseo today): - Block production: actual vs expected by slot cadence - Block headroom: per-block stored count and bytes below 80% of caps - Authorization lifecycle: event-derived model vs on-chain storage Demo only. No Prometheus exporter, no alerting, no Bitswap probe (follow-up). README documents how to run against Paseo and current limitations.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Parablocks are produced at the relay-chain slot cadence under async backing, not at the AURA SlotDuration constant. The expected-block denominator in the production SLI must use 6s to match reality. Also document that the SLO window is 2 weeks.
Strip how-to-read-the-code prose from README and the file header. Keep the why (what these SLIs are, the 2-week window, scope limits) and the only how that's necessary: the three commands to run.
Drop block production and authorization tracking from the demo so this PR lands one SLI at a time. The other two SLIs (and the Bitswap Read-ability probe) get their own PRs once this one's reviewed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a standalone
observer/directory with a small PAPI script that exercises one chain-derived SLI for Bulletin Chain: block headroom.For each finalized block on Paseo Bulletin, the script counts
transactionStorage.Storedevents and sums thesizefield ofTransactionStorage::Transactions(N), then classifies the block as good (bothcount < 0.8 × 512andbytes < 0.8 × 8 MB) or bad. Running SLI =good / (good + bad). SLO window is 2 weeks.Out of scope here, planned as follow-up PRs:
See
observer/README.mdfor run instructions and current limitations.