Skip to content

Commit

Permalink
receive: unhide tsdb.out-of-order.time-window and tsdb.out-of-order.c…
Browse files Browse the repository at this point in the history
…ap-max (#8032)

* Unhide tsdb.out-of-order.time-window and tsdb.out-of-order.cap-max

Signed-off-by: milinddethe15 <[email protected]>

* make docs

Signed-off-by: milinddethe15 <[email protected]>

* make docs

Signed-off-by: milinddethe15 <[email protected]>

---------

Signed-off-by: milinddethe15 <[email protected]>
  • Loading branch information
milinddethe15 authored Jan 5, 2025
1 parent 07734b9 commit 40d844d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/thanos/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -1007,11 +1007,11 @@ func (rc *receiveConfig) registerFlag(cmd extkingpin.FlagClause) {
rc.tsdbOutOfOrderTimeWindow = extkingpin.ModelDuration(cmd.Flag("tsdb.out-of-order.time-window",
"[EXPERIMENTAL] Configures the allowed time window for ingestion of out-of-order samples. Disabled (0s) by default"+
"Please note if you enable this option and you use compactor, make sure you have the --enable-vertical-compaction flag enabled, otherwise you might risk compactor halt.",
).Default("0s").Hidden())
).Default("0s"))

cmd.Flag("tsdb.out-of-order.cap-max",
"[EXPERIMENTAL] Configures the maximum capacity for out-of-order chunks (in samples). If set to <=0, default value 32 is assumed.",
).Default("0").Hidden().Int64Var(&rc.tsdbOutOfOrderCapMax)
).Default("0").Int64Var(&rc.tsdbOutOfOrderCapMax)

cmd.Flag("tsdb.allow-overlapping-blocks", "Allow overlapping blocks, which in turn enables vertical compaction and vertical query merge. Does not do anything, enabled all the time.").Default("false").BoolVar(&rc.tsdbAllowOverlappingBlocks)

Expand Down
12 changes: 12 additions & 0 deletions docs/components/receive.md
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,18 @@ Flags:
--tsdb.no-lockfile Do not create lockfile in TSDB data directory.
In any case, the lockfiles will be deleted on
next startup.
--tsdb.out-of-order.cap-max=0
[EXPERIMENTAL] Configures the maximum capacity
for out-of-order chunks (in samples). If set to
<=0, default value 32 is assumed.
--tsdb.out-of-order.time-window=0s
[EXPERIMENTAL] Configures the allowed time
window for ingestion of out-of-order samples.
Disabled (0s) by defaultPlease note if you
enable this option and you use compactor, make
sure you have the --enable-vertical-compaction
flag enabled, otherwise you might risk
compactor halt.
--tsdb.path="./data" Data directory of TSDB.
--tsdb.retention=15d How long to retain raw samples on local
storage. 0d - disables the retention
Expand Down

0 comments on commit 40d844d

Please sign in to comment.