Q: 1. How to configure the intercontroller heartbeats in Ha failover?
2. Do controllers communicate to each other when intercontroller heatbeats are enabled?
3. What traffic types should be allowed between the controllers to enable heartbeats?
A: Configuration:
On the master controller, we must configure HA profile. We must specify:
1. HA group members.
2. HA member roles.
3. Enable intercontroller heartbeats.
(Master) #configure t
(Master) (config) #ha group-profile "new"
(Master) (HA group information "new") # heartbeat
(Master) (HA group information "new") # controller 10.1.1.5 role dual
(Master) (HA group information "new") # controller 10.1.1.3 role dual
Let us verify the HA profile:
(Master) #show ha group-profile new
HA group information "new"
--------------------------
Parameter Value
--------- -----
Preemption Disabled
Over-subscription Disabled
State Synchronization Disabled
Pre-shared Key N/A
Inter Controller heartbeat Enabled
Heartbeat Threshold 5
Heartbeat Interval 100
HA group-member IP address 10.1.1.5 dual
HA group-member IP address 10.1.1.3 dual
HA group-member IPv6 address N/A
We can see the member controllers communicating with each other over PAPI:
(local-5) (config) #show datapath session table 10.1.1.3
Datapath Session Table Entries
------------------------------
Source IP Destination IP Prot SPort DPort Cntr Prio ToS Age Destination TAge Packets Bytes Flags
--------------- --------------- ---- ----- ----- -------- ---- --- --- ----------- ---- --------- --------- ---------------
10.1.1.5 10.1.1.3 17 8211 8211 0/0 0 0 9 1/0 99 0 0 FYI
10.1.1.3 10.1.1.5 17 8211 8211 0/0 0 0 0 1/0 99 752 94000 FCI
10.1.1.5 10.1.1.3 17 8495 8211 0/0 0 0 0 local 7 69 8625 FCI
10.1.1.3 10.1.1.5 17 8211 8495 1/0 0 0 0 local 7 0 0 FYI