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 - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-08-2017, 12:29 PM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 527

Rep: Reputation: Disabled
Can i discover load impact of an IP?


Hello,

my bash script detect excessive number of connections from an IP to port 80 and i would like my bash script to better decide whether this IP is contributing to the server overload (load average by "top" command or IOPS usage) so to consider if to ban this IP for some time.

On Linux (CentOS 6, 2.6.32 kernel) how can i discover load impact of a connections from some IP?

Thank You in advance.
 
Old 10-08-2017, 01:23 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,732

Rep: Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973
Quote:
Originally Posted by postcd View Post
Hello,
my bash script detect excessive number of connections from an IP to port 80 and i would like my bash script to better decide whether this IP is contributing to the server overload (load average by "top" command or IOPS usage) so to consider if to ban this IP for some time.

On Linux (CentOS 6, 2.6.32 kernel) how can i discover load impact of a connections from some IP?
Why don't you post your script, so we can all see what it's doing, and advise you from there? Again, as with most of your posts, you omit most of the details that would let anyone answer. You don't say what web engine you're using, bandwidth available, what kind of hardware its running on, what the websites DO (and are they PHP/Java/HTML/asp pages? Use DB backends? Database size? etc., etc., etc.) A single poorly-written web page can cause as much load an people hitting 100 properly written ones.

And since we don't know what you're doing in this bash script to determine what's going on, the only thing we can really tell you is "re-write your bash script to do whatever you'd like".
 
Old 10-08-2017, 06:19 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
There are plenty of software packages (and stats-package macro sets) which can analyze an Apache log file.

First, be sure that your Apache has limits on the number of server-processes that it will spawn, so that any flood of requests will not result in a flood of workers, and/or actual "system overload."

Then, analysis of the situation is done by ordinary statistical analysis which considers not only "requests per second" or "simultaneous requests," but exactly what(!) those requests might be. A single-tier Apache system cannot discriminate between requests or place them into alternative queues for back-end processing, so you must either switch to a multi-tier workload processing system or throttle the system so that overload cannot occur (worst case) no matter what the incoming request pattern might be.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
vhost.conf and Alias to share common files across domains - impact on server load? Trance-formation Linux - Server 2 05-19-2009 04:32 PM
LXer: Open Source Impact on Software Innovation Outweighs Impact on ... LXer Syndicated Linux News 0 08-15-2006 01:54 PM
Websites load slow, but once they load, any links inside them load fast smurcoch Mandriva 3 02-06-2006 12:47 AM
How to discover my rwin value mooreted Linux - Networking 0 12-14-2003 04:42 PM
Compiling discover-2.0.1 Crazed123 Linux - Software 0 12-06-2003 11:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:47 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