Skip to content
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

Stress test the ChainWorkers cache #3052

Open
jvff opened this issue Dec 17, 2024 · 0 comments
Open

Stress test the ChainWorkers cache #3052

jvff opened this issue Dec 17, 2024 · 0 comments
Labels
Milestone

Comments

@jvff
Copy link
Contributor

jvff commented Dec 17, 2024

Motivation

The ChainWorkers cache should usually contain at least a few idle workers. However, it should still operate normally under heavy load (as in, many new attempts for chain workers that aren't already in the cache). There should be tests to reproduce this scenario.

Proposal

Write unit tests that simulate many requests for a number of chain workers larger than the cache size. A simulated ChainWorkerRequest::PretendToBeBusy can be added for testing purposes. The variant can include a field to specify the Duration of the request, and there could be tests for long delays and short delays.

@jvff jvff added the testing label Dec 17, 2024
@jvff jvff added this to the Mainnet milestone Dec 17, 2024
@jvff jvff changed the title Load test the ChainWorkers cache Stress test the ChainWorkers cache Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant