Backup and Recovery in AWS
For the complete documentation index see: llms.txt
All documentation pages available in markdown.
This page describes backup and recovery options for Aerospike Database on AWS, including Aerospike backup tools, Amazon S3, EBS snapshots, and EBS volume recovery. Use Aerospike backup tools for logical backups and restores. Use EBS snapshots or EBS volume recovery when your namespace storage depends on EBS volumes.
Aerospike tools
For new backup automation, start with Aerospike Backup Service. For command-line backups and restores, use absctl backup and absctl restore.
Backup
- Back up data with
absctl backupto local storage or Amazon S3. - Store local backup files in a durable location.
Restore
Upload the backup file to a system with absctl restore, or restore directly from Amazon S3.
cat BACKUP.GZ | gunzip | absctl restore [...] --input-file -Benefits
- Portable across instance types and storage layouts
- Can include system metadata (SMD)
- Supports direct Amazon S3 backup and restore workflows
Drawbacks
- Long duration
- Additional server load while running
- All or nothing across the cluster
EBS snapshots
If you are using persistence, either through EBS directly, or using shadow device(s), you can take advantage of EBS snapshots. EBS snapshots are point-in-time backups of data. This is done at the data block level, transparent to the application (Aerospike).
Backup
To create a backup, initiate snapshots on your EBS data volumes.
Restore
If your backups were taken using EBS snapshots, you must deploy those snapshots into EBS volumes. After provisioning your replacement EBS volumes, configure the replacement instance exactly as the failed instance had been configured.
This means that EBS volumes are mounted at the same locations and the same number of ephemeral drives are provisioned.
Benefits
- Quick
- Minimal impact
- Individual node based
Drawbacks
- More costly
- Additional scripting/coordination required
- Does not account for SMD
Instance failure
If you are using EBS for persistence and your instance fails, you can detach the EBS volume from the failed instance and then attach it to a replacement instance.
- Remove/Terminate the failed instance, but keep the EBS volume.
- Deploy a new Instance, with the same private IP as the old instance in the same zone.
- Attach EBS volume from Step 1 to the replacement instance.
- Restore the config to the replacement node and restart the node.
Once the node rejoins the cluster, migrations will occur and data will be rebalanced.