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 who provides floating IP services. Floating IP is very handy, it is the key to create 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.
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.
Use the OKay RPM repository, just type yum install resource-agents-digitalocean-floatip. It will install all the scripts and all the required dependencies.
Type: pcs resource create FIP1 ocf:digitalocean:floatip do_token=TOKEN floating_ip=A.B.C.D. Where:
After this, you can continue your configuration as usual.blog comments powered by Disqus