-
Notifications
You must be signed in to change notification settings - Fork 42
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
LogPoller support for MaxLogsKept #1338
Open
reductionista
wants to merge
7
commits into
ccip-develop
Choose a base branch
from
max-logs-kept-tests
base: ccip-develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on Sep 11, 2024
-
- Add DeleteExcessLogs(), benchmarks for that, and DeleteExpiredLogs(…
…) with limit=1000 - Add id column as PRIMARY KEY for evm.logs & evm.log_poller_blocks - Add UNIQUE INDEXes to replace previous primary keys - Set MaxLogsKept = 1 for contract transmitter - Add logging of when pruning happens and whether it was fully completed
Configuration menu - View commit details
-
Copy full SHA for bdc5bbb - Browse repository at this point
Copy the full SHA bdc5bbbView commit details -
Split DeleteExcessLogs into FindExcessLogs & DeleteLogsByRowIds
Also, add WithMaxLogsKept
Configuration menu - View commit details
-
Copy full SHA for 33126e6 - Browse repository at this point
Copy the full SHA 33126e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8064882 - Browse repository at this point
Copy the full SHA 8064882View commit details -
Configuration menu - View commit details
-
Copy full SHA for c1ad867 - Browse repository at this point
Copy the full SHA c1ad867View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43c542d - Browse repository at this point
Copy the full SHA 43c542dView commit details -
Lower LogPrunePageSize from default 10,000 to 1500
With present settings, it's running once every 40 mins and deleting around 3200 logs. This only takes a few seconds, but appears to be slowing down other queries a bit when it happens. Cutting this down to 1500 will hopefully keep it more stable.
Configuration menu - View commit details
-
Copy full SHA for c884ea7 - Browse repository at this point
Copy the full SHA c884ea7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 49648cc - Browse repository at this point
Copy the full SHA 49648ccView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.