From c58aa2711a0f9ef84ace1e9dc003c5ce243adb9e Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 15 Apr 2024 14:51:47 +0100 Subject: Make the server parallelism configurable And drop the default to 1. --- scripts/nar-herder.in | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'scripts/nar-herder.in') diff --git a/scripts/nar-herder.in b/scripts/nar-herder.in index e70f5f3..459526e 100644 --- a/scripts/nar-herder.in +++ b/scripts/nar-herder.in @@ -306,7 +306,13 @@ (lambda (opt name arg result) (alist-cons 'mirror arg - (alist-delete 'mirror result)))))) + (alist-delete 'mirror result)))) + + (option '("parallelism") #t #f + (lambda (opt name arg result) + (alist-cons 'parallelism + (string->number arg) + (alist-delete 'parallelism result)))))) (define %server-option-defaults '((port . 8080) @@ -317,7 +323,9 @@ (cached-compression-workers . 2) (cached-compression-min-uses . 3) - (recent-changes-limit . 32768))) + (recent-changes-limit . 32768) + + (parallelism . 1))) (define %check-options (list)) -- cgit v1.2.3