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

Apply backpressure once changes queue reaches a set length #198

Open
jeromegn opened this issue Apr 24, 2024 · 0 comments
Open

Apply backpressure once changes queue reaches a set length #198

jeromegn opened this issue Apr 24, 2024 · 0 comments

Comments

@jeromegn
Copy link
Member

The number of queued changes can really get large if a node has been off for a while and then starts syncing millions of changes. One problem is that ever since we switched to in-SQLite bookkeeping almost exclusively, the logic is forgetful about which versions it has already seen to avoid storing too much metadata in memory.

Corrosion should propagate backpressure from the handle_changes loop so that synchronization stops if the queue reaches a certain length.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant