Browse Source

bump max connections number to 900

pull/1781/head
Anton Kaliaev 6 years ago
parent
commit
f5b8849106
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      config/config.go

+ 3
- 4
config/config.go View File

@ -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,
}
}


Loading…
Cancel
Save