plus3it / cfn-jenkins

Deploy Jenkins master and agents onto STIG-hardened EL7 Amazon instances
Apache License 2.0
2 stars 7 forks source link

Redesign "Quick-Recovery" Backup and Restore Method #16

Closed ferricoxide closed 6 years ago

ferricoxide commented 6 years ago

Problem Description:

Using s3 sync --delete ${JENKINS_HOME} s3://<BUCKET>/<PATH> is sufficiently fast for small-sized ${JENKINS_HOME}s and when only doing delta'd up-syncs but is paaaaainfully slow on restores beyond 1GiB or so

Expected Behavior:

Restores (full) operate quickly

Actual Behavior:

Restores (full) are painfully slow

Steps to reproduce:

Attempt to build new instance from "quick-recovery" backup

Fix recommendation:

Need to replace s3 sync with more performant method (probably tar cf - ${JENKINS_HOME} | s3 cp - s3://<BUCKET>/<PATH>/<BACKUP_NAME>.tar

ferricoxide commented 6 years ago

Closed by #19