I was looking at http://cryptonotemining.org/ and it looks really easy to set up. I'm wondering what the ramifications would be if redis lost some data? I'm not too worried about total data loss. But I am curious what would happen if a primary redis server failed and a read-only replica that was 10 minutes out of sync took over. Or if a standalone redis crashed and the checkpoint data was a few minutes behind.
1 Answers
The Redis database constains all the memory of miners' work and balances, found blocks, etc. So losing it would be a bad thing, though not extra bad.
Assuming everything got wiped at once, it'd be functionally identical to starting a new pool from scratch, except you already have miners connected and mining.
This means mainly three things:
- the work history for the current block will be wiped, and only work submitted between the wipeout time and the next block found will be used (same as what happens when a block is found and work history resets)
- miners' current balances get lost.
- info on who to pay for any blocks found that are not yet unlocked is lost
Now, if you have a recent backup, the first one's probably not a big deal (unless you find a block just after that event, where submitted shares don't have time to re-approximate miners' real hash rates), and the second one's a bit annoying, but these are small amounts, typically below 0.2 monero. The third one is pretty bad though, as miners lose (their part of) the entire block.
Now, if the wipeout is not total, then other things can happen. For instance, if the wallet paid something, but this is not recorded, it will be paid again. This time, it's an error to the miners' benefit.
- 34,928
- 2
- 58
- 123