Add vacuum of package table to koschei cron
This commit is contained in:
parent
7dd770d84a
commit
92679459d4
3 changed files with 3 additions and 4 deletions
|
@ -1 +0,0 @@
|
|||
0 4 * * * koschei koschei-admin cleanup --older-than 6
|
|
@ -103,9 +103,7 @@
|
|||
- selinux
|
||||
|
||||
- name: Copy the cleanup cronjob
|
||||
copy: src="{{item}}" dest="/etc/cron.d/{{item}}"
|
||||
with_items:
|
||||
- cron-db-cleanup
|
||||
template: src=cron-db-cleanup.j2 dest=/etc/cron.d/cron-db-cleanup
|
||||
tags:
|
||||
- koschei
|
||||
|
||||
|
|
2
roles/koschei/templates/cron-db-cleanup.j2
Normal file
2
roles/koschei/templates/cron-db-cleanup.j2
Normal file
|
@ -0,0 +1,2 @@
|
|||
0 3 * * * koschei koschei-admin cleanup --older-than 6
|
||||
0 4 * * * koschei psql -h {{ koschei_pgsql_hostname }} -d koschei -U koscheiadmin -c 'VACUUM FULL ANALYZE package;'
|
Loading…
Add table
Add a link
Reference in a new issue