mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
increase read transactions limit to 32K (#2366)
This commit is contained in:
parent
356567676a
commit
04465e04df
@ -9,7 +9,7 @@ import (
|
||||
"github.com/ledgerwatch/erigon/metrics"
|
||||
)
|
||||
|
||||
const ReadersLimit = 2000 // MDBX_READERS_LIMIT on 64bit system
|
||||
const ReadersLimit = 32000 // MDBX_READERS_LIMIT=32767
|
||||
|
||||
var (
|
||||
ErrAttemptToDeleteNonDeprecatedBucket = errors.New("only buckets from dbutils.DeprecatedBuckets can be deleted")
|
||||
|
2
go.mod
2
go.mod
@ -54,7 +54,7 @@ require (
|
||||
github.com/spf13/cobra v1.1.3
|
||||
github.com/spf13/pflag v1.0.5
|
||||
github.com/stretchr/testify v1.7.0
|
||||
github.com/torquem-ch/mdbx-go v0.15.0
|
||||
github.com/torquem-ch/mdbx-go v0.16.0
|
||||
github.com/ugorji/go/codec v1.1.13
|
||||
github.com/ugorji/go/codec/codecgen v1.1.13
|
||||
github.com/urfave/cli v1.22.5
|
||||
|
2
go.sum
2
go.sum
@ -990,6 +990,8 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1
|
||||
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
|
||||
github.com/torquem-ch/mdbx-go v0.15.0 h1:HUPA06n7tEAyLXv+rFuWvk01FKEm2MavLD9VVEQqMCs=
|
||||
github.com/torquem-ch/mdbx-go v0.15.0/go.mod h1:T2fsoJDVppxfAPTLd1svUgH1kpPmeXdPESmroSHcL1E=
|
||||
github.com/torquem-ch/mdbx-go v0.16.0 h1:x4dTXDvy1w9MxjlAX6J3/bDqIqu4XQDqTR/u2jMnTiA=
|
||||
github.com/torquem-ch/mdbx-go v0.16.0/go.mod h1:T2fsoJDVppxfAPTLd1svUgH1kpPmeXdPESmroSHcL1E=
|
||||
github.com/ttacon/chalk v0.0.0-20160626202418-22c06c80ed31/go.mod h1:onvgF043R+lC5RZ8IT9rBXDaEDnpnw/Cl+HFiw+v/7Q=
|
||||
github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM=
|
||||
github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs=
|
||||
|
@ -220,7 +220,7 @@ func ApplyFlagsForNodeConfig(ctx *cli.Context, cfg *node.Config) {
|
||||
func setPrivateApi(ctx *cli.Context, cfg *node.Config) {
|
||||
cfg.PrivateApiAddr = ctx.GlobalString(PrivateApiAddr.Name)
|
||||
cfg.PrivateApiRateLimit = uint32(ctx.GlobalUint64(PrivateApiRateLimit.Name))
|
||||
maxRateLimit := uint32(ethdb.ReadersLimit - 16)
|
||||
maxRateLimit := uint32(ethdb.ReadersLimit - 128) // leave some readers for P2P
|
||||
if cfg.PrivateApiRateLimit > maxRateLimit {
|
||||
log.Warn("private.api.ratelimit is too big", "force", maxRateLimit)
|
||||
cfg.PrivateApiRateLimit = maxRateLimit
|
||||
|
Loading…
Reference in New Issue
Block a user