bitcoind: bump rpcthread count
This commit is contained in:
parent
46e15ee9cc
commit
e650df30d5
@ -27,6 +27,7 @@ let
|
|||||||
${lib.concatMapStrings (node: "addnode=${node}\n") cfg.addnodes}
|
${lib.concatMapStrings (node: "addnode=${node}\n") cfg.addnodes}
|
||||||
|
|
||||||
# RPC server options
|
# RPC server options
|
||||||
|
${optionalString (cfg.rpcthreads != null) "rpcthreads=${toString cfg.rpcthreads}"}
|
||||||
rpcport=${toString cfg.rpc.port}
|
rpcport=${toString cfg.rpc.port}
|
||||||
rpcwhitelistdefault=0
|
rpcwhitelistdefault=0
|
||||||
${concatMapStringsSep "\n"
|
${concatMapStringsSep "\n"
|
||||||
@ -66,7 +67,6 @@ in {
|
|||||||
default = "";
|
default = "";
|
||||||
example = ''
|
example = ''
|
||||||
par=16
|
par=16
|
||||||
rpcthreads=16
|
|
||||||
logips=1
|
logips=1
|
||||||
'';
|
'';
|
||||||
description = "Additional configurations to be appended to <filename>bitcoin.conf</filename>.";
|
description = "Additional configurations to be appended to <filename>bitcoin.conf</filename>.";
|
||||||
@ -140,6 +140,11 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
rpcthreads = mkOption {
|
||||||
|
type = types.nullOr types.ints.u16;
|
||||||
|
default = null;
|
||||||
|
description = "Set the number of threads to service RPC calls";
|
||||||
|
};
|
||||||
rpcbind = mkOption {
|
rpcbind = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [ "127.0.0.1" ];
|
default = [ "127.0.0.1" ];
|
||||||
|
@ -73,6 +73,9 @@ in {
|
|||||||
discover = false;
|
discover = false;
|
||||||
addresstype = "bech32";
|
addresstype = "bech32";
|
||||||
dbCache = 1000;
|
dbCache = 1000;
|
||||||
|
# higher rpcthread count due to reports that lightning implementations fail
|
||||||
|
# under high bitcoind rpc load
|
||||||
|
rpcthreads = 16;
|
||||||
rpc.users.privileged = {
|
rpc.users.privileged = {
|
||||||
name = "bitcoinrpc";
|
name = "bitcoinrpc";
|
||||||
# Placeholder to be sed'd out by bitcoind preStart
|
# Placeholder to be sed'd out by bitcoind preStart
|
||||||
|
Loading…
Reference in New Issue
Block a user