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

Make translog fsync configurable #108242

Merged
merged 7 commits into from May 6, 2024

Conversation

idegtiarenko
Copy link
Contributor

This change introduces fsync property on TranslogConfig object.
This property allows to disable fsyncs. This might be useful if translog is backed up by another persistent storage.

Related to: ES-8430

@idegtiarenko idegtiarenko added >non-issue :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. Team:Distributed Meta label for distributed team v8.15.0 labels May 3, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@@ -1929,7 +1930,8 @@ public static String createEmptyTranslog(
},
BigArrays.NON_RECYCLING_INSTANCE,
DiskIoBufferPool.INSTANCE,
(d, s, l) -> {}
TranslogConfig.NOOP_OPERATION_LISTENER,
true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty translog is always fsynced. Not sure if it is important to make it configurable as well

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, we can tackle that independently if we see it pop up.

Copy link
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@@ -1929,7 +1930,8 @@ public static String createEmptyTranslog(
},
BigArrays.NON_RECYCLING_INSTANCE,
DiskIoBufferPool.INSTANCE,
(d, s, l) -> {}
TranslogConfig.NOOP_OPERATION_LISTENER,
true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, we can tackle that independently if we see it pop up.

@idegtiarenko idegtiarenko merged commit 0d5b80a into elastic:main May 6, 2024
15 checks passed
@idegtiarenko idegtiarenko deleted the do_not_fsync_translog branch May 6, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Engine Anything around managing Lucene and the Translog in an open shard. >non-issue Team:Distributed Meta label for distributed team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants