Data retention time
You can set the database retention time as well as the Elasticsearch storage retention time using the Manager service.
When changing these settings, be aware that long retention requires significant disk space. As a rule of thumb, each map-reduce or Spark job requires about 1 MB of disk space; you can store approximately 1000 jobs per 1 GB of disk.
Setting Database retention time
Stop Unravel
<Unravel installation directory>/unravel/manager stop
Run the following command:
<Unravel installation directory>/unravel/manager config set retention
<Database retention in days>
##For example: <Unravel installation directory>/unravel/manager config set retention 30Important
Ensure to specify the retention period in days.
Apply the changes.
<Unravel installation directory>/unravel/manager config apply
Start Unravel
<Unravel installation directory>/unravel/manager start
Setting Elasticsearch storage retention time
Stop Unravel
<Unravel installation directory>/unravel/manager stop
Run the following command:
<Unravel installation directory>/unravel/manager config set retention elasticsearch
<Elasticsearch retention in weeks>
##For example: <Unravel installation directory>/unravel/manager config set retention elasticsearch 5Important
Ensure to specify the retention period in weeks.
Apply the changes.
<Unravel installation directory>/unravel/manager config apply
Start Unravel
<Unravel installation directory>/unravel/manager start