alphagov/estools — pull request #2 by tombooth (2013-08-23 09:57:50+00:00)
Title: [#54279622] Add options to compress old indices

In order to save space when rotating out old indices we wanted the
option to compress them once they reach a certain age (defaults to
1 day as this should mean they get compressed as soon as rotated).

This functionality can be enabled by adding the argument --compress-old
to es-rotate, with --compress-maxage expressing the cutoff time delta
(in days) before they get compressed (default 1).

As deleting old indices and compressing them shared much code, I pulled
out the logic picking old indices before running a passed in function on
them.

Because this has added new functionality to estools I have bumped the
minor version number yielding 1.1.0.