Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to influxd to flush WALs on shutdown #25422

Open
gwossum opened this issue Oct 2, 2024 · 0 comments
Open

Add option to influxd to flush WALs on shutdown #25422

gwossum opened this issue Oct 2, 2024 · 0 comments
Assignees
Labels
area/tsm area/2.x OSS 2.0 related issues and PRs kind/feature

Comments

@gwossum
Copy link
Member

gwossum commented Oct 2, 2024

Introduce a new CLI argument that specifies influxd should flush or snapshot all its WALs prior to completing shutdown. When this flag is set, influxd will perform cache snapshots on shutdown, which will result in the WAL files being written to TSM files and then deleted.

@gwossum gwossum added area/tsm kind/feature area/2.x OSS 2.0 related issues and PRs labels Oct 2, 2024
@gwossum gwossum self-assigned this Oct 2, 2024
gwossum added a commit that referenced this issue Oct 9, 2024
Add `--storage-wal-flush-on-shutdown` to flush WAL on database shutdown.
On successful shutdown, all WAL data will be committed to TSM files and the
WAL directories will not contain any .wal files.

Closes: #25422
gwossum added a commit that referenced this issue Oct 10, 2024
* feat: add option to flush WAL on shutdown

Add `--storage-wal-flush-on-shutdown` to flush WAL on database shutdown.
On successful shutdown, all WAL data will be committed to TSM files and the
WAL directories will not contain any .wal files.

Closes: #25422
gwossum added a commit that referenced this issue Oct 10, 2024
Add `--storage-wal-flush-on-shutdown` to flush WAL on database shutdown.
On successful shutdown, all WAL data will be committed to TSM files and the
WAL directories will not contain any .wal files.

Clean cherry-pick of #25444 from main-2.x.

Closes: #25422
(cherry picked from commit 96bade4)
gwossum added a commit that referenced this issue Oct 15, 2024
Add `--storage-wal-flush-on-shutdown` to flush WAL on database shutdown.
On successful shutdown, all WAL data will be committed to TSM files and the
WAL directories will not contain any .wal files.

Clean cherry-pick of #25444 from main-2.x.

Closes: #25422
(cherry picked from commit 96bade4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tsm area/2.x OSS 2.0 related issues and PRs kind/feature
Projects
None yet
Development

No branches or pull requests

1 participant