You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[debug client] Limit key import concurrency to 4 (#591)
## Description
<!-- REMOVE this comment block after following the instructions
1. Add a summary of the change including: motivation, reasons, context,
dependencies, etc...
2. If applicable, specify the key files that should be looked at.
-->
`make localnet_client_debug` currently fails on machines with low~ish
amount of RAM. Key import loads 999 validator keys quickly, but
cryptographic calculations are so intense on memory it only imports 250
keys before dying OOM on my 16Gi virtual machine.
## Type of change
Please mark the relevant option(s):
- [ ] New feature, functionality or library
- [x] Bug fix
- [ ] Code health or cleanup
- [ ] Major breaking change
- [ ] Documentation
- [ ] Other <!-- add details here if it a different type of change -->
## List of changes
<!-- REMOVE this comment block after following the instructions
List out all the changes made
-->
- Wrapped key import part into concurrency limiter
(https://github.com/korovkin/limiter)
## Testing
- [x] `make develop_test`
- [x] `make localnet_client_debug`
- [x] `make client_start && make client_connect`
<!-- REMOVE this comment block after following the instructions
If you added additional tests or infrastructure, describe it here.
Bonus points for images and videos or gifs.
-->
## Required Checklist
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have tested my changes using the available tooling
- [x] I have updated the corresponding CHANGELOG
### If Applicable Checklist
- [ ] I have updated the corresponding README(s); local and/or global
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added, or updated,
[mermaid.js](https://mermaid-js.github.io) diagrams in the corresponding
README(s)
- [ ] I have added, or updated, documentation and
[mermaid.js](https://mermaid-js.github.io) diagrams in `shared/docs/*`
if I updated `shared/*`README(s)
---------
Co-authored-by: Daniel Olshansky <[email protected]>
0 commit comments