Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flags: bump default value of db.size.limit to 8TB #8869

Merged
merged 1 commit into from
Nov 30, 2023
Merged
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
16 changes: 8 additions & 8 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,19 @@ package utils
import (
"crypto/ecdsa"
"fmt"
"github.com/ledgerwatch/erigon/rpc/rpccfg"
"math/big"
"path/filepath"
"runtime"
"strconv"
"strings"
"time"

"github.com/ledgerwatch/erigon/cl/clparams"

"github.com/c2h5oh/datasize"
"github.com/ledgerwatch/log/v3"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/urfave/cli/v2"

"github.com/ledgerwatch/erigon-lib/chain/networkname"
"github.com/ledgerwatch/erigon-lib/chain/snapcfg"
libcommon "github.com/ledgerwatch/erigon-lib/common"
Expand All @@ -41,11 +43,8 @@ import (
"github.com/ledgerwatch/erigon-lib/direct"
downloadercfg2 "github.com/ledgerwatch/erigon-lib/downloader/downloadercfg"
"github.com/ledgerwatch/erigon-lib/txpool/txpoolcfg"
"github.com/ledgerwatch/log/v3"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/urfave/cli/v2"

"github.com/ledgerwatch/erigon/cl/clparams"
"github.com/ledgerwatch/erigon/cmd/downloader/downloadernat"
"github.com/ledgerwatch/erigon/cmd/utils/flags"
common2 "github.com/ledgerwatch/erigon/common"
Expand All @@ -61,6 +60,7 @@ import (
"github.com/ledgerwatch/erigon/p2p/nat"
"github.com/ledgerwatch/erigon/p2p/netutil"
"github.com/ledgerwatch/erigon/params"
"github.com/ledgerwatch/erigon/rpc/rpccfg"
)

// These are all the command line flags we support.
Expand Down Expand Up @@ -746,7 +746,7 @@ var (
DbSizeLimitFlag = cli.StringFlag{
Name: "db.size.limit",
Usage: "Runtime limit of chaindata db size. You can change value of this flag at any time.",
Value: (3 * datasize.TB).String(),
Value: (8 * datasize.TB).String(),
}
ForcePartialCommitFlag = cli.BoolFlag{
Name: "force.partial.commit",
Expand Down
Loading