Skip to content

Commit

Permalink
Using proper LogPrunePageSize
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz-sekara committed Mar 18, 2024
1 parent 6c0f2b7 commit 7baa4b2
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 64 deletions.
3 changes: 2 additions & 1 deletion core/chains/evm/config/toml/defaults/fallback.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ FinalityTagEnabled = false
LogBackfillBatchSize = 1000
LogPollInterval = '15s'
LogKeepBlocksDepth = 100000
LogPrunePageSize = 0
# CCIP uses paging when removing logs to avoid pushing too much presssure on the database
LogPrunePageSize = 10000
BackupLogPollerBlockDelay = 100
MinContractPayment = '.00001 link'
MinIncomingConfirmations = 3
Expand Down
2 changes: 1 addition & 1 deletion core/config/docs/chains-evm.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ LogPollInterval = '15s' # Default
LogKeepBlocksDepth = 100000 # Default
# **ADVANCED**
# LogPrunePageSize defines size of the page for pruning logs. Controls how many logs/blocks (at most) are deleted in a single prune tick. Default value 0 means no paging, delete everything at once.
LogPrunePageSize = 0 # Default
LogPrunePageSize = 10000 # Default
# **ADVANCED**
# BackupLogPollerBlockDelay works in conjunction with Feature.LogPoller. Controls the block delay of Backup LogPoller, affecting how far behind the latest finalized block it starts and how often it runs.
# BackupLogPollerDelay=0 will disable Backup LogPoller (_not recommended for production environment_).
Expand Down
3 changes: 2 additions & 1 deletion docs/CHANGELOG_CCIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added optional `PriceReportingDisabled` to signal lane should not report gas and token prices.
- `OffRamp` offchain config changed:
- `MaxGasPrice` and `DestMaxGasPrice` will be ignored if specified. DestMaxGasPrice will be read from PriceMax in chain TOML.

- All LogPoller's filters have now retention defined. This means that the LogPoller will remove logs older than the retention defined per filter.
Additionally, logs are now removed from the database in batches, defined by `LogPrunePageSize` in the toml config

## 1.4.0 - 2024-02-16

Expand Down
Loading

0 comments on commit 7baa4b2

Please sign in to comment.