Skip to content

Commit

Permalink
Increase default db-cache-size to 1GiB
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechos committed Oct 28, 2024
1 parent 5cd51d8 commit aea2165
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/juno/juno.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const (
defaultGRPCPort = 6064
defaultRemoteDB = ""
defaultRPCMaxBlockScan = math.MaxUint
defaultCacheSizeMb = 8
defaultCacheSizeMb = 1024
defaultMaxHandles = 1024
defaultGwAPIKey = ""
defaultCNName = ""
Expand Down
8 changes: 4 additions & 4 deletions cmd/juno/juno_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func TestConfigPrecedence(t *testing.T) {
defaultPendingPollInterval := 5 * time.Second
defaultMaxVMs := uint(3 * runtime.GOMAXPROCS(0))
defaultRPCMaxBlockScan := uint(math.MaxUint)
defaultMaxCacheSize := uint(8)
defaultMaxCacheSize := uint(1024)
defaultMaxHandles := 1024
defaultCallMaxSteps := uint(4_000_000)
defaultGwTimeout := 5 * time.Second
Expand All @@ -76,7 +76,7 @@ func TestConfigPrecedence(t *testing.T) {
"custom network all flags": {
inputArgs: []string{
"--log-level", "debug", "--http-port", "4576", "--http-host", "0.0.0.0",
"--db-path", "/home/.juno", "--pprof", "--db-cache-size", "8",
"--db-path", "/home/.juno", "--pprof", "--db-cache-size", "1024",
"--cn-name", "custom", "--cn-feeder-url", "awesome_feeder_url", "--cn-gateway-url", "awesome_gateway_url",
"--cn-l1-chain-id", "0x1", "--cn-l2-chain-id", "SN_AWESOME",
"--cn-unverifiable-range", "0,10",
Expand Down Expand Up @@ -336,7 +336,7 @@ http-port: 4576
"all flags without config file": {
inputArgs: []string{
"--log-level", "debug", "--http-port", "4576", "--http-host", "0.0.0.0",
"--db-path", "/home/.juno", "--network", "sepolia-integration", "--pprof", "--db-cache-size", "8",
"--db-path", "/home/.juno", "--network", "sepolia-integration", "--pprof", "--db-cache-size", "1024",
},
expectedConfig: &node.Config{
LogLevel: utils.DEBUG,
Expand Down Expand Up @@ -424,7 +424,7 @@ pprof: true
pprof-host: 0.0.0.0
pprof-port: 6064
pending-poll-interval: 5s
db-cache-size: 8
db-cache-size: 1024
`,
inputArgs: []string{
"--log-level", "error", "--http", "--http-port", "4577", "--http-host", "127.0.0.1", "--ws", "--ws-port", "4577", "--ws-host", "127.0.0.1",
Expand Down

0 comments on commit aea2165

Please sign in to comment.