Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Serving files from 2 different servers
Old 07-31-2008, 12:22 AM Question Serving files from 2 different servers
semiNu's Avatar
Junior Talker

Posts: 1
Name: Thomas
Trades: 0
I have 2 dedicated servers (A and B). Each server has a 10 mbps monthly bandwidth allowance. I am using 15 mbps on server A, and under 2 mbps on server B. All the bandwidth usage on server A is coming from a single domain.

Is there an easy way for me to serve some of the files from server A seamlessly from server B (without using redirects or subdomain)? I was hoping there's a simple solution that will let me use the spare bandwidth from server B instead of having to pay overages.

Thanks!

Last edited by semiNu; 07-31-2008 at 12:27 AM..
semiNu is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-31-2008, 04:13 AM Re: Serving files from 2 different servers
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
You could setup a duplicate of the web site on server b, and configure your dns zone to do a round robin between the 2. It means that you must use 1 db entry (in case you are using databases) and that you must have a way to share sessions between the 2 servers, but there is not much alternative than that.

Putting a static.domain.com url directing to the other server will only move most of the load to the second server.
You need a load balancer type setup here.

As you have dedicated servers, it should not be too hard to setup.
Basically (theorically, I never implemented this), you would have to have 1 server as the db, and you duplicate the vhost configuration and the files on the 2 servers.
Then, once they both work individually (you can play with tht hosts file to check it), you will need to update your dns zone file.
If you are using bind on your servers, then it's just a simple
Code:
www   IN  A   192.168.0.7
www   IN  A   192.168.0.8
www   IN  A   192.168.0.9
to declare every servers as answering to a subdomain.
Bind will then give a different ip destination to every request it got.

If you are using an outsourced dns server, then you might need to look with your hoster how to do that.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to Serving files from 2 different servers
 

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16745 seconds with 12 queries