docs: Add notes on reclaiming disk space after pruning
Change-Id: I3eab885ac76a420296c72396dcb5b12e4b5acb53
This commit is contained in:
parent
c635b34b69
commit
f3db07dfdf
|
@ -89,6 +89,13 @@ ara playbook prune
|
|||
------------------
|
||||
|
||||
Pruning keeps the database size in check and the performance optimal by deleting older playbooks.
|
||||
|
||||
Unused disk space can be reclaimed after pruning depending on your database backend, for example:
|
||||
|
||||
- `sqlite <https://sqlite.org/lang_vacuum.html>`_: ``sqlite3 ~/.ara/server/ansible.sqlite vacuum``
|
||||
- `mysql/mariadb <https://mariadb.com/kb/en/optimize-table/>`_: ``mysqlcheck --optimize --databases ara``
|
||||
- `postgresql <https://www.postgresql.org/docs/current/app-vacuumdb.html>`_: ``vacuumdb --dbname=ara``
|
||||
|
||||
It is recommended to run this command inside a task scheduler (such as cron) since the server does not run this command
|
||||
automatically.
|
||||
|
||||
|
|
Loading…
Reference in New Issue