-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
Validator db read/write ops too high on first startup with empty db #5356
Comments
Can you paste the promquery code for the first metrics screen capture? |
I just changed the prom query to use the vc metrics, the rate interval is 1m, would probably have to add bucket labels to further investigate
|
@dapplion I found the problem, the huge amount of read/writes it due to minMaxSurround.ts. I have to dig into how min-max surround works, likely need to use another value for |
Based on Detecting slashing conditions, it seems like |
Slashers default to a period of 4096 epochs, which means could be fine to only set Maybe could consider setting Alternative would be to implement a different slashing protection strategy like "minimal"/high-watermark strategy as suggested in Eth R&D discord. Edit: It looks like this strategy is also already implemented on top of min-max surround lodestar/packages/validator/src/slashingProtection/attestation/index.ts Lines 99 to 103 in b60b43c
|
Setting maxEpochLookback to 4096 sounds sensible. We can do that plus using the minimal strategy. That has the benefit of producing way smaller exports right? |
No, the slashing export size just depends on data in
I think a better value would be weak subjectivity period epochs but we don't have access to that on the VC side. All of these values are quite theoretical though, so might also be fine with 4096 and possibly allow to override via CLI. |
Actually, right now it even affects the size of the slashing protection but this is a bug which will be fixed with #5437, it loads keys from other buckets which are not valid pubkeys, for those there will not be any The empty records with invalid pubkeys look like this {
"pubkey": "0x47454e455349535f54494d45",
"signed_blocks": [],
"signed_attestations": []
},
{
"pubkey": "0x47454e455349535f56414c494441544f52535f524f4f54",
"signed_blocks": [],
"signed_attestations": []
} |
Describe the bug
Validator db read/write ops too high on first startup with empty db which causes I/O lag and instability in VC. After one or two hours the process stabilizes and read/write ops per second drastically decrease.
Expected behavior
VC should not be unstable for one or two hours if started with an empty db.
Steps to Reproduce
Run VC with a lot of keys (500+) and make sure validator-db is empty. If VC was active before and db was removed, be careful to not get slashed as this also removes the slashing protection db.
Metrics
The text was updated successfully, but these errors were encountered: