Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am in the process of going from a managed dedicated server situation to building my own linux box and co-locating it near my house.
I am planning on having heavy traffic on my site within the next year or so and am considering planning for the cluster/load balance as part of my start up.
There is not much coherent information online or in books regarding the different types, softwares, or procedures for this type of endeavor.
Please, if you have any experience or information on this issue, post something to help all who may want to do this.
========================
In my minds eye, a load balance or cluster system is to make sure your site does not 'crash' or go offline with too much web traffic. A way to balance that load and put it on other servers with the same information and such.
However, major concerns are evident with a dynamic website system when talking about going from one server to another...
These concerns are listed below...
---------------------------------
1- how does one carry cookies, sessions, etc, from one server to another if customer is 'pushed' due to traffic overwhelm?
2- in a dynamic setting, lots of user input, file uploads, stat information, and even admin adjustments are continuosly happening. How can 3 different servers keep this information sanely updated instantly across all three servers?
3- Is it impossible to cluster or load balance a website that is dynamic with user input? I cannot see how without slave/master systems that have to go both ways across all servers....and at the same time copy/delete media files and such.
--------------------------------------
Does anyone have a working system that is clustered or balanced that deals with sessions, user input, securtiy, etc?
Even my current hosting company, that caters to large businesses and deddicated servers has 'no idea'...
I am sure I am not the only one who is interested in this...
You could look around to find out how Google does it. You appear to want a smaller version of what they have got.
You could use something like Open Mosix. That would handle the load balancing and resource sharing/locking. I don't know if it could handle authenticated sessions.
Interesting. If apache cluster handles sessions ... Awesome.
What OS are you planning to use?
I've used a 'edge' server (IBM terminology) to front end all traffic coming to my app servers. The edge server would send each client to whichever app server was least busy at the time. However if that app server died, the sessions on it died also. Those users would have to reconnect and start from their session over. But if they had committed anything to the database (which was on the backend on a separate server) it would be saved as expected.
This worked well, even though it was not session capable.....at least the app / web site is still available to the user. I only mention this so that if you cannot find a session capable cluster manager, you still can have the web site redundancy to a point.
Interesting. If apache cluster handles sessions ... Awesome.
What OS are you planning to use?
I've used a 'edge' server (IBM terminology) to front end all traffic coming to my app servers. The edge server would send each client to whichever app server was least busy at the time. However if that app server died, the sessions on it died also. Those users would have to reconnect and start from their session over. But if they had committed anything to the database (which was on the backend on a separate server) it would be saved as expected.
This worked well, even though it was not session capable.....at least the app / web site is still available to the user. I only mention this so that if you cannot find a session capable cluster manager, you still can have the web site redundancy to a point.
I have no idea what I am planning to use as there is no coherent online or text book help book at all.
I was assuming a linux standard server with some kind of software or setup that allowed for balancing and clusters.
ANything I do find however, does not deal with sessions, user data, user input (files and database) and the like..
Considering that a user based website would deal with log ins, sessions, ssls, use data grabs (stats), user inputs, etc.....I am getting frustrated that there is no one out there who has dealt with it before, nor does there seem to be any set up to deal with it.
I was thinking of using a main computer with a bunch of fronts....this way all data could be master-slaved to the manin one while the fronts served everything. However, again, what happens when they get shunted from one from to the other? How are cookies handled and so forth...and how does session data get moved too?
My other thought was a series of computers, with a complex master-slave system where one is the main and all temp data is ported to it then filtered back to the others...but that does not work well on paper...lol
My only other thought is to make a server as a mail server, make another as the 'users server' for logged in people, then make a server for 'non logged users--, thus breaking up all the traffic.. Maybe another for those who grab info (such as RSS and stuff).... But it will still take a lot of master-slave mysql database manuvering, stats will be hard to compile, and the issue of user uploaded files can be a problem.
I just am finding it hard to believe there is no coherent system....I mean, 'copy' raid arrays work don't they? Why can't a set of three servers act like that? It would be perfect, almost to the second too.
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252
Rep:
Quote:
Originally Posted by cyberhydra
Hello,
I am in the process of going from a managed dedicated server situation to building my own linux box and co-locating it near my house.
I am planning on having heavy traffic on my site within the next year or so and am considering planning for the cluster/load balance as part of my start up.
There is not much coherent information online or in books regarding the different types, softwares, or procedures for this type of endeavor.
Please, if you have any experience or information on this issue, post something to help all who may want to do this.
========================
In my minds eye, a load balance or cluster system is to make sure your site does not 'crash' or go offline with too much web traffic. A way to balance that load and put it on other servers with the same information and such.
However, major concerns are evident with a dynamic website system when talking about going from one server to another...
These concerns are listed below...
---------------------------------
1- how does one carry cookies, sessions, etc, from one server to another if customer is 'pushed' due to traffic overwhelm?
2- in a dynamic setting, lots of user input, file uploads, stat information, and even admin adjustments are continuosly happening. How can 3 different servers keep this information sanely updated instantly across all three servers?
3- Is it impossible to cluster or load balance a website that is dynamic with user input? I cannot see how without slave/master systems that have to go both ways across all servers....and at the same time copy/delete media files and such.
--------------------------------------
Does anyone have a working system that is clustered or balanced that deals with sessions, user input, securtiy, etc?
Even my current hosting company, that caters to large businesses and deddicated servers has 'no idea'...
I am sure I am not the only one who is interested in this...
Anyone wanna provide some thoughts?
First, what applications are planning to put and what OS u want to use? i assume its not windows, because this is a linux forum
how heavy is the traffic? you can do either load balancing via DNS osr load balancing via ultramonkey.
First, what applications are planning to put and what OS u want to use? i assume its not windows, because this is a linux forum
how heavy is the traffic? you can do either load balancing via DNS osr load balancing via ultramonkey.
Sorry if it was not clear, but I believe I made it clear I am talking about a linux box...Nothing to do with windows..
LINUX server....
As for how heavy the traffic is, that is why I want to build a cluster/load balance....to handle the extra traffic as the site builds...and obviously be able to easily add more servers as it goes.
Load balancing via DNS would not, as far as I know, do anything with user input, any kind of sessions, nor sync the computers in anyway in a dynamic web server. However, I am researchin your idea anyway, just to be sure.
Is this something you have done before with a few servers?
I will check out ultramonkey and post anything I find here.
have you used it before? Does it deal with syncing databases, uploaded files, master-slaves, raid arrays, and user sessions? Was it a good fix for you?
I believe this is a popular product for what you want to achieve. http://www.f5.com/products/bigip/
Note: nothing to do with me, I've just heard of it a fair bit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.