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

Improve behaviour after being down for a while #3

Open
mjl- opened this issue Feb 25, 2024 · 0 comments
Open

Improve behaviour after being down for a while #3

mjl- opened this issue Feb 25, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@mjl-
Copy link
Owner

mjl- commented Feb 25, 2024

When we start up again, we'll forward the log, potentially doing lots of requests tot he sumdb server. We rate limit ourselves (perhaps a bit too quickly), and keeping printing that we are waiting. We can probably relax the rate limiter a bit, and ideally say for how long we will be sleeping, instead of printing a line each second.

We will also read all new modules/versions in memory. If we've been down for a long time, this will cause trouble. We can verify a new tree, but don't have to process all new records in one transaction. We can just handle them in batches, and commit in between. It would still be nice if we only sent emails at the end. So: first insert ModuleUpdates to notify about, in separate batches, and only then send notifications.

@mjl- mjl- added the help wanted Extra attention is needed label Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant