Deploy a VPX high-availability pair with elastic IP addresses across different AWS zones 编辑
Deploy a VPX high-availability pair with elastic IP addresses across different AWS zones
You can configure two Citrix ADC VPX instances on two different subnets or two different AWS availability zones using elastic IP (EIP) addresses in the INC mode.
For more information about high availability, see High availability
. For more information about INC, see Configuring high availability nodes in different subnets
.
How HA with EIP addresses across different AWS zones works
Upon failover, the EIP of the VIP of the primary instance migrates to the secondary, which takes over as the new primary. In the failover process, AWS API:
- Checks the virtual servers that have
IPSets
attached to them. - Finds the IP address that has an associated public IP, from the two IP addresses the virtual server is listening on. One that is directly attached to the virtual server, and the one that is attached through the IP set.
- Reassociates the public IP (EIP) to the private IP belonging to the new primary VIP.
Note
To protect your network from attacks such as denial-of-service (DoS), when using an EIP, you can create security groups in AWS to restrict the IP access. For high availability, you can switch from EIP to a private IP movement solution as per your deployments.
How to deploy a VPX high-availability pair with elastic IP addresses across different AWS zones
The following is the summary of steps for deploying a VPX pair on two different subnets or two different AWS availability zones.
- Create an Amazon virtual private cloud.
- Deploy two VPX instances in two different availability zones or in the same zone but in different subnets.
- Configure high availability
- Set up high availability in INC mode in both the instances.
- Add an IP set
in both the instances. - Bind the IP set in both the instances to the VIP.
- Add a virtual server in the primary instance.
For steps 1 and 2, use the AWS console. For steps 3, use the Citrix ADC VPX GUI or the CLI.
Step 1. Create an Amazon virtual private cloud (VPC).
Step 2. Deploy two VPX instance in two different availability zones or in the same zone but in different subnets. Attach an EIP to the VIP of the primary VPX.
For more information about how to create a VPC and deploy a VPX instance on AWS, see Deploy a Citrix ADC VPX standalone instance on AWS
and Scenario: standalone instance
Step 3. Configure high availability. You can use the Citrix ADC VPX CLI or the GUI to set up high availability.
Configure high availability by using the CLI
Set up high availability in INC mode in both the instances.
On the primary node:
add ha node 1 <sec_ip> -inc ENABLED
On the secondary node:
add ha node 1 <prim_ip> -inc ENABLED
<sec_ip>
refers to the private IP address of the management NIC of the secondary node<prim_ip>
refers to the private IP address of the management NIC of the primary nodeAdd the IP set in both the instances.
Type the following command on both the instances.
add ipset <ipsetname>
Bind the IP set to the VIP set on both the instances.
Type the following command on both the instances:
add ns ip <secondary vip> <subnet> -type VIP
bind ipset <ipsetname> <secondary VIP>
Note
You can bind the IP set to the primary VIP or to the secondary VIP. However, if you bind the IP set to the primary VIP, use the secondary VIP to add to the virtual server, and conversely.
Add a virtual server on the primary instance.
Type the following command:
add <server_type> vserver <vserver_name> <protocol> <primary_vip> <port> -ipset \<ipset_name>
Configure high availability by using the GUI
Set up high availability in INC mode on both the instances
Log on to the primary node with user name
nsroot
and instance ID as password.From the GUI, go to Configuration > System > High Availability. Click Add.
At the Remote Node IP address field, add the private IP address of the management NIC of the secondary node.
Select Turn on NIC (Independent Network Configuration) mode on self-node.
Under Remote System Login Credential, add the user name and password for the secondary node and click Create.
Repeat the steps in the secondary node.
Add IP set and bind IP set to the VIP set on both the instances.
From the GUI, navigate to System > Network > IPs > Add.
Add the required values for IP Address, Netmask, IP Type (virtual IP) and click Create.
Navigate to System > Network > IP Sets > Add. Add an IP set name and click Insert.
From the IPV4s page, select the virtual IP and click Insert. Click Create to create the IP set.
Add a virtual server in the primary instance
From the GUI, go to Configuration > Traffic Management > Virtual Servers > Add.
Scenario
In this scenario, a single VPC is created. In that VPC, two VPX instances are created in two availability zones. Each instance has three subnets - one for management, one for client, and one for back-end server. An EIP is attached to the VIP of the primary node.
Diagram: This diagram illustrates the Citrix ADC VPX high availability setup in INC mode, on AWS
For this scenario, use CLI to configure high availability.
Set up high availability in INC mode on both the instances.
Type the following commands on the primary and the secondary nodes.
On primary:
add ha node 1 192.168.6.82 -inc enabled
Here, 192.168.6.82 refers to the private IP address of the management NIC of the secondary node.
On secondary:
add ha node 1 192.168.1.108 -inc enabled
Here, 192.168.1.108 refers to the private IP address of the management NIC of the primary node.
Add an IP set and bind the IP set to the VIP on both the instances
On primary:
add ipset ipset123
add ns ip 192.168.7.68 255.255.255.0 -type VIP
bindipset ipset123 192.168.7.68
On secondary:
add ipset ipset123
add ns ip 192.168.7.68 255.255.255.0 -type VIP
bind ipset ipset123 192.168.7.68
Add a virtual server on the primary instance.
The following command:
add lbvserver vserver1 http 192.168.2.129 80 -ipset ipset123
Save the configuration.
After a forced failover, the secondary becomes the new primary.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论