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
cmd.Flag("receive.store-matcher-converter-cache-capacity", "The number of label matchers to cache in the matcher converter for the Store API. Set to 0 to disable to cache. Default is 0.").
cmd.Flag("receive.max-pending-grcp-write-requests", "Reject right away gRPC write requests when this number of requests are pending. Value 0 disables this feature.").
rc.featureList=cmd.Flag("enable-feature", "Comma separated experimental feature names to enable. The current list of features is "+metricNamesFilter+".").Default("").Strings()
cmd.Flag("store.limits.request-series", "The maximum series allowed for a single Series request. The Series call fails if this limit is exceeded. 0 means no limit.").Default("0").Uint64Var(&l.SeriesPerRequest)
115
118
cmd.Flag("store.limits.request-samples", "The maximum samples allowed for a single Series request, The Series call fails if this limit is exceeded. 0 means no limit. NOTE: For efficiency the limit is internally implemented as 'chunks limit' considering each chunk contains a maximum of 120 samples.").Default("0").Uint64Var(&l.SamplesPerRequest)
119
+
cmd.Flag("store.limits.pending-requests", "Reject gRPC series requests right away when this number of requests are pending. Value 0 disables this feature.").
120
+
Default("0").Int32Var(&l.PendingRequests)
116
121
}
117
122
118
123
var_ storepb.StoreServer=&limitedStoreServer{}
@@ -123,6 +128,13 @@ type limitedStoreServer struct {
123
128
newSeriesLimiterSeriesLimiterFactory
124
129
newSamplesLimiterChunksLimiterFactory
125
130
failedRequestsCounter*prometheus.CounterVec
131
+
132
+
// This is a read-only field once it's set.
133
+
// Value 0 disables the feature.
134
+
maxPendingRequestsint32
135
+
pendingRequests atomic.Int32
136
+
maxPendingRequestLimitHit prometheus.Counter
137
+
pendingRequestsGauge prometheus.Gauge
126
138
}
127
139
128
140
// NewLimitedStoreServer creates a new limitedStoreServer.
0 commit comments