LoadB WEb

All installation and configuration problems and questions

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

LoadB WEb

Postby ruben23 » Wed Oct 26, 2011 9:51 pm

Asterisk 1.4.27.1
SVNtrunk agc
Ubuntu server 10.04 LTS
Scratch_install
are there option that i can load balance two web server only on a multi server setup of vicidial

3 - asterisk
1 DB
2 web server (sole web server/load balance)

anyone have done loadbalancing of web server..?
:)
SkypeID: rlacumba
IBM x3200 Dual Core 2.4 Ghz.
4GB Ram
VERSION: 2.4-311a
BUILD: 110514-1351
© 2011 ViciDial Group
Asterisk 1.4.27-vici
Another VICI_day, same trunK, same Channel-->Transcode...
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby mflorell » Wed Oct 26, 2011 11:35 pm

Apache has a built-in load balancing module, can't remember the exact name of it, but it is fairly simple to set up and configure.
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby boybawang » Thu Oct 27, 2011 12:35 am

you use the application called BALANCE

http://www.inlab.de/balance.html for more details, you need 2 web servers with the same vicidial scripts on it
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Postby ruben23 » Thu Oct 27, 2011 10:34 am

@boybawang


yes i have 2 web server with same vicidial script, but i just follow your scratch_install procedure that i downloaded the svn trunk then copy the web files to the web server directory then set the proper setting for the databased.

what particular script are this.? script found on /usr/share/astguiclient..?

and i found this instruction:

wget http://voxel.dl.sourceforge.net/sourcef ... ce/balance 3.34.tgz
- gunzip balance-3.34.tgz
- tar xvf balance-3.34.tar
- cd balance-3.34
- make
- make install
- /usr/sbin/balance -f 81 localhost:80 10.10.10.16:80
SkypeID: rlacumba
IBM x3200 Dual Core 2.4 Ghz.
4GB Ram
VERSION: 2.4-311a
BUILD: 110514-1351
© 2011 ViciDial Group
Asterisk 1.4.27-vici
Another VICI_day, same trunK, same Channel-->Transcode...
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby boybawang » Thu Oct 27, 2011 12:35 pm

assuming 10.10.10.16 is another web server with the same vici scripts
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Postby ruben23 » Thu Oct 27, 2011 8:31 pm

@boybawang

Balance should be in both web server right..? and the situation is all agents would only login to one web server, tehn balance would do the rest to share the load to other web server.
SkypeID: rlacumba
IBM x3200 Dual Core 2.4 Ghz.
4GB Ram
VERSION: 2.4-311a
BUILD: 110514-1351
© 2011 ViciDial Group
Asterisk 1.4.27-vici
Another VICI_day, same trunK, same Channel-->Transcode...
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby iulianm » Fri Oct 28, 2011 10:28 am

I use haproxy to balance on 4 werb servers . I didn't had any problems
iulianm
 
Posts: 36
Joined: Thu Nov 25, 2010 6:26 am
Location: Romania

Postby ruben23 » Fri Oct 28, 2011 7:25 pm

@iulianm

if i useed Haproxy i need another box as load balancer right, so making it 3 servers all in all..? 2 apache web server and 1 HAproxy..
SkypeID: rlacumba
IBM x3200 Dual Core 2.4 Ghz.
4GB Ram
VERSION: 2.4-311a
BUILD: 110514-1351
© 2011 ViciDial Group
Asterisk 1.4.27-vici
Another VICI_day, same trunK, same Channel-->Transcode...
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby iulianm » Sat Oct 29, 2011 12:18 am

or you put haproxy to run on a different port on one of those machine
iulianm
 
Posts: 36
Joined: Thu Nov 25, 2010 6:26 am
Location: Romania


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 164 guests