From 49380239e9c475251becec2ea2b32d900c7e9e26 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 12 Nov 2024 12:35:31 +1030 Subject: [PATCH] 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 --- plugins/autoclean.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/autoclean.c b/plugins/autoclean.c index 197d65966..8f4e3fe5a 100644 --- a/plugins/autoclean.c +++ b/plugins/autoclean.c @@ -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,