You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* mark mem ballast flag as deprecated
Signed-off-by: Ben Ye <benye@amazon.com>
* fix lint
Signed-off-by: Ben Ye <benye@amazon.com>
* address comments
Signed-off-by: Ben Ye <benye@amazon.com>
---------
Signed-off-by: Ben Ye <benye@amazon.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
*[CHANGE] Ingester: Disable uploading compacted blocks and overlapping compaction in ingester. #5735
8
8
*[CHANGE] Distributor: Count the number of rate-limited samples in `distributor_samples_in_total`. #5714
9
9
*[CHANGE] Ruler: Remove `cortex_ruler_write_requests_total`, `cortex_ruler_write_requests_failed_total`, `cortex_ruler_queries_total`, `cortex_ruler_queries_failed_total`, and `cortex_ruler_query_seconds_total` metrics for the tenant when the ruler deletes the manager for the tenant. #5772
10
+
*[CHANGE] Main: Mark `mem-ballast-size-bytes` flag as deprecated. #5816
10
11
*[CHANGE] Querier: Mark `-querier.ingester-streaming` flag as deprecated. Now query ingester streaming is always enabled. #5817
11
12
*[FEATURE] Ingester: Add per-tenant new metric `cortex_ingester_tsdb_data_replay_duration_seconds`. #5477
Copy file name to clipboardExpand all lines: cmd/cortex/main.go
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,6 @@ func main() {
61
61
var (
62
62
cfg cortex.Config
63
63
eventSampleRateint
64
-
ballastBytesint
65
64
mutexProfileFractionint
66
65
blockProfileRateint
67
66
printVersionbool
@@ -96,12 +95,14 @@ func main() {
96
95
_=flag.CommandLine.Bool(configExpandENV, false, "Expands ${var} or $var in config according to the values of the environment variables.")
97
96
98
97
flag.IntVar(&eventSampleRate, "event.sample-rate", 0, "How often to sample observability events (0 = never).")
99
-
flag.IntVar(&ballastBytes, "mem-ballast-size-bytes", 0, "Size of memory ballast to allocate.")
100
98
flag.IntVar(&mutexProfileFraction, "debug.mutex-profile-fraction", 0, "Fraction of mutex contention events that are reported in the mutex profile. On average 1/rate events are reported. 0 to disable.")
101
99
flag.IntVar(&blockProfileRate, "debug.block-profile-rate", 0, "Fraction of goroutine blocking events that are reported in the blocking profile. 1 to include every blocking event in the profile, 0 to disable.")
102
100
flag.BoolVar(&printVersion, "version", false, "Print Cortex version and exit.")
103
101
flag.BoolVar(&printModules, "modules", false, "List available values that can be used as target.")
104
102
103
+
//lint:ignore faillint Need to pass the global logger like this for warning on deprecated methods
104
+
flagext.DeprecatedFlag(flag.CommandLine, "mem-ballast-size-bytes", "Deprecated: Setting this flag will not take any effect, for similar functionality use GOMEMLIMIT. Size of memory ballast to allocate", util_log.Logger)
105
+
105
106
usage:=flag.CommandLine.Usage
106
107
flag.CommandLine.Usage=func() { /* don't do anything by default, we will print usage ourselves, but only when requested. */ }
0 commit comments