Skip to content

Commit 4938023

Browse files
rustyrussellvincenzopalazzo
authored andcommitted
autoclean: don't slam lightningd with 10,000 requests at once.
On a large node, especially with postgres, this causes every other command to take 30 seconds plus. The first, obvious, step is to reduce how many commands we will do at once. Signed-off-by: Rusty Russell <[email protected]>
1 parent b34adc7 commit 4938023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/autoclean.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ static struct clean_info *timer_cinfo;
1313
static struct plugin *plugin;
1414
/* This is NULL if it's running now. */
1515
static struct plugin_timer *cleantimer;
16-
static u64 max_entries_per_call = 10000;
16+
static u64 max_entries_per_call = 100;
1717

1818
enum subsystem_type {
1919
FORWARDS,

0 commit comments

Comments
 (0)