From 60467bef7be557ef462932f6bb5b7b0001e927da Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Tue, 26 Mar 2019 16:40:57 -0700 Subject: [PATCH] lncfg/workers: bump default read/write workers from 16 -> 100 Bumps the default read and write handlers to be well above the average number of peers a node has. Since the worker counts specify only a maximum number of concurrent read/write workers, it is expected that the actual usage would converge to the requirements of the node anyway. However, in preparation for a major release, this is a conservative measure to ensure that the default values aren't too low and improve network instability. --- lncfg/workers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lncfg/workers.go b/lncfg/workers.go index fec57ddd..6bbacc5f 100644 --- a/lncfg/workers.go +++ b/lncfg/workers.go @@ -5,11 +5,11 @@ import "fmt" const ( // DefaultReadWorkers is the default maximum number of concurrent // workers used by the daemon's read pool. - DefaultReadWorkers = 16 + DefaultReadWorkers = 100 // DefaultWriteWorkers is the default maximum number of concurrent // workers used by the daemon's write pool. - DefaultWriteWorkers = 16 + DefaultWriteWorkers = 100 // DefaultSigWorkers is the default maximum number of concurrent workers // used by the daemon's sig pool.