OpenVZ Forum


Home » General » Support » Clusterized Web Server
Clusterized Web Server [message #33184] Fri, 26 September 2008 20:25 Go to next message
silentninja is currently offline  silentninja
Messages: 37
Registered: September 2007
Member
I want to do a clusterized web server that works this way:

Main Server VE-0 => External IP
VE-1 => Internal IP
VE-2 => Internal IP
VE-3 => Internal IP

VE-1 has only apache / ftp access
VE-2 has all the mail access (pop3/imap/smtp)
VE-3 has all the mysql / pgsql databases

What i need to do is that internally they can coexist (eg, the VE-1 can connect to VE-2 for a php mail send) but NOT externally (VE-1 has no outband connection).

The Main Server (VE-0) will accept all connections to the 80 / 110 / 3306 ports (eg, they'll be some others) and internally will redirect them to the VE-1, VE-2, and VE-3 respectivelly.

This way the user can only access the server with one IP and he doesn't need to know that it's been redirected elsewhere. Also it would help if later I need to grow and put multiple computers instead of multiple virtualized ones.

Is this possible without some hardcoding of vzs / iptables, and just some configuration ?

[Updated on: Fri, 26 September 2008 20:26]

Report message to a moderator

Re: Clusterized Web Server [message #33186 is a reply to message #33184] Sat, 27 September 2008 03:39 Go to previous messageGo to next message
LinuxGeek is currently offline  LinuxGeek
Messages: 13
Registered: April 2008
Location: Egypt
Junior Member
Hello,
Check this to cluster many containers
http://wiki.openvz.org/HA_cluster_with_DRBD_and_Heartbeat

you can use LVS for Apache
www.linuxvirtualserver.org

and this for mysql cluster
http://www.mysql.com/products/database/cluster/

regards
Alaa eldin
Re: Clusterized Web Server [message #33189 is a reply to message #33186] Sat, 27 September 2008 15:43 Go to previous message
silentninja is currently offline  silentninja
Messages: 37
Registered: September 2007
Member
LinuxGeek wrote on Sat, 27 September 2008 00:39

Hello,
Check this to cluster many containers
http://wiki.openvz.org/HA_cluster_with_DRBD_and_Heartbeat

you can use LVS for Apache
www.linuxvirtualserver.org

and this for mysql cluster
http://www.mysql.com/products/database/cluster/

regards
Alaa eldin


DAAAAMN.. that's too much to read xD
Anyway, thanks, it'll be really helpful =D
Previous Topic: Problems in cPanel (in vps) adding static ip´s
Next Topic: VE's can't see my router!
Goto Forum:
  


Current Time: Fri Sep 27 14:19:13 GMT 2024

Total time taken to generate the page: 0.07683 seconds