Blogs

How can I simulate a Virtual IP (VIP) failover?

By Erdem posted 03-14-2016 15:52

  

Question

How can I simulate a Virtual IP (VIP) failover?

Answer

To simulate a VIP failover, you can shut down the heartbeat service on the node that currently owns the VIP.

 

  1. Log in to the console of the node.
  2. Using the Junos Space Settings Menu, access the debug shell.
  3. At the command prompt, enter: service heartbeat stop.
    The heartbeat service on this node shuts down and a message is automatically sent to its peer node. The peer node takes over the VIP in response to this message
  4. Monitor the /var/log/messages file on both nodes to view the log entries related to the failover.

As the messages show, VIP failover is almost instantaneous in this case.

 

For more information, click High Availability and Disaster Recovery Guide.

 


#FAQ