-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS EBS - Snapshot copies to another region(s) #97
Comments
@Guslington, @rererecursive please review when you have a time. Thanks! |
@zagaria thanks for raising this. It is a known issue at the moment and is currently in our backlog to resolve. simplest approach would be to handle the exception inside copy_backup_to_region method and push a retry message to sqs. |
@Guslington thanks for response! I added it to fork. Also, I fixed couple of issues in CloudFormation template. Can you, please, review https://github.com/zagaria/shelvery-aws-backups/commits/patch/handling_copies ? And what the better approach/design for solve it in right way? I want to contribute but need to understand this software utility approach. |
@zagaria What i think would be the best approach would be to have a try catch around the create_snapshot call and looking for the SnapshotCreationPerVolumeRateExceeded exception. then from there you could post a message to sqs for that resource using the With the cloudformation changes i would like to keep the resource names And just wondering what you're using the condition for? Why do you need the s3 bucket and path in the function uri? |
@Guslington thanks for answer! Condition only for keep template status when used web console and need to full recreate all resources. For me it's comfortably, nothing special) S3 bucket and path used for different version and easy switch. Not used sam commands. About create snapshots/copies - so it's possible to add try/catch to https://github.com/base2Services/shelvery-aws-backups/blob/develop/shelvery/ebs_backup.py inside necessary functions? Is it correct? |
@zagaria correct, you could catch the exception from the ebs_backup class but the issue will be sending the payload off to sqs with correct payload. in which case it maybe be easier to catch the exception from the engine class shelvery-aws-backups/shelvery/engine.py Line 354 in c43d3bd
|
Hello.
Can you help, please, with EBS snapshot copies to another regions? Shelvery deployed as an AWS Lambda with SQS but AWS has limit only for 5 concurrency copies in same time and were copied only part of snapshots.
What the better way to handle errors?
I thinked about retries using SQS, but, as I understand code - these not implemented. Or missed configuration options?
Thank for answer!
The text was updated successfully, but these errors were encountered: