Artica Wiki

Artica Failover Service

Failover service is used to create high-availability solutions, and was designed to be simple but powerful.

Overview

Artica Failover Service is based on Keepalived software and is used for high-availability services between two or more nodes. It worked on VRRP (Virtual Router Redundancy Protocol) protocol.

The Failover service performs health checks to the selected services and if detects any failure it will automatically move the Floating IP to the next node with higher priority without any lost of communication to end user.

ha-diagram-animated.gif
Image Credits - digitalocean.com

Artica Failover Service is in alpha stage and is avaliable since Service Pack 319.

Installation and configuration of the Failover service is done only on the Artica server that you assign as the primary node (master).

Installation

On Artica Server that you assign to be the primary node (Master), go to:

Parameters

This section displays the satus of the Failover service and allow to disable the Debug Mode in case of some failure.
When you enable the Debug Mode, this mode will be enable in all the nodes of the service.
screenshot_26.png

Create HA Service

To create a Failover services, go to:

The Wizard

The wizard will guide you step by step to help you to create the service in just 3 steps, more options will be available after you create the service.

Step 1 - Primary node information

Step 2 - Floating IP

Step 3 - Secondary nodes (Slaves)

The only action that you have do is change the listen interface / ip to ALL or to the Floating IP in each service that you are performing health check. This must be done in every node.

Service Status

After the service is created, you can see in main table, the status of each node.
screenshot_7.png
The status can be:

Unless all nodes are of Fault state, the Floating IP always have the Blue color of the node who owns the MASTER rule, so you can easily see where the traffic goes to.

Edit HA Service

Click on the primary node name to access to the service settings.
screenshot_13.png

Parameters

Parametes tab contains the mais settings of the service.

Expert Mode

The Expert Mode give you access to advanced settings.
screenshot_15.png

Be careful with this option, bad TTL values can stop the advertisements broadcast, causing the malfunction of the Failover service.

The authentication use the PASS method.

screenshot_16.png

Services

The service tabs contains the service or services that the Failover will perform health checks.

We continue to improve this section in order to support more checks for all the core services.

Avaliable Health Checks

Services / Checks Service Running Emergency Modes Connectivity Tests DNS Resolution
Proxy x x x
SMTP x
HA Proxy x
HA Cluster x
Unbound DNS x x
Power DNS x x
DNS Firewall x x
DNS Cache x x

Example

We have two Proxy servers in our company and we want to create HA Failover service between them, to do this:

  1. Click on the button New Service
  2. Select the Proxy service
  3. Normally Proxy is linked to DNS Server, so click again on the button New Service and select the DNS Service installed on your server

screenshot_70.png

Important note: If you select Proxy service to be checked, you must set the Timeout to at least 10 in Parameters section.

Service Parameters

Click on parameters button adjust the health check settings
screenshot_19.png

screenshot_20.png

Floating IP

The Floating IP tab contains all the information of the Floating IP's used by the service
screenshot_21.png

Secondary Nodes

The Secondary Nodes tab lists the settings and the status of all available nodes.
screenshot_22.png

screenshot_23.png

Track Intefaces

Use Track Interfaces if you want a node to enter in FAULT state if one or more interfaces goes down.
screenshot_24.png

Enable / Disable HA Servie

To Enable / Disable a HA service click on button Active on main table. This operation will also Enable / Disable the HA service in all Secondary Slaves
screenshot_29.png

View Statistics

To view the Statistics of the HA service, click on button Statistics on main table.
screenshot_31.pngscreenshot_32.png

Delete HA Service

To Delete a HA service click on button Del. on main table. This operation will also Delete the HA service in all Secondary Slaves
screenshot_30.png

Events

This section displays the events of Failover service
screenshot_27.png

Secondary Nodes Interface

The secondary nodes interface is just accessible from the Secondary nodes and the design is bit different.

No actions are allowed in Secodary Nodes

Status

The Staus interface shows you the information about:
screenshot_36.png

  1. The status of the Failover service
  2. Who is the Primary Node
  3. The Last synchronization between the Primary Node and the Secondary Node
  4. The Debug Mode status
  5. The Servie Health Checks and the status of current Secondary Node.

To view the Statistics of the HA service on this node, click on button Statistics
screenshot_34.png
screenshot_40.png

Events

This section displays the events of Failover service
screenshot_35.png

Examples

DNS Cache service in failover mode

Troubleshooting

All nodes are in Fault state even all services are up and running

If you select the Proxy service to be monitor in Healt Check section, please check if the Timeout field is at least 10s in Parameters.

Keep Floating IP AKA nopreempt option not working or is ignored

For this to work, the initial state of all nodes must be BACKUP, so make sure that the option Keep Floating IP is enabled in all nodes.

Failover service is not installed

The button says "not installed" when you try install the Faiolver service (Master) or (Slave)
This means that the Keepalived software is not installed in your operating system.
screenshot_37.png