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
f.DurationVar(&cfg.ChunkAgeJitter, "ingester.chunk-age-jitter", 20*time.Minute, "Range of time to subtract from MaxChunkAge to spread out flushes")
99
97
f.BoolVar(&cfg.SpreadFlushes, "ingester.spread-flushes", false, "If true, spread series flushes across the whole period of MaxChunkAge")
100
98
f.IntVar(&cfg.ConcurrentFlushes, "ingester.concurrent-flushes", 50, "Number of concurrent goroutines flushing to dynamodb.")
101
-
f.BoolVar(&cfg.CheckOnCreate, "ingester.check-token-on-create", false, "Check that newly created streams fall within expected token ranges")
102
-
f.BoolVar(&cfg.CheckOnAppend, "ingester.check-token-on-append", false, "Check that existing streams appended to fall within expected token ranges")
103
-
f.BoolVar(&cfg.CheckOnTransfer, "ingester.check-token-on-transfer", false, "Check that streams transferred in using the transfer mechanism fall within expected token ranges")
99
+
f.BoolVar(&cfg.CheckTokens, "ingester.check-tokens", false, "Check tokens for streams that are created or appended to.")
104
100
f.DurationVar(&cfg.RateUpdatePeriod, "ingester.rate-update-period", 15*time.Second, "Period with which to update the per-user ingestion rates.")
105
101
}
106
102
@@ -134,8 +130,8 @@ type Ingester struct {
134
130
walWAL
135
131
136
132
// Stops specific appends
137
-
blockedTokenMtx sync.RWMutex
138
-
blockedRangesmap[ring.TokenRange]bool
133
+
blockedRangesMtx sync.RWMutex
134
+
blockedRangesmap[ring.TokenRange]bool
139
135
140
136
// Hook for injecting behaviour from tests.
141
137
preFlushUserSeriesfunc()
@@ -299,21 +295,22 @@ func (i *Ingester) StopIncomingRequests() {
299
295
i.userStatesMtx.Lock()
300
296
deferi.userStatesMtx.Unlock()
301
297
i.stopped=true
302
-
return
303
298
}
304
299
305
-
// When we are incrementally transferring tokens, we want to wait
306
-
// for there to be no blocked ranges on our local ingester.
0 commit comments