Cluster
- ViciDial Setup Order
Database server
Web server
Telephony server
All clusters start with the primary Database server since everything starts there. Afterwards the web server is installed to provide services needed by the Telephony server. Lastly the Telephony server is installed and will setup portions of ViciDial needed by other servers. Any additional servers can be setup after these three are working together as a cluster.
The hostname for each server in a cluster is used as that server’s name in the ViciDial database. Because of this each server must have a unique hostname. The recommended naming convention is to use ‘DBX’, ‘webX’, and ‘dialX’ as the prefix for the hostname, I.E. ‘DB1’, ‘web1, ‘dial1’, etc. This designates the servers role as well as which one it is if there are multiple of that type in the cluster. How to change the hostname can be found in the Configure Static IP section.
Tip
While it might sound good to use greek gods, disney characters, or transformers for the hostname of your servers, don’t. Being told that Optimus Prime went down but Megatron is handling it now is just confusing. And yes, that is based on a true story of an 11-server cluster. Optimius Prime was the primary database, Megatron was the replicated backup. Bumblebee was the web server and Starscream was their primary telephony server. No numbers either, so the second telephony server was Skywarp I think. Don’t be that guy.
Planning
With
vicibox-install
the different roles of ViciDial can be ran on multiple servers. These servers can then connect with each other across the network to scale. By doing this a ViciDial Cluster can scale up to 500 agents.The examples in this section will be for the three initial servers needed to make a ViciDial Cluster. This is the starting point upon which any size cluster can be built. To add more servers just repeat the install as needed.
If there are only two servers available for a cluster it is advised to have the Database and Web server role running on the more powerful of the two servers. To accomplish this the Web server role would also be selected during the setup of the Database. Fun fact, if you were to select all 3 roles on the same server you would end up with an Express Box.
A ViciDial cluster can only have one primary Database server. The primary Database server is what all Web and Telephony servers will connect to. More information on the Database server role is available in the Hardware section.
Server
IP Address
DB1
192.168.50.4
web1
192.168.50.6
dial1
192.168.60.10
Database
If not already, login as the
root
user to get to the # command prompt.Type
vicibox-install
and pressENTER
to start the ViciBox installer.Type
Y
and pressENTER
at the ViciBox install prompt.Type
Y
and pressENTER
at the expert installation prompt.The installer will attempt to find a LAN IP address to use for the cluster. If the IP shown is correct type
Y
and pressENTER
. If not typeN
and pressENTER
and follow the prompts.Type
Y
and pressENTER
at the the Database prompt.Type
N
and pressENTER
at the Slave Database prompt.Type
Y
and pressENTER
at the DB settings prompt. If you want to use different database settings typeN
and pressENTER
to follow those prompts.Type
N
and pressENTER
at the Web server prompt.Type
N
and pressENTER
at the Telephony server prompt.Type
N
and pressENTER
at the Archive server prompt.Type
N
and pressENTER
at the built-in firewall prompt.A summary will be listed of all selected options. Type in
Y
and pressENTER
to accept and install.Type
reboot
and pressENTER
to reboot and cleanly load vicidial.Login as the
root
user to get to the # command prompt.Type
screen -ls
and pressENTER
to show running screen sessions. There should be three listed like in the screenshotThis will create an entry under
called DB1. Do not delete this entry as it’s needed for ViciDial to function properly.
Screenshots
Web
If not already, login as the
root
user to get to the # command prompt.Type
vicibox-install
and pressENTER
to start the ViciBox installer.Type
Y
and pressENTER
at the ViciBox install prompt.Type
Y
and pressENTER
at the expert installation prompt.The installer will attempt to find a LAN IP address to use for the cluster. If the IP shown is correct type
Y
and pressENTER
. If not typeN
and pressENTER
and follow the prompts.Type
N
and pressENTER
at the the Database prompt.Type in the Database IP address and press
ENTER
, I.E.192.168.50.4
. If the installer is unable to connect to the Database server it will error out. Correct any issues and run the installer again.Type
Y
and pressENTER
at the Web server prompt.Type
Y
and pressENTER
at the Redirect Page prompt.Type
N
and pressENTER
at the Telephony server prompt.Type
N
and pressENTER
at the Archive server prompt.Type
N
and pressENTER
at the built-in firewall prompt.A summary will be listed of all selected options. Type in
Y
and pressENTER
to accept and install.Type
reboot
and pressENTER
to reboot and cleanly load vicidial.Once the server has rebooted, verify you can reach the web interface by going to the server’s IP address in a browser, I.E.
192.168.50.6
, and pressENTER
Click on Administration and login with Username
6666
and Password1234
to continue with the ViciDial Initial Setup.It is recommended to give the 6666 user all Admin permissions before continuing. If there are multiple web servers in the cluster these instructions can be repeated on any additional servers.
Screenshots
Telephony
If not already, login as the
root
user to get to the # command prompt.Type
vicibox-install
and pressENTER
to start the ViciBox installer.Type
Y
and pressENTER
at the ViciBox install prompt.Type
Y
and pressENTER
at the expert installation prompt.The installer will attempt to find a LAN IP address to use for the cluster. If the IP shown is correct type
Y
and pressENTER
. If not typeN
and pressENTER
and follow the prompts.Type
N
and pressENTER
at the the Database prompt.Type in the Database IP address and press
ENTER
, I.E.192.168.50.4
. If the installer is unable to connect to the Database server it will error out. Correct any issues and run the installer again.Type
N
and pressENTER
at the Web server prompt.Type
Y
and pressENTER
at the Telephony server prompt.Do stuff here?
Type
N
and pressENTER
at the Archive server prompt.Type
N
and pressENTER
at the built-in firewall prompt.A summary will be listed of all selected options. Type in
Y
and pressENTER
to accept and install.Type
reboot
and pressENTER
to reboot and cleanly load ViciDial.Once the reboot is complete, log back in as root to get to the # command prompt.
Type
screen -ls
and pressENTER
. While it might take upwards of 5 minutes, eventually there should be 8 Sockets in /run/screens/S-rootType
asterisk -r
and pressENTER
to connect to the Asterisk console. There should be different processes like sendcron logging on and off.Type
quit
and pressENTER
to exit back to the # command prompt.The Telephony server is now installed. If there are multiple telephony servers in the cluster these instructions can be repeated on any additional servers.