Skip to content

Commit

Permalink
[222] Add autocomaction to ConfigMap (aenix-io#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenmarten authored Jun 2, 2024
1 parent a79a3f6 commit 010228b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/controller/factory/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@ func generateEtcdArgs(cluster *etcdaenixiov1alpha1.EtcdCluster) []string {
}
}

autoCompactionSettings := []string{
"--auto-compaction-retention=5m",
"--snapshot-count=10000",
}

args = append(args, []string{
"--name=$(POD_NAME)",
"--listen-metrics-urls=http://0.0.0.0:2381",
Expand All @@ -325,6 +330,7 @@ func generateEtcdArgs(cluster *etcdaenixiov1alpha1.EtcdCluster) []string {
args = append(args, peerTlsSettings...)
args = append(args, serverTlsSettings...)
args = append(args, clientTlsSettings...)
args = append(args, autoCompactionSettings...)

return args
}
Expand Down

0 comments on commit 010228b

Please sign in to comment.