LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-29-2008, 10:32 AM   #1
humayun.ghani
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
Load Distribution between Servers for WebApplication?


Hi,
I have a website builder running on a linux RHEL3 server (apache2+php+mysql).

My main concern is to give my users to access their sites via subdomains and to separate out my main website server with users server. That's I need a machine on which I could run main website alongwith the "website editor" which lets users create their sites And another machine where there actual website data and stuff like images,files,videos etc reside. So that my customers' site visitors won't be a burden on my primary server.

All virtual hosts would be maintained on that secondary server so that my primary apache could serve only for my main website and not bothering for virtual hosts and other subdomains servings.

In this scenerio the main problem Im facing right now how to effectively communicate b/w these 2servers. I don't know which communication method should I use? I need to get user html pages for editing in editor for which I can use php file_get_contents function to fetch resource from secondary server but how write back on frequent update? Should I just share the secondary server's hardDrive since both servers are connected on a LAN (but I could have more load balancing servers in future) OR should I use php FTP functions to write back? The main thing I also need is that the architecture should be scalable. So that I could place more servers if one users data server gets full. But keeping my communication method as transparent as possible with primary server.

Right now my current website is working fine on a single linux server but Im not sure which method of communication should I choose which is fastest and reliable.

Any suggestions would be appreciated.
Thank you.
 
Old 08-30-2008, 03:18 AM   #2
milindlokde
Member
 
Registered: Apr 2007
Location: Mumbai, India
Distribution: Fedora, ubuntu
Posts: 119

Rep: Reputation: 21
The best thing you can do is use NFS. That way you can mount your the remote directory on a local directory and use it as a part of your own filesystem. You can mount further remote directory on another directory on your server. Or you can mount it on the same directory on the server replacing the previous remote directory if it is already full.

The remote directory on the remote server can then independantly be servered.

Last edited by milindlokde; 08-30-2008 at 03:45 AM.
 
  


Reply

Tags
distribution, load


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Migrating Servers between same distribution but different hardware marcusone Linux - Server 6 06-27-2008 02:55 PM
Need advice for choosing distribution for servers Tony 1979 Linux - Server 5 05-18-2008 01:42 PM
Load Balancing Between Servers ricky123 Linux - Newbie 7 01-24-2008 12:43 AM
running iptable ( sbin command ) on webapplication omid1979 Programming 1 07-13-2006 03:30 PM
same: load balancing of mail servers. bswrj Linux - General 1 05-12-2003 07:41 AM


All times are GMT -5. The time now is 07:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration