Add support of ES intra-day data rotation 54/1554/6
authorFerenc Tóth <ferenc.2.toth@nokia.com>
Mon, 9 Sep 2019 13:09:58 +0000 (15:09 +0200)
committerFerenc Tóth <ferenc.2.toth@nokia.com>
Sun, 15 Sep 2019 20:05:00 +0000 (22:05 +0200)
commit454cbff6be17bd8ef6cc43d71ceecabc3a7af80e
treebea6e000e24c5365e3480e51f0bd18192f7a8d52
parent1e3c2d8de9eac22e18d7e619d2a829a05ee0e6ae
Add support of ES intra-day data rotation

When filesystem (`/var/log`) usage exceeds 80%, a script starts
dropping the oldest ES index until fs usage goes below 80%.
If there is no more earlier-than-today indices left, this script
starts deleting oldest 100000 log entries to reclaim space as
last resort.

Signed-off-by: Ferenc Tóth <ferenc.2.toth@nokia.com>
Change-Id: I60940b38f896a440b5b0b0ecddbb9a6907341724
SPECS/infra-charts.spec
infra-charts/templates/elasticsearch-configmap.yaml
infra-charts/templates/elasticsearch-data-statefulset.yaml
infra-charts/templates/elasticsearch-master-statefulset.yaml