Go Back   Computer Forums > General Computing > Server Administration
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 02-16-2011, 10:06 PM   #1
Solid State Member
 
Join Date: Dec 2009
Posts: 7
Post File access with Multiple Servers?

Hello,

I'm currently in the process of building a site. It involves users uploading images. My current setup is that the images are saved on a filesystem, not a database. The only thing in the database is a URL that directs the user to the image stored on the filesystem, as well as Image description, etc.

Now, it's all good if I have one server. But what if I have 2 servers? or 3? If the images are being saved on a filesystem and not the database, then is it possible for the other servers to access images stored in the filesystem of multiple servers?

If i have the images stored to a database, then sure, multiple servers can access it. But what if the images are stored in the filesystem?

Can I store files on a filesystem if I am going to have multiple servers?

(The reason I am asking is because storing binary in databases hogs up a lot of the perfomance when users are retrieving and storing new images. It's a ton faster to store it on a filesystem. But then, what if I have multiple servers?)

Thanks in advance
__________________

Dzwestwindsor is offline   Reply With Quote
Old 02-16-2011, 10:17 PM   #2
Solid State Member
 
Join Date: Feb 2011
Posts: 13
Default Re: File access with Multiple Servers?

Simply have the user upload to server A.
Then server A uploads to server B, or C.
If server A is down upload to server B, B uploads to server C and A when it comes up.
If server B is down, then have C upload to B and A when they come back up.
__________________

nofear1999 is offline   Reply With Quote
Old 02-17-2011, 07:54 AM   #3
Solid State Member
 
Join Date: Dec 2009
Posts: 7
Default Re: File access with Multiple Servers?

nofear1999, thank you for the reply.

Sure, that can be a solution for uploading the files. But what if I want to retrieve it? Is it possible to retrieve files stored on different server filesystems all at the same time? Can the user that's on Server A dynamically retrieve content stored on Server B? Then retrieve other content to render from server C?
Dzwestwindsor is offline   Reply With Quote
Old 02-18-2011, 06:21 PM   #4
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 7,999
Default Re: File access with Multiple Servers?

use nfs,

setup correctly nfs (or nfs2) should replicate the files to all the servers automatically.

for retrieving the files use load balancing to spread the traffic over as many servers as you like.

(there are all free features and easy to configure in windows).

for Linux, it shouldn't be too difficult to make a script to replicate files from a primary server to a couple of secondary servers.

once again network load balancing to distribute the get traffic over the servers.
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 02-20-2011, 02:51 AM   #5
Solid State Member
 
Join Date: Feb 2011
Posts: 13
Default Re: File access with Multiple Servers?

Yeah, you can use load balancing.
nofear1999 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 02:01 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0