Note:
The IP address of the HAVIP can be automatically assigned or manually specified. If you choose to enter an IP address, make sure that the entered private IP address is within the subnet IP range and is not a reserved IP address of the system.
For example, if the subnet IP range is10.0.0.0/24
, the entered private IP address should be within10.0.0.2 - 10.0.0.254
.
HAVIP is designed to use together with third-party HA software. Therefore, the binding and unbinding of HAVIP to CVMs are not done in the Tencent Cloud console. Instead, you only need to specify HAVIP as a floating virtual IP address (VIP) in the third-party HA software which in turn specifies an ENI to be bound to the HAVIP through ARP. The following shows you how to bind or unbind a HAVIP. For detailed operations, see the documentation for the third-party HA software:
Note:
The Bind or Unbind options under Operation in the HAVIP console, refers to the EIP operations. Please skip these options if you don't need public network communication.
2. HAVIP in the HA software on CVM can be specified as a floating VIP, and users will follow same steps as that of the third-party softwares. For detailed operations, see the operation guide of the specific HA software.
Note:
Common HA software programs include: Linux HeartBeat, Keepalived, Pacemaker, and Windows MSCS.
When specifying a VIP in the configuration file of the HA software, you only need to enter the HAVIP that you created:
vrrp_instanceVI_1 {
# Select proper parameters for the primary and secondary CVMs.
state MASTER #Set the initial status to `Backup`.
interface eth0 #The ENI such as `eth0` used to bind a VIP
virtual_router_id 51 #The`virtual_router_id` value for the cluster
nopreempt #Non-preempt mode
preempt_delay 10 #Set the preempt delay to 10 minutes
priority 100 #Priority. The larger the value, the higher the priority
advert_int 1 #Check interval. The default value is 1 second
authentication { #Authentication
auth_type PASS #Authentication method
auth_pass 1111 #Authentication password
}
unicast_src_ip 172.16.16.5 #Private IP address of the local device
unicast_peer{
172.16.16.6 #IP address of the peer device
}
virtual_ipaddress {
172.16.16.12 #HAVIP
}
}
Note:
Modify the configuration file of the CVM after release.
Was this page helpful?