51733e5623
Add facility to borg-backup role to run a command and save the output of it to a separate archive file during the backup process. This is mostly useful for database backups. Compressed on-disk logs are terrible for differential backups because revisions have essentially no common data. By saving the uncompressed stream directly from mysqldump, we allow borg the chance to de-duplicate, saving considerable space on the backup servers. This is implemented for our ansible-managed servers currently doing dumps. We also add it to the testinfra. This also separates the archive names for the filesystem and stream backup with unique prefixes so they can be pruned separately. Otherwise we end up keeping only one of the stream or filesystem backups which isn't the intention. However, due to issues with --append-only mode we are not issuing prune commands at this time. Note the updated dump commands are updated slightly, particularly with "--skip-extended-insert" which was suggested by mordred and significantly improves incremental diff-ability by being slightly more verbose but keeping much more of the output stable across dumps. Change-Id: I500062c1c52c74a567621df9aaa716de804ffae7
81 lines
2.8 KiB
YAML
81 lines
2.8 KiB
YAML
gerrit_replication:
|
|
- name: 'gitea01'
|
|
url: 'ssh://git@gitea01.opendev.org:222/'
|
|
authGroup: 'Anonymous Users'
|
|
replicationDelay: '1'
|
|
replicatePermissions: false
|
|
mirror: true
|
|
threads: '4'
|
|
- name: 'gitea02'
|
|
url: 'ssh://git@gitea02.opendev.org:222/'
|
|
authGroup: 'Anonymous Users'
|
|
replicationDelay: '1'
|
|
replicatePermissions: false
|
|
mirror: true
|
|
threads: '4'
|
|
- name: 'gitea03'
|
|
url: 'ssh://git@gitea03.opendev.org:222/'
|
|
authGroup: 'Anonymous Users'
|
|
replicationDelay: '1'
|
|
replicatePermissions: false
|
|
mirror: true
|
|
threads: '4'
|
|
- name: 'gitea04'
|
|
url: 'ssh://git@gitea04.opendev.org:222/'
|
|
authGroup: 'Anonymous Users'
|
|
replicationDelay: '1'
|
|
replicatePermissions: false
|
|
mirror: true
|
|
threads: '4'
|
|
- name: 'gitea05'
|
|
url: 'ssh://git@gitea05.opendev.org:222/'
|
|
authGroup: 'Anonymous Users'
|
|
replicationDelay: '1'
|
|
replicatePermissions: false
|
|
mirror: true
|
|
threads: '4'
|
|
- name: 'gitea06'
|
|
url: 'ssh://git@gitea06.opendev.org:222/'
|
|
authGroup: 'Anonymous Users'
|
|
replicationDelay: '1'
|
|
replicatePermissions: false
|
|
mirror: true
|
|
threads: '4'
|
|
- name: 'gitea07'
|
|
url: 'ssh://git@gitea07.opendev.org:222/'
|
|
authGroup: 'Anonymous Users'
|
|
replicationDelay: '1'
|
|
replicatePermissions: false
|
|
mirror: true
|
|
threads: '4'
|
|
- name: 'gitea08'
|
|
url: 'ssh://git@gitea08.opendev.org:222/'
|
|
authGroup: 'Anonymous Users'
|
|
replicationDelay: '1'
|
|
replicatePermissions: false
|
|
mirror: true
|
|
threads: '4'
|
|
gerrit_storyboard_url: https://storyboard.openstack.org
|
|
gerrit_vhost_name: review.opendev.org
|
|
gerrit_serverid: 4a232e18-c5a9-48ee-94c0-e04e7cca6543
|
|
gerrit_redirect_vhost: review.openstack.org
|
|
gerrit_heap_limit: 48g
|
|
letsencrypt_certs:
|
|
review01-opendev-org-main:
|
|
- review.opendev.org
|
|
- review01.opendev.org
|
|
- review.openstack.org
|
|
# We have to set the letsencrypt_gid to something that isn't 3000
|
|
# to not conflict with gerrit2's gid.
|
|
# Also, on review01.openstack.org, 3001 is openstackwatch and
|
|
# 3002 is github.
|
|
letsencrypt_gid: 3003
|
|
gerrit_self_hostkey: '[review.opendev.org]:29418,[review.openstack.org]:29418,[104.130.246.32]:29418,[2001:4800:7819:103:be76:4eff:fe04:9229]:29418 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCfsIj/jqpI+2CFdjCL6kOiqdORWvxQ2sQbCzSzzmLXic8yVhCCbwarkvEpfUOHG4eyB0vqVZfMffxf0Yy3qjURrsroBCiuJ8GdiAcGdfYwHNfBI0cR6kydBZL537YDasIk0Z3ILzhwf7474LmkVzS7V2tMTb4ZiBS/jUeiHsVp88FZhIBkyhlb/awAGcUxT5U4QBXCAmerYXeB47FPuz9JFOVyF08LzH9JRe9tfXtqaCNhlSdRe/2pPRvn2EIhn5uHWwATACG9MBdrK8xv8LqPOik2w1JkgLWyBj11vDd5I3IjrmREGw8dqImqp0r6MD8rxqADlc1elfDIXYsy+TVH'
|
|
borg_backup_excludes_extra:
|
|
- /home/gerrit2/.launchpadlib/cache/*
|
|
- /home/gerrit2/review_site/cache/*
|
|
- /home/gerrit2/review_site/tmp/*
|
|
- /home/gerrit2/review_site/index/*
|
|
# dump directly via stream
|
|
- /home/gerrit2/mysql_backups/*
|