From f5b884910622a4d13c907657dd130c2b1bb940f2 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Fri, 22 Jun 2018 22:48:20 +0400 Subject: [PATCH] bump max connections number to 900 --- config/config.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config/config.go b/config/config.go index 0c7fd5df6..e86b0e871 100644 --- a/config/config.go +++ b/config/config.go @@ -251,10 +251,9 @@ func DefaultRPCConfig() *RPCConfig { GRPCMaxOpenConnections: 900, // no ipv4 Unsafe: false, - // should be < ({ulimit -Sn} - {MaxNumPeers} - {N of wal, db and other open files}) / 2 - // divided by 2 because 1 fd for ipv4, 1 fd - ipv6 - // 1024 - 50 - 50 = 924 / 2 = ~450 - MaxOpenConnections: 450, + // should be < {ulimit -Sn} - {MaxNumPeers} - {N of wal, db and other open files} + // 1024 - 50 - 50 = 924 = ~900 + MaxOpenConnections: 900, } }