You are here: Re: Confused on load balancing « PHP Language « IT news, forums, messages
Re: Confused on load balancing

Posted by shimmyshack on 09/09/07 09:07

On Sep 8, 8:34 pm, Gleep <Gl...@Gleep.com> wrote:
> Hope someone can provide some insight.
> I'm doing some googling but not finding what I need.
> I'm planning on putting together an application that will allow users to
> upload many multi media files. But lets say my current provider limits
> me to 300 gigs of HD space. I fully expect to fill that up, then I
> would need to get another server and then another and so on.
> So for example on server1 I would have 0-5000 members, server2 would
> have 5001-10000 members and so on. I was thinking that the main
> database would be on primary server and that there would be field that
> contains what server the user is assigned to. So when I go to that user
> (from a search or directly) the url is adjusted and the visitor is
> redirected to correct server.
>
> I don't know if this is the right approach or not. The thing is, if I
> redirect a user to another server, I would no longer have the same db
> connection, so if a visitor did another query, would I redirect back to
> primary server run the query and be redirected back to assigned server?
> Or would it be best to set up duplicated databases with master/slave
> script. I was thinking one way to trick this out is to use a frame, or
> a frame div with ajax. So I maintain a constant db connection on
> primary server yet the data/files are pathed from whatever server they
> are assigned to. I have no idea how those large server cluster farms
> work, it just seems logical to me right now from what I know.
>
> It's all sort of confusing, not sure how to approach this. Also I'm
> looking at the term load balancing it seems as if the multiple servers
> are exact duplicates of each other and visitors are just redirected to
> particular server. In my case I would need to divide up my users to
> various servers because is space considerations.
>
> Can anyone sort of push me in the right direction to figure this out.
> Thanks.

you could take the logon credentials and if correct set an encrypted
cookie on the users machine (over SSL) plus pass something to the
serverB that should handle the users upload, then passback the action
of the form to point to the serverB, then server B will use the info
given to it to authenticate the user based on that cookie and allow
the upload.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация