LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-28-2010, 07:45 AM   #1
bzzz
LQ Newbie
 
Registered: Mar 2007
Location: Sibiu, Romania (Europe)
Distribution: Debian Lenny
Posts: 16

Rep: Reputation: 0
Apache message: the load is too high


Hello,

I have a apache cluster with more than 10 nodes, based on ldirector and heartbeat. The problem is that I cannot predict if my nodes will handle the traffic in the next day (hosting a website based on daily campaigns). So I decided to limit the number of active connection on the nodes (from apache), but this is only a temporary solution. I want to create a page that will appear to users that are getting over the limit. Has anyone made this before? Can you tell me how is it possible (I don't want a how to, just a starting point to study)? I think squid can do it, but I don't know how to search for it.

To give you an example of what I want, you can see the same thing on deviantart.

Thank you.
 
Old 02-28-2010, 09:43 AM   #2
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
What error code user receives when there's overload? I presume it's 500 or 502(you'll have to check that in your logs if you don't know). Look into ErrorDocument directive.
 
Old 02-28-2010, 09:47 AM   #3
bzzz
LQ Newbie
 
Registered: Mar 2007
Location: Sibiu, Romania (Europe)
Distribution: Debian Lenny
Posts: 16

Original Poster
Rep: Reputation: 0
Hey,

Thanks for the reply. No, there is no message, just keeps on loading. It puts the connection in a queue (http://httpd.apache.org/docs/2.2/mod...#listenbacklog). Also, I'm planning to migrate to lighty so I need a universal solution, but I don't know how to search what I need.

Thanks.
 
Old 02-28-2010, 09:58 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
there are a number of modules within nginx which can threshold maximum numbers of connections to a server it's front-ending. I looked throught the modules now, and TBH I can't immediately see anything for global connections, only per-source connections, but i'm sure I'm missing something.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with high load keystroke Linux - Server 2 11-26-2009 11:29 PM
High load, high RAM usage and unresponsive VPS saeed22 Linux - Server 1 08-20-2009 11:58 AM
High server load... might be this process: /usr/local/apache/bin/httpd -DSSL ajames3436 Linux - Server 4 06-19-2009 07:45 AM
Load Avg High/Phys Mem High teamh Debian 2 12-26-2006 05:03 PM
My load on computer is too high imi@tux Linux - Newbie 7 03-04-2006 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration