PDA

View Full Version : Multi Server How-To?


Philip II
03-20-2008, 08:35 PM
Where are planning our already active forum to make on two different (same hosting company) virtual dedicated servers.
One server will be web server, the second one will be database server.

How to make this possible, is there any guide/tutorial for configuration?
How to connect the database with the forum, etc.?

Any help will be appreciated.

DivisionByZero
03-20-2008, 08:43 PM
use NO control panels whatsoever... administer your machines the old fashioned way :)

step 1. reconsider "virtual dedicated" machines, and go dedicated. so you can do steps 2-5 :)
step 2. setup an isonet between both machines for mysql communication.
step 3. configure machine 1 for apache high-performance.
step 4. configure machine 2 for mysql high-performance.
step 5. completely remove apache from machine 2.
step 6. completely remove mysql from machine 1
step 7. setup your firewalls accordingly.

You can also consider removing $cronimage from your footer and placing it into a separate php file that calls global.php. Run this script as a unix cron at intervals respectively with your most frequently run cron jobs. On big boards, this gets called too often and can help conserve resources.

alphadeity
03-21-2008, 01:41 PM
I have my servers setup in a cluster. I have 5 servers total in this cluster. I reccomend that you go dedicated instead of vps.

Server1 (Webserver) - Nothing else installed.

Server2 (MySQL Server) - Nothing else installed!

Server3 (MySQL replica Server) - Nothing else installed, replicates the MySQL databases from server2 every 3 hours. If server2 goes down, server3 will act as the master server. Some information will be last, but not completely. The delay is there in case server2 is attacked... the delay will hopefully be enough time to stop server3 from replicating the attack. (be careful how you setup database replication as it can cause bad delay times on your forums).

Server4 (Email Server) - Email only! Does nothing else.

Server5 (Raided backup of server 1, 2, 3, and 4) - This does not have anything installed. It does backups every night.

The only server that has access to the outside internet is server1 and server4. Just make sure that server1, server2, and server5 are nice and beefy. I really only reccomend having a setup like this if you're a host. :-P

okgaz
03-23-2008, 10:43 PM
Nice set up!!!!!

I have my servers setup in a cluster. I have 5 servers total in this cluster. I reccomend that you go dedicated instead of vps.

Server1 (Webserver) - Nothing else installed.

Server2 (MySQL Server) - Nothing else installed!

Server3 (MySQL replica Server) - Nothing else installed, replicates the MySQL databases from server2 every 3 hours. If server2 goes down, server3 will act as the master server. Some information will be last, but not completely. The delay is there in case server2 is attacked... the delay will hopefully be enough time to stop server3 from replicating the attack. (be careful how you setup database replication as it can cause bad delay times on your forums).

Server4 (Email Server) - Email only! Does nothing else.

Server5 (Raided backup of server 1, 2, 3, and 4) - This does not have anything installed. It does backups every night.

The only server that has access to the outside internet is server1 and server4. Just make sure that server1, server2, and server5 are nice and beefy. I really only reccomend having a setup like this if you're a host. :-P

SEOvB
03-24-2008, 02:10 AM
nice setup, not sure if thats considered a cluster or not though :D