Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Piece level monitoring w3infra #391

Open
vasco-santos opened this issue Jun 12, 2024 · 0 comments
Open

Piece level monitoring w3infra #391

vasco-santos opened this issue Jun 12, 2024 · 0 comments

Comments

@vasco-santos
Copy link
Contributor

We currently monitor at aggregate level whether aggregates are being offered and accepted by MPs https://github.com/w3s-project/w3filecoin-infra/blob/main/packages/functions/src/monitor/handle-deal-monitor-alert-cron-tick.js (in stack https://github.com/w3s-project/w3filecoin-infra/blob/main/stacks/api-stack.js#L188).

It should be easy to port similar behaviour for w3infra to track piece level monitoring with same thresholds. Instead of relying on https://github.com/w3s-project/w3filecoin-infra/blob/main/packages/functions/src/monitor/handle-deal-monitor-alert-cron-tick.js#L31 it would rely on the PieceStore like we do for the other CRON tick in w3infra: https://github.com/w3s-project/w3infra/blob/main/filecoin/functions/handle-cron-tick.js. This queries the PieceStore for the oldest Pieces pending a deal, and if they were inserted older than the threshold, they would have the alert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant