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

chore: change stash defaults #3136

Merged
merged 10 commits into from
Apr 24, 2023
Merged

chore: change stash defaults #3136

merged 10 commits into from
Apr 24, 2023

Conversation

cisse21
Copy link
Member

@cisse21 cisse21 commented Mar 29, 2023

Description

Enable faster flushing of proc error tables

Notion Ticket

Notion Link

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

Comment on lines 43 to 44
config.RegisterDurationConfigVariable(5, &errReadLoopSleep, true, time.Second, []string{"Processor.errReadLoopSleep", "errReadLoopSleepInS"}...)
config.RegisterIntConfigVariable(10000, &errDBReadBatchSize, true, 1, "Processor.errDBReadBatchSize")
Copy link
Contributor

@atzoum atzoum Mar 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can keep the current numbers and skip sleeping for errReadLoopSleep until the stash loop picks up less jobs than the errDBReadBatchSize. This way we can keep memory utilisation low and flush fast at the same time

@github-actions
Copy link

This PR is considered to be stale. It has been open 20 days with no further activity thus it is going to be closed in 5 days. To avoid such a case please consider removing the stale label manually or add a comment to the PR.

@github-actions github-actions bot added the Stale label Apr 19, 2023
@cisse21 cisse21 removed the Stale label Apr 24, 2023
@cisse21 cisse21 merged commit e2f019d into master Apr 24, 2023
14 checks passed
@cisse21 cisse21 deleted the chore.flushProcErrors branch April 24, 2023 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants