vicidial clustering

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

vicidial clustering

Postby ambiorixg12 » Sat Dec 14, 2013 8:37 pm

Hi, I have 4 server i would like some suggestion about how to distribute those 4 server for a call center with 100 agents.

This is what I'm thinking.

First server for DB server, Web Server and save the recording on that server.

Second Server only as dialer.

Third - server with plain Asterisk.

Fourth Server as an standalone vicidial backup server.

Any suggestion will be appreciated
ambiorixg12
 
Posts: 453
Joined: Tue Sep 17, 2013 10:35 pm

Re: vicidial clustering

Postby williamconley » Sun Dec 15, 2013 10:56 pm

If we were hired to do this install for a client who "left it up to us" (which is a major percentage of our installs), we would load all servers using the 64-bit Vicibox 5.0.3 iso image like this:

1) DB / Web / Dialer (ie: all possible roles for the first server). Certify it with all required operations (validate autodial and inbound and anything else you feel the need to test to be sure this server is fully functional). Note that this should be the most powerful server in the cluster with the most cores and the most memory and the FAST hard drives (SSD or SAS 15K rpm ... 6G/Sec, that sort of thing). Possibly with RAID 10 if you have it for the DB and OS. Servers should have two network cards, one public ip and one private ip, and the public IP should be whitelist limited so no one can access without an authorized IP address. Configure NTP to use only US Government ntp tier 1 or 2 servers for date/time sync. And verify that ntpq -p shows "synced" to multiple servers several times throughout the day (stable ntp is necessary to verify). If there is a problem, use "yast" to configure ntp until it works properly (or learn ntp ...).
2) Add a 1T (or larger) generic SATA cheap drive (or two in a mirror) to the above server to allow it lots of storage NOT on the OS/DB drive, mounted in /home which is the archive folder. Then add the Archive role to this server and test that role. To test, you will make a client recording and verify that it gets moved to the new drive and is still available via Web in its new location (NOT on the OS/DB drive and no longer in its original recording location, preferably on the external IP if that will be where recordings will normally be accessed).
3) Now that the entire system is built ... it needs only some disposable/replaceable servers (clone up!). Add all three servers (one at a time) as Dialer/Web. Configure them with standard Vicibox installer to join the cluster. Also be sure to NTP them to iburst (immediate ntp sync) to the DB server. They do not need to ntp anywhere else, they should merely trust the DB server's time because it is important their time matches the DB server (even if the DB is wrong, they should all agree with the DB!).
4) Upon completion, you have a four server cluster capable of 25 agents per dialer. In theory you should avoid registering phones to the DB server and only use it for DB/Web, but you can use "htop" to show your average server load and experiment with how many agents on which server give you the lowest load while keeping sound quality and server operations stable.

Do have a look at load balancing for both web and dialer functions. Web server load balancing is handled in many ways by different software packages (do you just send every agent logging in to the next server? or do you check load average and send them to the lowest load? or perhaps check the number of agents on each and try to balance that way?). Same with Agent Phone Registrations, except there is already a function in Vicidial for this if you have MultiLine phones and use Phone Aliases (it's in the manual! LOL).

Remember that the bulk of your load is in three main areas: 1) Dialer functions 2) DB functions and 3) Web functions. When you only have one dialer, the dialer functions are biggest. But when you have multiple, the DB functions will eventually be largest. And web functions vary with usage but with larger systems will eventually require a dedicated server. Installing all roles on all servers, however, allows you the opportunity to "Balance" in any way you see fit. We've noted VERY minimal savings by not having those functions installed and idling. Necessary by the time you get to Eight servers, but not so much at Four.

I will note, however, that your scenario WOULD be better served by Eight servers:

1 - DB
2 - Web (50 agents each)
4 - Dialer (25 agents each)
1 - Archive (no agents, just archival functions)

But: as you only have Four servers at your disposal, you'll need to make the most of the resources at hand and "blend" services to suit your needs on a daily basis. Keep an eye on your load averages and listen for call quality complaints and watch for irregular behavior during heavy load. And learn to run your system the way YOU need to. No one will know these servers better than you in 30 days. 8-)

Happy Hunting.
PS: For those who think installing dialer functions on the DB server is a waste, consider this: In the middle of a workday you need to test a call to see if the problem is A or B or to see if you can accomplish something in test scenario. Trying to troubleshoot this with 5 calls per second shooting off and all the other debug/console messages flying by can be painfully slow. But ... the DB server is also part of the cluster. Even if left out of "regular dialing", it can still have a campaign with a single agent joined into an existing campaign to take individual calls. With a small trunk limit, it's dialing can be very limited. Troubleshooting can take very little CPU and yet yield great rewards without taking all the agents off any of the other dialers or impeding progress in any way. Excellent for real world testing on the cluster with much less headache and almost no noticeable CPU usage if done correctly.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: vicidial clustering

Postby gardo » Tue Dec 17, 2013 10:42 am

This really depends on what you want to achieve. If you just need barebones setup without fancy database slave server and other backups, 2 machines can handle 100 seats (doing full recordings, g729 codec, up to 5:1 dial level ratio and etc). Going SSD (solid state drives) beats all the fastest SATA/SAS harddrives (even at RAID10) in the market. If you have the budget for it, go for solid state drives.

Typical barebone setup will be:

Database/Web Server:
Dual quad core Xeons or 8 core and up AMD equivalent
12 GB RAM
2 x 480 GB SSD (RAID 1)
1 TB SATA (for recordings storage)

Dialer Server:
Dual quad core Xeons or 8 core and up AMD equivalent
12 GB RAM
2 x 480 GB SSD (RAID 1)

However, if you need redundancy (and high availability) then you'll be needing at least 4 servers. Our typical recommendations for maximum uptime and reliability

2 database servers (can be master and slave or master and master setup - optional SAN or DRBD setup)
2 or 3 web servers with load balancer (this automates the process of shifting traffic from one web server to another in case 1 or 2 goes offline - this can also be on the database or dialer servers)
3 dialer server
FTP server

At this point (when setting up 100 seats and up) we virtualize everything so we can maximize the available resources of the servers. This also makes it quite fast and easy managing the system.
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

Re: vicidial clustering

Postby rrb555 » Wed Dec 18, 2013 9:46 am

what virtual software do you use?
One server that I am managing | Single Server | ViciBox Redux 6.0 | VERSION: 2.12-549a | BUILD: 160404-0940 | revision 2508| No other hardware
For help you can send me a direct email info@support.com.ph
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Re: vicidial clustering

Postby gardo » Thu Dec 19, 2013 1:40 am

We use OpenVZ, KVM and VMware. They play nicely with each other.
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 59 guests