Skip to content

Commit e955a93

Browse files
committed
Update default configuration for revoked HTLC clean-up
The default configuration for removing old rows containing revoked HTLC data after a channel close was too slow and inadequate for most nodes. We update it to use smaller batches without a much shorter interval. Thanks @DerEwige for providing data about their experiments. Fixes #3211
1 parent df75ed5 commit e955a93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

eclair-core/src/main/resources/reference.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,10 @@ eclair {
584584
// down the node, we delete those rows in batches at regular intervals.
585585
revoked-htlc-info-cleaner {
586586
// Number of rows to delete per batch: a higher value will clean up the DB faster, but may have a higher impact on performance.
587-
batch-size = 50000
587+
batch-size = 500
588588
// Frequency at which batches of rows are deleted: a lower value will clean up the DB faster, but may have a higher impact on performance.
589-
interval = 15 minutes
589+
// If you are frequently closing or splicing channels, you may want to increase the default interval if you're seeing IO performance issues.
590+
interval = 1 seconds
590591
}
591592
}
592593

0 commit comments

Comments
 (0)