Configuring
High Availability for VPX on AWS
To deploy HA for
two VPX instances on AWS, you must create the primary
NetScaler VPX
instances with three ENIs and the secondary
NetScaler VPX with
a single ENI.
Following is an
example of launching a primary VPX instance with three ENIs:
C:\aws-vpc-config>ec2-run-instances ami-bd2986d4 -n 1 -t m1.large
-k keyPairName -f
./access-secret-key-file -a
:0:subnet-15fa057e:"NSIP":10.20.15.21 -a
:1:subnet-1547ba7e:"CLIENT-SIDE":10.20.10.21::::"10.20.10.22,10.20.10.23,10.20.10.24,10.20.10.25,10.20.10.26,10.20.10.27,10.20.10.28,10.20.10.29,10.20.10.30"
-a
:2:subnet-cc47baa7:"SERVER-SIDE":10.20.1.21::::"10.20.1.22,10.20.1.23,10.20.1.24,10.20.1.25,10.20.1.26,10.20.1.27,10.20.1.28,10.20.1.29,10.20.1.30"
Following is an
example of launching a secondary VPX instance with a single ENI:
C:\aws-vpc-config>ec2-run-instances ami-bd2986d4 -n 1 -t m1.large
-k keyPairName -f
access-secret-key-file -a
:0:subnet-15fa057e:"NSIP":10.20.15.31
Note: The
access-secret-key-file argument contains the access and
secret key. (You cannot change the
access-secret-key-file associated with a VPC instance after
it is created.)
After the two
NetScaler
instances are UP, configure the HA pairing on both the instances. You have to
configure the instance with two or more ENIs before configuring HA on the
instance with one ENI. Use the add HA node command, from within the
NetScaler CLI, or
from the
NetScaler GUI. For
example:
On the VPX
instance with two or more ENIs:
add HA node 1
10.20.15.31
On the VPX
instance with one ENI:
add HA node 1
10.20.15.21
After you enter
add HA node commands, the two nodes form an HA pair, and configuration
information is synchronized between the two VPX instances.
- To remove HA
from
NetScaler VPX pair
- You can
remove HA configuration from the
NetScaler VPX pair
by using the remove ha node command. You have to remove the HA configuration
from the secondary
NetScaler VPX
before removing the HA configuration from the primary
NetScaler VPX.
For example,
on the Secondary
NetScaler VPX
instance, at the
NetScaler command
line, type:
remove ha node
save config
On the
Primary
NetScaler VPX
instance, at the
NetScaler command
line, type:
remove ha node
save config