feat: sealing: load SectorsSummary from sealing SectorStats instead of calling API each time #11353
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.
Related Issues
filecoin-project/boost#1733
filecoin-project/boost#1747
(summary of these issues is available in
Additional Info
below)Proposed Changes
Based on the discussions in the two issues mentioned above, and initial issue by @ze42 and @cryptowhizzard, I propose to retrieve the information from the stats (prometheus) rather than from the API.
This PR was quickly discussed by @s0nik42 with @magik6k, and here is a list of changes mades:
Sealing
calledSectorsSummary
in order to return the stats by states available inSectorStats
Additional Info
This is a quick summary to explain the why and why of this change
SectorsSummary
, that will fill the proposalSealingPipelineState.SectorStates
, because it iterates over all sectors to compute the statesOnce this is done, our wish with CIDgravity is to add information in the proposal, information available on boost directly (checkpoints, see issue #1747 here)
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <area>: <change being made>
fix: mempool: Introduce a cache for valid signatures
PR type
: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, testarea
, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps