Automatically delete data.

Sometimes you want to delete data that is no longer needed. Riak KV provides Global Object Expiration, which is easy to configure and lets you specify a TTL (time to live) for all objects in the cluster. This automatically deletes data at the cluster level so you don’t have to manually delete aged data.

SOMETIMES DATA NEEDS TO BE AUTOMATICALLY DELETED

Riak KV Global Object Expiration includes:

  • The ability to set TTL (time to live) so that all data written before the “retention time” (expiration.retention_time) window is automatically expired and won’t be returned in queries.
  • The ability to define the expiration mode for LevelDB and Bitcask.

To enable and configure Global Object Expiration, you turn expiration on and specify a retention time in seconds, minutes, hours, etc. Data expiration is set based on your storage backend.

To set automatic expiration in LevelDB, use the retention_time setting. In the following example, objects are configured to expire after 8 days and 9 hours:

leveldb.expiration = on
leveldb.expiration.retention_time = 8d9h

 
To set automatic expiration in Bitcask, use the expiry setting. In the following example, objects are configured to expire after 1 days:
 

bitcask.expiry = 1d

 

BENEFITS OF GLOBAL OBJECT EXPIRATION

As data ages, it may no longer be needed. Object Expiration provides an optimized solution for deleting large volumes of aging data to maximize the efficiency of your application.

Reduce operational costs
By automatically deleting data based on policy, you eliminate the need to continuously increase storage and can reclaim space. This means less storage to manage and no need to manually delete data.

Increase performance and scale
Eliminating unwanted or unneeded data keeps your database lean and operationally efficient.

Manage massive amounts of data
Managing data, including deleting unwanted data, can make your application more efficient depending on your use case.

 

  1.  RESILIENCY
  2. MASSIVESCALABILITY
  3. OPERATIONALSIMPLICITY
  4. INTELLIGENTREPLICATION
  5. COMPLEXQUERY SUPPORT
  6. GLOBAL OBJECTEXPIRATION
  7. DOTTED VERSIONVECTORS (DVVs)
  8. RIAK DATA TYPES
  9. ROBUST APIs &CLIENT LIBRARIES
  10. APACHE SPARKCONNECTOR
  11. APACHE MESOSFRAMEWORK
  12. REDIS CACHEINTEGRATION
  13. MULTI-CLUSTERREPLICATION