You can control the size of the performance database by setting values in the /usr/local/megha/conf/sys/app.db.purge.properties file.
The database purging activity is scheduled daily at 00:00 UTC. However, the
purging activity starts only when the Analyzer detail view server is not performing any of the
following operations:
- REST API requests
- Data batch importing
- UI activities that require database access
Note: While purging activity is
in progress, you cannot access the database.
You must set the following property to true when enabling purging activity:
app.db.purging.enabled
In addtion, you must set one of the following properties:
- Time (app.db.time.based.purging.limit)
- Size (app.db.size.based.purging.limit.in.gb)
- Disk free space (app.disk.freespace.size.based.purging.limit.in.gb)
If you set more than one property, then only the highest configured criteria will be applied and further criteria will be skipped. The Disk free space purging is the highest priority. Size purging is a higher priority than Time.