LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Question about load balancing

Reply
 
Thread Tools Display Modes
  #1  
Old 03-03-2008, 06:28 AM
doniking doniking is offline
Member
 
Join Date: Sep 2007
Posts: 13
Default Question about load balancing

Hello,

How to synchronize the contents between webserver 1 and 2 if they are placed behind a load balancer?

Thanks.
Reply With Quote
  #2  
Old 03-03-2008, 08:53 AM
Dani Dani is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
Quote:
Originally Posted by doniking View Post
Hello,

How to synchronize the contents between webserver 1 and 2 if they are placed behind a load balancer?

Thanks.

what content exactly? sessions, cookies, page content...? The probable answer is that you have to maintain a sync between the servers in some way. load balancer should only take care of the 'load' hence the name. Meaning it sends you to the server with the less load, the rest is up to you and your coding.
Reply With Quote
  #3  
Old 03-03-2008, 09:05 AM
doniking doniking is offline
Member
 
Join Date: Sep 2007
Posts: 13
I mean the page content.
Let say, the load balancer send a user to web 1, and he upload a file maybe
a picture and save it to a folder on web 1. How to make web 2 do the same task like what the PHP script on web 1 does?
Reply With Quote
  #4  
Old 03-03-2008, 09:31 AM
Dani Dani is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
Quote:
Originally Posted by doniking View Post
I mean the page content.
Let say, the load balancer send a user to web 1, and he upload a file maybe
a picture and save it to a folder on web 1. How to make web 2 do the same task like what the PHP script on web 1 does?
either have the upload script distribute the file on all servers when a new file is recieved, or have a common folder for those files that are uploaded using nfs (file sharing) which both servers read and write to...
Reply With Quote
  #5  
Old 03-03-2008, 09:36 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
That's correct. You can either store the file in a shared folder, or use some synchronization technologies, like rsync, etc.
Reply With Quote
  #6  
Old 03-03-2008, 08:26 PM
doniking doniking is offline
Member
 
Join Date: Sep 2007
Posts: 13
Thanks for your clue, guys!
Reply With Quote
Reply

Thread Tools
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

Forum Jump


All times are GMT -7. The time now is 11:50 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.