Using Container Synchronization between two Swift Clusters
Replicating container content from one Swift Cluster to another in a remote location is a useful feature for disaster recovery and running active/active datacenters. This feature allows a user to upload objects as normal to a particular container, and have those contents upload to a nominated container in a remote cluster automatically.
Getting ready
Ensure you are logged in to both swift proxy servers that will be used for the replication. An example of this feature can be found with the Swift Vagrant environment at https://github.com/OpenStackCookbook/VagrantSwift. If you created these nodes with this environment, ensure that you have both swift
and swift2
running and you have a shell on both by executing the following command:
vagrant ssh swift vagrant ssh swift2
How to do it...
To set up Container Sync replication, carry out the following steps:
On both Proxy Servers, edit
/etc/swift/proxy-server.conf
to add in thecontainer_sync...