application-research / autoretrieve

A server to make GraphSync data accessible on IPFS
22 stars 7 forks source link

SP Retrieval Issues for expired deal content #176

Closed davidd8 closed 1 year ago

davidd8 commented 1 year ago

This is a tracking ticket for issues related to SPs serving retrievals for expired deal content as seen in autoretrieve:

Below is the SP feedback:

0 retrievals success for the last 10 days Autoretrieve is requesting expired deals, boost is rejecting the deals rightaway. our #golden-retriever stats are dropping from 83% to 0% The problem has been highlighted a week ago here : https://filecoinproject.slack.com/archives/C03CKDLEWG1/p1675856817927119 --> I'm getting flooded by the following message (like 10 per second!):

2023-02-08T22:41:28.078+1100    ERROR   retrieval       impl/provider.go:434    Retrieval query: GetAsk: GetRetrievalPricingInput: failed to fetch storage deal state: 1 error occurred:
        * deal 2421142 not found - deal may not have completed sealing before deal proposal start epoch, or deal may have been slashed

Checked out the deal on CID Checker, and it expired a few days ago (3rd February). Not sure why or who is requesting a retrieval pricing for an expired deal and why does boost floods the logs with this error (my daemon is also getting errors about it)

rvagg commented 1 year ago

Specifically I think this difference is likely one of the changes impacting throughput:

We even increased SP concurrency from 1 to 2 and it hasn't really lifted much, so we seem to be bottlenecked on the number of "available" SPs - that is the number not already at max-concurrency minus those who have been timed out from failures. Since the number of failures is quite high, and we only penalise failures and don't do the reverse for successes, then 5 failures in a window of 30 seconds is going to get you removed from the pool of available SPs for 10 minutes.

We could consider:

davidd8 commented 1 year ago

Linking https://github.com/filecoin-project/boost/issues/1200 for the Boost side of the issue.