diff --git a/app/vmstorage/main.go b/app/vmstorage/main.go index c3746b529..2a6be198c 100644 --- a/app/vmstorage/main.go +++ b/app/vmstorage/main.go @@ -15,7 +15,6 @@ import ( "github.com/VictoriaMetrics/VictoriaMetrics/app/vmstorage/servers" "github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo" "github.com/VictoriaMetrics/VictoriaMetrics/lib/envflag" - "github.com/VictoriaMetrics/VictoriaMetrics/lib/fasttime" "github.com/VictoriaMetrics/VictoriaMetrics/lib/flagutil" "github.com/VictoriaMetrics/VictoriaMetrics/lib/fs" "github.com/VictoriaMetrics/VictoriaMetrics/lib/httpserver" @@ -34,14 +33,14 @@ var ( useProxyProtocol = flagutil.NewArrayBool("httpListenAddr.useProxyProtocol", "Whether to use proxy protocol for connections accepted at the given -httpListenAddr . "+ "See https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt . "+ "With enabled proxy protocol http server cannot serve regular /metrics endpoint. Use -pushmetrics.url for metrics pushing") - storageDataPath = flag.String("storageDataPath", "vmstorage-data", "Path to storage data") - vminsertAddr = flag.String("vminsertAddr", ":8400", "TCP address to accept connections from vminsert services") - vmselectAddr = flag.String("vmselectAddr", ":8401", "TCP address to accept connections from vmselect services") - snapshotAuthKey = flagutil.NewPassword("snapshotAuthKey", "authKey, which must be passed in query string to /snapshot* pages") - forceMergeAuthKey = flagutil.NewPassword("forceMergeAuthKey", "authKey, which must be passed in query string to /internal/force_merge pages") - forceFlushAuthKey = flagutil.NewPassword("forceFlushAuthKey", "authKey, which must be passed in query string to /internal/force_flush pages") - snapshotsMaxAge = flagutil.NewDuration("snapshotsMaxAge", "0", "Automatically delete snapshots older than -snapshotsMaxAge if it is set to non-zero duration. Make sure that backup process has enough time to finish the backup before the corresponding snapshot is automatically deleted") - snapshotCreateTimeout = flag.Duration("snapshotCreateTimeout", 0, "Deprecated: this flag does nothing") + storageDataPath = flag.String("storageDataPath", "vmstorage-data", "Path to storage data") + vminsertAddr = flag.String("vminsertAddr", ":8400", "TCP address to accept connections from vminsert services") + vmselectAddr = flag.String("vmselectAddr", ":8401", "TCP address to accept connections from vmselect services") + snapshotAuthKey = flagutil.NewPassword("snapshotAuthKey", "authKey, which must be passed in query string to /snapshot* pages") + forceMergeAuthKey = flagutil.NewPassword("forceMergeAuthKey", "authKey, which must be passed in query string to /internal/force_merge pages") + forceFlushAuthKey = flagutil.NewPassword("forceFlushAuthKey", "authKey, which must be passed in query string to /internal/force_flush pages") + snapshotsMaxAge = flagutil.NewDuration("snapshotsMaxAge", "0", "Automatically delete snapshots older than -snapshotsMaxAge if it is set to non-zero duration. Make sure that backup process has enough time to finish the backup before the corresponding snapshot is automatically deleted") + _ = flag.Duration("snapshotCreateTimeout", 0, "Deprecated: this flag does nothing") _ = flag.Duration("finalMergeDelay", 0, "Deprecated: this flag does nothing") _ = flag.Int("bigMergeConcurrency", 0, "Deprecated: this flag does nothing")