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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2024-11-12 12:35:31 +10:30
committed by Vincenzo Palazzo
parent b34adc704b
commit 49380239e9

View File

@@ -13,7 +13,7 @@ static struct clean_info *timer_cinfo;
static struct plugin *plugin;
/* This is NULL if it's running now. */
static struct plugin_timer *cleantimer;
static u64 max_entries_per_call = 10000;
static u64 max_entries_per_call = 100;
enum subsystem_type {
FORWARDS,