Ranger Database Cleanup¶
Note
Applies only to Self-Managed Runtime Planes. Trust3AICloud and Trust3AICloud Data-plane (D2P) installations manage Ranger database maintenance separately.
Overview¶
Apache Ranger's x_auth_sess and x_trx_log tables record every login and policy change, and grow indefinitely if left unmanaged. Ranger Database Cleanup is a Self-Managed system app that runs on a schedule to back up and then delete rows older than a retention window - keeping Ranger's database size under control without manual intervention.
It is enabled by default on Self-Managed Runtime Planes. No setup is required to start benefiting from it.
Default behavior¶
| Setting | Default |
|---|---|
| Schedule | Weekly, Monday 10:00 (Asia/Kolkata) |
| Retention period | 90 days |
| Backup destination | S3 (falls back automatically to an in-database backup table if the Runtime Plane has no S3 bucket configured) |
| S3 bucket / region | Same bucket and region as the Runtime Plane |
Rows are processed in small batches - each batch is backed up before it is deleted - so a cleanup run does not hold long-running locks against live Ranger traffic.
Adjusting settings¶
To change the schedule, retention period, or backup destination, go to Settings → Runtime Plane in the portal and open the Ranger Database Cleanup app's configuration. Changes take effect on the next scheduled run.
Tip
The retention period cannot be set above the in-database backup retention window. This validation prevents a backup from being silently deleted along with the data it was meant to protect.
- Prev topic: Advanced Configurations
- Next topic: Troubleshooting