Marvel indices taking lot of space? Delete indices older than 7 days!

It looks like Marvel is generating some data everyday. Is there a way to reduce the amount of data generated by marvel? The short answer to the above question is Yes!

[codesyntax lang="bash"]

curator --host 127.0.0.1 show indices --older-than 30 --time-unit days --timestring '%Y.%m.%d' --prefix .marvel
curator --host 127.0.0.1 close indices --older-than 30 --time-unit days --timestring '%Y.%m.%d' --prefix .marvel
curator --host 127.0.0.1 delete indices --older-than 30 --time-unit days --timestring '%Y.%m.%d' --prefix .marvel

[/codesyntax]

If we want to remove all indices from February 2015:

[codesyntax lang="bash"]

curator --host 127.0.0.1 show indices --regex '\.marvel-2015\.02\.*'
curator --host 127.0.0.1 close indices --regex '\.marvel-2015\.02\.*'
curator --host 127.0.0.1 delete indices --regex '\.marvel-2015\.02\.*'

[/codesyntax]

Scrie si tu o vorbulita


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.