Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions config/localTemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type Local struct {
// what we should tell people to connect to
PublicAddress string `version[0]:""`

MaxConnectionsPerIP int `version[3]:"30"`
MaxConnectionsPerIP int `version[3]:"30" version[27]:"15"`

// 0 == disable
PeerPingPeriodSeconds int `version[0]:"0"`
Expand All @@ -75,8 +75,8 @@ type Local struct {

// IncomingConnectionsLimit specifies the max number of long-lived incoming
// connections. 0 means no connections allowed. Must be non-negative.
// Estimating 5MB per incoming connection, 5MB*800 = 4GB
IncomingConnectionsLimit int `version[0]:"-1" version[1]:"10000" version[17]:"800"`
// Estimating 1.5MB per incoming connection, 1.5MB*2400 = 3.6GB
IncomingConnectionsLimit int `version[0]:"-1" version[1]:"10000" version[17]:"800" version[27]:"2400"`

// BroadcastConnectionsLimit specifies the number of connections that
// will receive broadcast (gossip) messages from this node. If the
Expand Down
4 changes: 2 additions & 2 deletions config/local_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ var defaultLocal = Local{
ForceRelayMessages: false,
GossipFanout: 4,
HeartbeatUpdateInterval: 600,
IncomingConnectionsLimit: 800,
IncomingConnectionsLimit: 2400,
IncomingMessageFilterBucketCount: 5,
IncomingMessageFilterBucketSize: 512,
IsIndexerActive: false,
Expand All @@ -92,7 +92,7 @@ var defaultLocal = Local{
MaxAPIResourcesPerAccount: 100000,
MaxAcctLookback: 4,
MaxCatchpointDownloadDuration: 7200000000000,
MaxConnectionsPerIP: 30,
MaxConnectionsPerIP: 15,
MinCatchpointFileDownloadBytesPerSecond: 20480,
NetAddress: "",
NetworkMessageTraceServer: "",
Expand Down
4 changes: 2 additions & 2 deletions installer/config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"ForceRelayMessages": false,
"GossipFanout": 4,
"HeartbeatUpdateInterval": 600,
"IncomingConnectionsLimit": 800,
"IncomingConnectionsLimit": 2400,
"IncomingMessageFilterBucketCount": 5,
"IncomingMessageFilterBucketSize": 512,
"IsIndexerActive": false,
Expand All @@ -71,7 +71,7 @@
"MaxAPIResourcesPerAccount": 100000,
"MaxAcctLookback": 4,
"MaxCatchpointDownloadDuration": 7200000000000,
"MaxConnectionsPerIP": 30,
"MaxConnectionsPerIP": 15,
"MinCatchpointFileDownloadBytesPerSecond": 20480,
"NetAddress": "",
"NetworkMessageTraceServer": "",
Expand Down
4 changes: 2 additions & 2 deletions test/testdata/configs/config-v27.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"ForceRelayMessages": false,
"GossipFanout": 4,
"HeartbeatUpdateInterval": 600,
"IncomingConnectionsLimit": 800,
"IncomingConnectionsLimit": 2400,
"IncomingMessageFilterBucketCount": 5,
"IncomingMessageFilterBucketSize": 512,
"IsIndexerActive": false,
Expand All @@ -72,7 +72,7 @@
"MaxAPIBoxPerApplication": 100000,
"MaxAPIResourcesPerAccount": 100000,
"MaxCatchpointDownloadDuration": 7200000000000,
"MaxConnectionsPerIP": 30,
"MaxConnectionsPerIP": 15,
"MinCatchpointFileDownloadBytesPerSecond": 20480,
"NetAddress": "",
"NetworkMessageTraceServer": "",
Expand Down