Installing on 2 (or more) server

All installation and configuration problems and questions

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

Installing on 2 (or more) server

Postby spaquet » Sat May 30, 2009 7:14 am

Hi,

I already installed Vicidial on a single server, but I need to split it.
I check the dock, but there is only a load balancing, which does not seem to be what I'm looking for.

The configuration I'm willing to have is the following:

1. One server running web server and MySQL
2. One server running Asterisk

I'm not looking for any telecom load balancing.

So, where and how should I split packages, AGI, and all that stuff to have a working configuration.

Please, do not answer: Why are you not using VicidialNow... Not the answer I'm looking for too.

Thanks you all for your time.

Bests

SP
spaquet
 
Posts: 105
Joined: Sat May 30, 2009 7:05 am
Location: Morocco

Postby Op3r » Sat May 30, 2009 8:25 am

Because it's my birthday. I'll tell you how.


disable the apache and mysql on that all in one server

install apache and mysql on another server

let the crontabs stay at the asterisk server

have the time sync between those servers.

check your astguiclient.conf

point the database entry to that new server.

it's also a good idea to install vicidial package on the new server.
Get paid for US outbound Toll Free calls. PM me. visit https://stopmanualdial.com for vicidial services.
Op3r
 
Posts: 1432
Joined: Wed Jun 07, 2006 7:53 pm
Location: Manila

Postby spaquet » Sat May 30, 2009 9:03 am

sounds good
I'll give it a try right away
spaquet
 
Posts: 105
Joined: Sat May 30, 2009 7:05 am
Location: Morocco

Postby williamconley » Sat May 30, 2009 2:57 pm

I've found that the EASIEST split is just move mysql. For a "quick" way to recover some serious CPU and buy some time (and in most cases where this happens) get the server back online with good quality sound immediately. Also, a VERY quick install (LAMP) and if you do it right, you can just use the Vicibox install CD, and NOT use vicibox on the new server (yet).

If you use a database name OTHER than asterisk when you move the MySQL database ... you can even leave the vicidial on the new server dormant (while allowing the manager to see the new features ... and eventually port everything into IT as the new server).

The manager will then salivate at the new features he's missing out on ... and you won't have to wait until you reach capacity again for the finishing of the upgrade.

All you have to do, essentially, is change MySQL credentials to point to the new database server and move the database (ok, move the database first, it works better!). When you move the database, you do have to create the appropriate mysql users and grant privileges, but that's not too terribly difficult. then when the MySQL calls occur (and there are A LOT of them!) in Vicidial, they just execute on the other box. CPU usage for Mysql has moved ... and your dialer is at full power again.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # 888-883-8488 # +44(203) 769-2294
williamconley
 
Posts: 20427
Joined: Wed Oct 31, 2007 4:17 pm
Location: Bartow, FL (In the boondocks)

Postby spaquet » Mon Jun 01, 2009 12:22 pm

well, well, well

I'm ending wit a "Sorry, there are no available session" message.

I checked vicidial_conference and conference table and put the right IP (the one that points to Asterisk Server).

I check my meetme.conf file and my extension.conf file but nothing. Things have remained the same.

As a reminder: I have Web + MySQL + part of Vicidial on one server and Asterisk + Vicidial on an other

I did not see any error messge...

Any idea ?
spaquet
 
Posts: 105
Joined: Sat May 30, 2009 7:05 am
Location: Morocco

Postby williamconley » Mon Jun 01, 2009 12:58 pm

Read the docs! They are fairly explicit.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # 888-883-8488 # +44(203) 769-2294
williamconley
 
Posts: 20427
Joined: Wed Oct 31, 2007 4:17 pm
Location: Bartow, FL (In the boondocks)

Postby codehaxor » Thu Jun 04, 2009 8:19 am

Quick run through


Server 1 (DB / Web)

* Mysql5
* php5
* apache2 or httpd2
* php5-devel
* php5-mysql
* eaccelerator
* phpmyadmin

Server 2 (asterisk)

* Perl Modules
* Asterisk-Perl Module
* Asterisk
* Zaptel
* Libpri
* sox
* screen
* lame
* crontab entries
* astguiclient / vicidial package


1. Install server 1 first, be sure to edit the my.cnf to have this database only settings http://download.vicidial.com/conf/my-vicidb.cnf (this is a good example).

2. Install Server 2 and all the packages that are required except for apache/php/mysql

3. When installing astguiclient / vicidial be sure to point the database ip address to your db ip address.

4. Using phpmyadmin (web interface), run the sql scripts MySQL_AST_CREATE_tables.sql
first_server_install.sql
sip-iax_phones.sql


5. Then from your asterisk server run the following commands to update the default ip address to your asterisk servers ip address ADMIN_update_server_ip.pl –old-server_ip=10.10.10.15

6. Then run this /usr/share/astguiclient/ADMIN_area_code_populate.pl
Team Dax Cordova IT Consulting
Vicidial Remote & Onsite Installation / Configuration / Custom Development / Consultancy Services
http://www.linkedin.com/in/codehaxor
FREE VICIDIAL INSTALLATION IN THE PHILIPPINES
codehaxor
 
Posts: 151
Joined: Wed Mar 14, 2007 2:37 am
Location: Dumaguete City, Philippines

Postby spaquet » Thu Oct 29, 2009 12:04 pm

Perfect it's workign now, i thing I forgot to check the astguiclient.conf file.

Everything is fine now.

I have MySQL + Lighttpd + Vicidial on one server and Asterisk on a other one so voice is managed by a single dedicated machine.

Perfect.

Thank you all for your time and answers that helped me.

:)
spaquet
 
Posts: 105
Joined: Sat May 30, 2009 7:05 am
Location: Morocco

Postby spaquet » Fri Oct 30, 2009 7:05 am

Just a reminder: BE SURE TO HAVE BOTH SERVER SYNC (on ubuntu the crontab script provided is false it should be /usr/sbin/ntpupdate) and servers in the same time zone.

This second point is very important.
spaquet
 
Posts: 105
Joined: Sat May 30, 2009 7:05 am
Location: Morocco


Return to Support

Who is online

Users browsing this forum: Majestic-12 [Bot] and 88 guests