ACRE-TERRAFORM-CRON-REPLICATION
Deploy Azure Cache for Redis Enterprise (ACRE) in two separate regions with scheduled replication from primary to secondary.
Getting Started | About | See Also | License |
|Getting Started
To get a local copy up and running follow these simple steps.
Prerequisites
- Azure CLI
Installation
-
Clone the repo
git clone https://github.com/redisgeek/acre-terraform-cron-replication.git --recurse-submodule cd acre-terraform-cron-replication
-
Build each of the submodules
cd com.redisgeek.function.acre.export ./mvnw clean package cd ../com.redisgeek.function.acre.import ./mvnw clean package cd ../com.redisgeek.function.azure.storage.copy ./mvnw clean package cd ..
Released artifacts could be used here instead
-
Login via the service principal
az login --service-principal --username APP_ID --password PASSWORD --tenant TENANT_ID
-
Deploy the solution
cd terraform terraform plan terraform apply
About The Project
Can be used as part of multiple solutions:
- Provide DR where active-active is not yet available.
- Provide DR for RediSearch, RedisTimeSeries and RedisBloom, modules in ACRE.
- Serve as a base for use cases besides DR, like .
The primary cluster, deployed across 3-AZs, will have a 99.99 SLA that is financially backed by Azure. There are no "preview" features included in this reference implementation. The components used in this solution are all Generally Available (GA).
The functions automate the following:
- export the primary cluster as a snapshot (rdb)
- copy rdb to secondary region
- import rdb to secondary (DR) cluster
Overview
Built With
Roadmap
See the open issues for a list of proposed features (and known issues).
Contributing
Pull-requests are welcomed!
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
DaShaun - @dashaun
Project Link: https://github.com/redisgeek/acre-terraform-cron-replication