Closed littleskunk closed 6 years ago
Was thinking about this earlier. I don't know if lastSeen
will be the best option, but we need a way to clear out the benchmarking pool with multiple repeated failures.
Long time offline farmer should move responseTime close to 90sec. I guess it will take more than 7 days to get a responseTime of more than 60sec.
A perfect solution would be ignoring timeoutRate 1 in combination with: https://github.com/Storj/complex/issues/82 (increase timeoutRate on failed ALLOC) https://github.com/Storj/bridge/pull/521#issuecomment-356667583 (reset timeoutRate after 72 hours)
Another option is to mark spaceAvailable:false
with a day's worth of failed ALLOC responses, and when the farmer comes back online they will change it to spaceAvailable:true
again and enter the benchmark pool again.
Yes please. That sounds like a very good idea :)
Package Versions
Replace the values below using the output from
npm list storj-bridge
.Expected Behavior
Please describe the program's expected behavior. Include an example of your usage code in the back ticks below if applicable.
Actual Behavior
Please describe the program's actual behavior. Please include any stack traces or log output in the back ticks below.
https://github.com/Storj/bridge/blob/863b2aa09715e2e0470af8b6947e807b7d330c60/lib/server/routes/frames.js#L174-L175