Skip to content

Add a scheduled translog retention check#25622

Merged
bleskes merged 2 commits intoelastic:masterfrom
bleskes:translog_scheduled_trimming
Jul 10, 2017
Merged

Add a scheduled translog retention check#25622
bleskes merged 2 commits intoelastic:masterfrom
bleskes:translog_scheduled_trimming

Conversation

@bleskes
Copy link
Copy Markdown
Contributor

@bleskes bleskes commented Jul 10, 2017

We currently check whether translog files can be trimmed whenever we create a new translog generation or close a view. However #25294 added a long translog retention period (12h, max 512MB by default), which means translog files should potentially be cleaned up long after there isn't any indexing activity to trigger flushes/the creation of new translog files. We therefore need a scheduled background check to clean up those files once they are no longer needed.

Relates to #10708

Copy link
Copy Markdown
Contributor

@s1monw s1monw left a comment

Choose a reason for hiding this comment

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

LGTM

@bleskes bleskes merged commit 09378f4 into elastic:master Jul 10, 2017
@bleskes bleskes deleted the translog_scheduled_trimming branch July 10, 2017 08:28
bleskes added a commit that referenced this pull request Jul 10, 2017
@clintongormley clintongormley added :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. and removed :Translog :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. labels Feb 13, 2018
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. >feature v6.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants