Skip to content

Commit 49a854c

Browse files
committed
chore: double default db concurrency
1 parent 5c5f9ca commit 49a854c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/p2p/sensor/sensor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ func init() {
443443
log.Error().Err(err).Msg("Failed to mark sensor-id as required persistent flag")
444444
}
445445
f.IntVarP(&inputSensorParams.MaxPeers, "max-peers", "m", 2000, "maximum number of peers to connect to")
446-
f.IntVarP(&inputSensorParams.MaxDatabaseConcurrency, "max-db-concurrency", "D", 10000,
446+
f.IntVarP(&inputSensorParams.MaxDatabaseConcurrency, "max-db-concurrency", "D", 20000,
447447
`maximum number of concurrent database operations to perform (increasing this
448448
will result in less chance of missing data but can significantly increase memory usage)`)
449449
f.BoolVarP(&inputSensorParams.ShouldWriteBlocks, "write-blocks", "B", true, "write blocks to database")

doc/polycli_p2p_sensor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ If no nodes.json file exists, it will be created.
3939
--key string hex-encoded private key (cannot be set with --key-file)
4040
-k, --key-file string private key file (cannot be set with --key)
4141
-D, --max-db-concurrency int maximum number of concurrent database operations to perform (increasing this
42-
will result in less chance of missing data but can significantly increase memory usage) (default 10000)
42+
will result in less chance of missing data but can significantly increase memory usage) (default 20000)
4343
-m, --max-peers int maximum number of peers to connect to (default 2000)
4444
--max-requests int maximum request IDs to track per peer (0 for no limit) (default 2048)
4545
--nat string NAT port mapping mechanism (any|none|upnp|pmp|pmp:<IP>|extip:<IP>) (default "any")

0 commit comments

Comments
 (0)