XFileSharing Pro - Round Robin Load Balancing of Files ?

Message
Author
jdinh0608
Posts: 10
Joined: Sep 12, 2013 1:06 am

Round Robin Load Balancing of Files ?

#1 Postby jdinh0608 » Oct 06, 2013 7:28 am

I have a server running XFS+Video mod for my personal use only. More people are beginning to view my videos, slowing down the server. Can I copy the video files to a second server via rsync, and have XFS round robin the traffic between the 2 servers whenever users request a video ?

I know that XFS round robin uploading files between servers, but does it also round robin requested files if 2 or more servers have identical files ? If not, can this be done via other methods ?

ufkabakan
Posts: 332
Joined: Apr 13, 2011 9:37 pm

#2 Postby ufkabakan » Oct 06, 2013 10:18 am

Its possible if, you have fully mirror on 2 server and this servers must look on Server section READONLY. Because if you open for upload this mirror servers, uneed realtime rsync for this 2 servers.

jdinh0608
Posts: 10
Joined: Sep 12, 2013 1:06 am

#3 Postby jdinh0608 » Oct 06, 2013 9:12 pm

It's a given that both these server will be sync in real time, however, will XFS round robin automatically if let's say there are 2 mirrored file servers. Or additional tinkering must be made for this to happen ?

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#4 Postby ankurs » Oct 07, 2013 8:23 am

xfs has no such round robin logic, you can just use dns round robin

jdinh0608
Posts: 10
Joined: Sep 12, 2013 1:06 am

#5 Postby jdinh0608 » Oct 07, 2013 12:34 pm

Hi, thank you for replying. Just so I can grab a bit more understanding before attempting:

1. Have a domain named xxxxxx.com
2. Set round robin DNS for that domain between 2 servers.
3. Set up both servers. Have them rsync every minute.
4. Enter the domain xxxxxx.com in the Add Server section within the admin panel.

So now, every time someone is upload or download a file, main server will send request to xxxxx.com which is then round robin between the 2 servers ? Is the above the correct way to tackle this ? Do i need to rr both apache IP and Nginx IP ?

Thanks

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#6 Postby ankurs » Oct 07, 2013 3:36 pm

Just set the download URL with the domain which has round robin DNS set & not the upload URL.


Return to “XFileSharing Pro”



Who is online

Users browsing this forum: No registered users and 0 guests