Skip to content

Commit e2c09cc

Browse files
author
Ganesh Vernekar
committed
Set default value of -ingester.checkpoint-enabled to true
Signed-off-by: Ganesh Vernekar <[email protected]>
1 parent 32ddd44 commit e2c09cc

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* `cortex_querier_bucket_store_blocks_meta_sync_duration_seconds` > `cortex_querier_blocks_meta_sync_duration_seconds`
1515
* `cortex_querier_bucket_store_blocks_meta_sync_consistency_delay_seconds` > `cortex_querier_blocks_meta_sync_consistency_delay_seconds`
1616
* [CHANGE] Experimental TSDB: Modified default values for `compactor.deletion-delay` option from 48h to 12h and `-experimental.tsdb.bucket-store.ignore-deletion-marks-delay` from 24h to 6h. #2414
17+
* [CHANGE] Experimental WAL: Default value of `-ingester.checkpoint-enabled` changed to `true`. #2416
1718
* [FEATURE] Ruler: The `-ruler.evaluation-delay` flag was added to allow users to configure a default evaluation delay for all rules in cortex. The default value is 0 which is the current behavior. #2423
1819
* [ENHANCEMENT] Experimental TSDB: sample ingestion errors are now reported via existing `cortex_discarded_samples_total` metric. #2370
1920
* [ENHANCEMENT] Failures on samples at distributors and ingesters return the first validation error as opposed to the last. #2383

docs/configuration/arguments.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,6 @@ It also talks to a KVStore and has it's own copies of the same flags used by the
343343

344344
Setting this to `true` enables writing to WAL during ingestion.
345345

346-
- `-ingester.checkpoint-enabled`
347-
Set this to `true` to enable checkpointing of in-memory chunks to disk. This is optional which helps in speeding up the replay process.
348-
349346
- `-ingester.checkpoint-duration`
350347
This is the interval at which checkpoints should be created.
351348

docs/configuration/config-file-reference.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,11 @@ walconfig:
390390
# CLI flag: -ingester.wal-enabled
391391
[wal_enabled: <boolean> | default = false]
392392
393-
# Enable checkpointing of in-memory chunks.
393+
# Enable checkpointing of in-memory chunks. It should always be true when
394+
# using normally. Set it to false iff you are doing some small tests as there
395+
# is no mechanism to delete the old WAL yet if checkpoint is disabled.
394396
# CLI flag: -ingester.checkpoint-enabled
395-
[checkpoint_enabled: <boolean> | default = false]
397+
[checkpoint_enabled: <boolean> | default = true]
396398
397399
# Recover data from existing WAL irrespective of WAL enabled/disabled.
398400
# CLI flag: -ingester.recover-from-wal

docs/production/ingesters-with-wal.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ _The WAL is currently considered experimental._
1616
1. Since ingesters need to have the same persistent volume across restarts/rollout, all the ingesters should be run on [statefulset](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/) with fixed volumes.
1717

1818
2. Following flags needs to be set
19-
* `--ingester.wal-dir` to the directory where the WAL data should be stores and/or recovered from. Note that this should be on the mounted volume.
2019
* `--ingester.wal-enabled` to `true` which enables writing to WAL during ingestion.
21-
* `--ingester.checkpoint-enabled` to `true` to enable checkpointing of in-memory chunks to disk. This is optional which helps in speeding up the replay process.
20+
* `--ingester.wal-dir` to the directory where the WAL data should be stores and/or recovered from. Note that this should be on the mounted volume.
2221
* `--ingester.checkpoint-duration` to the interval at which checkpoints should be created. Default is `30m`, and depending on the number of series, it can be brought down to `15m` if there are less series per ingester (say 1M).
2322
* `--ingester.recover-from-wal` to `true` to recover data from an existing WAL. The data is recovered even if WAL is disabled and this is set to `true`. The WAL dir needs to be set for this.
2423
* If you are going to enable WAL, it is advisable to always set this to `true`.

pkg/ingester/wal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (cfg *WALConfig) RegisterFlags(f *flag.FlagSet) {
4242
f.StringVar(&cfg.Dir, "ingester.wal-dir", "wal", "Directory to store the WAL and/or recover from WAL.")
4343
f.BoolVar(&cfg.Recover, "ingester.recover-from-wal", false, "Recover data from existing WAL irrespective of WAL enabled/disabled.")
4444
f.BoolVar(&cfg.WALEnabled, "ingester.wal-enabled", false, "Enable writing of ingested data into WAL.")
45-
f.BoolVar(&cfg.CheckpointEnabled, "ingester.checkpoint-enabled", false, "Enable checkpointing of in-memory chunks.")
45+
f.BoolVar(&cfg.CheckpointEnabled, "ingester.checkpoint-enabled", true, "Enable checkpointing of in-memory chunks. It should always be true when using normally. Set it to false iff you are doing some small tests as there is no mechanism to delete the old WAL yet if checkpoint is disabled.")
4646
f.DurationVar(&cfg.CheckpointDuration, "ingester.checkpoint-duration", 30*time.Minute, "Interval at which checkpoints should be created.")
4747
}
4848

0 commit comments

Comments
 (0)