Skip to content

Commit d306d8f

Browse files
committed
fix: increase etcd max storage to 5GiB
Adds QuotaBackendBytes flag and sets it to 5GiB. Ref.: https://etcd.io/docs/v3.3/dev-guide/limit/ Signed-off-by: Juliana Oliveira <juliana@fly.io>
1 parent b6b9563 commit d306d8f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎internal/flyetcd/config.go‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ type Config struct {
3636
AutoCompactionRetention string `yaml:"auto-compaction-retention"`
3737
AuthToken string `yaml:"auth-token"`
3838

39-
MaxSnapshots int `yaml:"max-snapshots"`
40-
MaxWals int `yaml:"max-wals"`
41-
SnapshotCount int `yaml:"snapshot-count"`
39+
MaxSnapshots int `yaml:"max-snapshots"`
40+
MaxWals int `yaml:"max-wals"`
41+
SnapshotCount int `yaml:"snapshot-count"`
42+
QuotaBackendBytes int `yaml:"quota-backend-bytes"`
4243
}
4344

4445
func NewConfig() (*Config, error) {
@@ -65,7 +66,8 @@ func NewConfig() (*Config, error) {
6566
AuthToken: "",
6667
MaxSnapshots: 10,
6768
MaxWals: 10,
68-
SnapshotCount: 10000, // Default
69+
SnapshotCount: 10000, // Default
70+
QuotaBackendBytes: 5368709120, // 5GiB
6971
}
7072

7173
if err := cfg.SetAuthToken(); err != nil {

0 commit comments

Comments
 (0)