kasceamerican.blogg.se

How to install freepbx high availability
How to install freepbx high availability












how to install freepbx high availability
  1. How to install freepbx high availability how to#
  2. How to install freepbx high availability password#
  3. How to install freepbx high availability free#

You need to add the  as well. You may want to do this on all configuration files that support DSN to allow data sharing as much as possible. The way you do this depends on your deployment for example, if you are using my FusionPBX RPM's, it is done by adding it using the web interface, as FreeSWITCH uses the MySQL/MariaDB to get the profiles-config. When you are done, you need to add a tracking call method to your FreeSWITCH profiles configuration. Remember at this point you should have your FreeSWITCH with the following milestones:

how to install freepbx high availability

Before we continue, there are some configurations you need to do to your FreeSWITCH server. Configure your FreeSWITCH for High AvailabilityĪt this point, you have your cluster ready but there is nothing to do. You can read the current configuration by typing crm configure show. Type these commands, this will allow corosync to deal with 2 nodes cluster:Ĭrm configure property stonith-enabled=falseĬrm configure property no-quorum-policy=ignore Type crm status to verify all is good, you shall see nodes names. Use the command service or systemctl, for example, service corosync start and service pacemaker start. You can start the corosync and pacemaker daemons on each node. You must make the hostnames of your nodes resolvable, you can do this with your DNS or by editing your /etc/hosts file on each file.

How to install freepbx high availability free#

You will also need to add an IPTables rule to warrant free traffic from and to port 5405/udp. Please make sure the hostnames you use are resolvable. Here it is my config file, do your changes to fit your needs. To be sure, check your /etc/corosync/nf configuration file, both files should have the same.

how to install freepbx high availability

You might want to restart corosync and pacemaker services. If there is no error when you type pcs status or crm status you will see your nodes. After that, you can type pcs cluster setup -name cluster_name freeswitch-1 freeswitch-2. If all goes for good, you will have no errors. It is a good idea to use hacluster username, as CentOS RPM's will do all the privilege setup for you. Start the pcsd service on each node and then type pcs cluster auth freeswitch-1 freeswitch-2, you will be asked for a username.

How to install freepbx high availability password#

hacluster username on both servers needs to have the same password.Hostnames must be resolvable against each other.Before starting the service please make sure you have the following requisites: The easiest way is by using the pcsd service.

How to install freepbx high availability how to#

  • You know how to sync files between your FreeSWITCH servers.
  • You know how to configure your database in active-active cluster schema (regardless if it is MySQL/MariaDB or PostgreSQL).
  • You already have installed Corosync and Pacemaker (installed, but not configured).
  • You know the basics of Corosync and Pacemaker.
  • For more information about how this works, I strongly suggest you read my article about the High Availability Cluster Overview you will understand what you are going to do. The active-passive approach will share a floating IP between your VoIP switches and when one gets off-line, the passive one will take control over the IP and it will get the load. In this post, I am going to talk about how to configure FreeSWITCH in a high availability active-passive schema.














    How to install freepbx high availability