User Rating: 4 / 5

Star Active Star Active Star Active Star Active Star Inactive

So far the only way of creating a highly available cluster with a floating IP approach was using bare metal serves in any datacentre, until Digital Ocean arrived. As far as I know, Digital Ocean is the only VPS datacentre that provides floating IP services. Floating IP is very handy, it is the key to creating a highly available cluster by moving a floating IP under demand among some selected servers.

I have already explained how to configure a FreeSWITCH HA Cluster. In this article, I will only explain how to configure the Digital Ocean's Pacemaker resource.

Things to know about how Digital Ocean Floating IP

You need to know that the floating IP does not work the same way as a bare metal server would. Digital Ocean's does it through a NAT. When you set up your VPS, you must enable the private network. This will make your eth0 interface to have the usual public IP and a private IP (10.x.x.x).

The floating IP is done by calling an API. You will need to go to your Digital Ocean console and generate a token.

Install the Digital Ocean's Pacemaker Resource

Use the OKay RPM repository, just type yum install resource-agents-digitalocean-floatip. It will install all the scripts and all the required dependencies.

Adding the Floating IP Resource

Type: pcs resource create FIP1 ocf:digitalocean:floatip do_token=TOKEN floating_ip=A.B.C.D. Where:

  • TOKEN is the one you have generated on your Digital Ocean API page
  • A.B.C.D is the floating IP you have created

After this, you can continue your configuration as usual.

blog comments powered by Disqus