lets you use the global cluster option (GCO) for DR configurations. You can use a DR configuration to fail over applications across different regions or VPCs in AWS. The cluster nodes can be in the same AZ or in different AZs.
The following information is required:
VPN tunnel information between regions or VPCs
The IP address to be used for cross-cluster communication:
You can also use GCO to configure applications for DR from an on-premises site to AWS.
Note: |
If you use an Amazon VPN tunnel in a global cluster configuration between an on-premises site and AWS, the cluster nodes in the cloud must be in the same subnet. |
The following graphic depicts a sample DR configuration across AWS regions:
The sample configuration includes the following elements:
VPN tunnel between Region A and Region B
The primary site has the following elements:
A virtual private cloud, VPC 1, is configured in Region A of the AWS cloud.
An application is configured for HA using an cluster that comprises two nodes, Node 1 and Node 2, which are EC2 instances.
Node 1 exists in Subnet 1 and Node 2 exists in Subnet 2.
The overlay IP allows the private IP of a node to be fail over from one subnet to another in an AZ during failover or failback.
The secondary site has the following elements:
The following snippet is a service group configuration from a sample VCS configuration file (main.cf) at the primary site (Region A):
include "types.cf" cluster sitever ( ClusterAddress = "172.32.1.2" SecureClus = 1 ) remotecluster sitecal ( ClusterAddress = "172.35.1.2" ConnectTimeout = 3000 SocketTimeout = 3000 ) heartbeat Icmp ( ClusterList = { sitecal } Arguments @sitecal = { "172.35.1.2" } ) system ip-172-31-21-156 ( ) system ip-172-31-61-106 ( ) group ClusterService ( SystemList = { ip-172-31-21-156 = 0, ip-172-31-61-106 = 1 } AutoStartList = { ip-172-31-21-156, ip-172-31-61-106 } OnlineRetryLimit = 3 OnlineRetryInterval = 120 ) AWSIP Aws_Ipres ( OverlayIP = "172.32.1.2/32" Device = eth0 AWSBinDir = "/usr/local/bin" ) Application wac ( StartProgram = "/opt/VRTSvcs/bin/wacstart -secure" StopProgram = "/opt/VRTSvcs/bin/wacstop" MonitorProcesses = { "/opt/VRTSvcs/bin/wac -secure" } RestartLimit = 3 ) IP Ipres ( Device = eth0 Address = "172.32.1.2" NetMask = "255.255.255.0" ) NIC gconic ( Device = eth0 ) Aws_Ipres requires Ipres Ipres requires gconic wac requires Ipres
The following snippet is a service group configuration from a sample VCS configuration file (main.cf) at the secondary site (Region B):
include "types.cf" cluster sitecal ( ClusterAddress = "172.35.1.2" SecureClus = 1 ) remotecluster sitever ( ClusterAddress = "172.32.1.2" ConnectTimeout = 3000 SocketTimeout = 3000 ) heartbeat Icmp ( ClusterList = { sitever } Arguments @sitever = { "172.32.1.2" } ) system ip-172-34-20-109 ( ) system ip-172-34-30-231 ( ) group ClusterService ( SystemList = { ip-172-34-20-109 = 0, ip-172-34-30-231 = 1 } AutoStartList = { ip-172-34-20-109, ip-172-34-30-231 } OnlineRetryLimit = 3 OnlineRetryInterval = 120 ) AWSIP Aws_Ipres ( OverlayIP = "172.35.1.2/32" Device = eth0 AWSBinDir = "/usr/local/bin" ) Application wac ( StartProgram = "/opt/VRTSvcs/bin/wacstart -secure" StopProgram = "/opt/VRTSvcs/bin/wacstop" MonitorProcesses = { "/opt/VRTSvcs/bin/wac -secure" } RestartLimit = 3 ) IP Ipres ( Device = eth0 Address = "172.35.1.2" NetMask = "255.255.255.0" ) NIC gconic ( Device = eth0 ) Aws_Ipres requires Ipres Ipres requires gconic wac requires Ipres