Skip to content

Commit

Permalink
Merge pull request #3585 from WikiWatershed/tt/rotate-celery-logs
Browse files Browse the repository at this point in the history
Connects #3515
  • Loading branch information
rajadain authored Dec 28, 2022
2 parents 7b61b8b + 6e786fd commit a88bd61
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@
special_time: daily
job: /usr/sbin/service celeryd restart
state: present

- name: Configure Celery log rotation
template: src=celery-logrotate.j2
dest=/etc/logrotate.d/celery
mode=0755
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{ celery_log_dir }}/* {
rotate 3
daily
compress
}
6 changes: 6 additions & 0 deletions deployment/packer/mmw.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
"ssh_username": "ubuntu",
"ami_name": "mmw-worker-{{timestamp}}-{{user `version`}}",
"ami_block_device_mappings": [
{
"device_name": "/dev/sda1",
"volume_type": "gp2",
"volume_size": 12,
"delete_on_termination": true
},
{
"device_name": "/dev/sdf",
"snapshot_id": "snap-0211cbbff8a81266f",
Expand Down

0 comments on commit a88bd61

Please sign in to comment.