Home

Setting retention time in Unravel server

You can set the database retention time using the Manager service.

When changing these settings, be aware that the 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.

  1. Stop Unravel

    <Unravel installation directory>/unravel/manager stop
    
  2. Change the setting.

    <Unravel installation directory>/unravel/manager config properties set com.unraveldata.retention.max.days <no of days>
    <Unravel installation directory>/unravel/manager config properties set com.unraveldata.history.maxSize.weeks <no of weeks>
    
    ##For example:
    
    /opt/unravel/manager config properties set com.unraveldata.retention.max.days=30
    /opt/unravel/manager config properties set com.unraveldata.history.maxSize.weeks=5
    
  3. Apply the changes.

    <Unravel installation directory>/unravel/manager config refresh
    
  4. Start Unravel

    <Unravel installation directory>/unravel/manager start