UK diy (uk.d-i-y) For the discussion of all topics related to diy (do-it-yourself) in the UK. All levels of experience and proficency are welcome to join in to ask questions or offer solutions.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 39,563
Default gridwatch hiccup.


Apologies if your viewing pleasure was interrupted, but for some time a
certain West Coast university specialising in 'green' issues has been
stressing the server with continuous data downloads, at about 17:00 they
managed to find a download query that pushed the server into swap.

It took half an hour to shut down the web server and finally the mysql
server.

And identify the source of the attack.

It has now been blocked from further malicious access and service is
back to normal. Some data may have been lost.



--
Ineptocracy

(in-ep-toc-ra-cy) €“ a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.

  #2   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 7,434
Default gridwatch hiccup.

On 18/03/14 18:23, The Natural Philosopher wrote:

Apologies if your viewing pleasure was interrupted, but for some time a
certain West Coast university specialising in 'green' issues has been
stressing the server with continuous data downloads, at about 17:00 they
managed to find a download query that pushed the server into swap.

It took half an hour to shut down the web server and finally the mysql
server.

And identify the source of the attack.

It has now been blocked from further malicious access and service is
back to normal. Some data may have been lost.


IYCBA (be arsed) drop the compsci dept an email.

It may have been an honest student mistake. One of mine (at a previous
college) took out the Radiotimes TV schedule website once because he'd
got the polling interval a bit on the "short" side.

They were very understanding when I explained it was an honest mistake
and not a malicious attack.

  #3   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 39,563
Default gridwatch hiccup.

On 18/03/14 18:46, Tim Watts wrote:
On 18/03/14 18:23, The Natural Philosopher wrote:

Apologies if your viewing pleasure was interrupted, but for some time a
certain West Coast university specialising in 'green' issues has been
stressing the server with continuous data downloads, at about 17:00 they
managed to find a download query that pushed the server into swap.

It took half an hour to shut down the web server and finally the mysql
server.

And identify the source of the attack.

It has now been blocked from further malicious access and service is
back to normal. Some data may have been lost.


IYCBA (be arsed) drop the compsci dept an email.

It may have been an honest student mistake. One of mine (at a previous
college) took out the Radiotimes TV schedule website once because he'd
got the polling interval a bit on the "short" side.

They were very understanding when I explained it was an honest mistake
and not a malicious attack.

It gets more curious.
They were running a timed script every 5 minutes obviously hand coded to
download just the demand a month ago.

It shouldn't have been a problem.

No other massive request seem to have been made..

I am still hunting the logs.



--
Ineptocracy

(in-ep-toc-ra-cy) €“ a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.

  #4   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 748
Default gridwatch hiccup.

On 18/03/14 18:46, Tim Watts wrote:
On 18/03/14 18:23, The Natural Philosopher wrote:

Apologies if your viewing pleasure was interrupted, but for some time a
certain West Coast university specialising in 'green' issues has been
stressing the server with continuous data downloads, at about 17:00 they
managed to find a download query that pushed the server into swap.

It took half an hour to shut down the web server and finally the mysql
server.

And identify the source of the attack.

It has now been blocked from further malicious access and service is
back to normal. Some data may have been lost.


IYCBA (be arsed) drop the compsci dept an email.

It may have been an honest student mistake. One of mine (at a previous
college) took out the Radiotimes TV schedule website once because he'd
got the polling interval a bit on the "short" side.

They were very understanding when I explained it was an honest mistake
and not a malicious attack.

I once worked for a university. Students writing a web spider badly
(IIRC) managed to clobber our DNS into submission (or at least
slowness), and got us a irate phone call from another uni. IIRC it was a
lab full of PCs.
  #6   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 39,563
Default gridwatch hiccup.

On 18/03/14 23:33, Brian Gaff wrote:
Was this deliberate, or just a monumental cock up?
Brian

I am beginning to think it was simply a coincidence.

I ran out of memory possibly due simply to too many things going on, and
what suffered was a few download queries. They needed to use the disk,
but the disk was busy swapping, so they never completed, but kept
trying, slowing down the swap rate till the whole server slowed to snail
pace.



--
Ineptocracy

(in-ep-toc-ra-cy) €“ a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.

  #7   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 9,369
Default gridwatch hiccup.

On 19/03/2014 00:12, The Natural Philosopher wrote:
On 18/03/14 23:33, Brian Gaff wrote:
Was this deliberate, or just a monumental cock up?
Brian

I am beginning to think it was simply a coincidence.

I ran out of memory possibly due simply to too many things going on, and
what suffered was a few download queries. They needed to use the disk,
but the disk was busy swapping, so they never completed, but kept
trying, slowing down the swap rate till the whole server slowed to snail
pace.




Your box is lacking load control software, maybe you should add some?
With a web server its probably better to throw away some requests when
you get a bit slow responding rather than to just hope the problem will
go away.
It has quite a good retry mechanism, the user will hit refresh a few
seconds after the failed request.

(The exchanges we designed would load shed if it got that bad.
You wouldn't be able to make calls at certain times if it didn't.
That was one of the big problems with Unix when the stuff was designed
and I haven't seen much in the way of fixes to it since (not that I have
looked)).

  #8   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 39,563
Default gridwatch hiccup.

On 19/03/14 10:15, dennis@home wrote:
On 19/03/2014 00:12, The Natural Philosopher wrote:
On 18/03/14 23:33, Brian Gaff wrote:
Was this deliberate, or just a monumental cock up?
Brian

I am beginning to think it was simply a coincidence.

I ran out of memory possibly due simply to too many things going on, and
what suffered was a few download queries. They needed to use the disk,
but the disk was busy swapping, so they never completed, but kept
trying, slowing down the swap rate till the whole server slowed to snail
pace.




Your box is lacking load control software, maybe you should add some?


I am pondering the options:
That is certainly one of them


With a web server its probably better to throw away some requests when
you get a bit slow responding rather than to just hope the problem will
go away.


Yes, Totally agree.

It has quite a good retry mechanism, the user will hit refresh a few
seconds after the failed request.

(The exchanges we designed would load shed if it got that bad.
You wouldn't be able to make calls at certain times if it didn't.
That was one of the big problems with Unix when the stuff was designed
and I haven't seen much in the way of fixes to it since (not that I have
looked)).


Its not hard to put a 'sorry, servers just too loaded to do this' response.

Question is to understand what 'being loaded' means.


--
Ineptocracy

(in-ep-toc-ra-cy) €“ a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.

  #9   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 9,369
Default gridwatch hiccup.

On 19/03/2014 11:21, The Natural Philosopher wrote:
On 19/03/14 10:15, dennis@home wrote:
On 19/03/2014 00:12, The Natural Philosopher wrote:
On 18/03/14 23:33, Brian Gaff wrote:
Was this deliberate, or just a monumental cock up?
Brian

I am beginning to think it was simply a coincidence.

I ran out of memory possibly due simply to too many things going on, and
what suffered was a few download queries. They needed to use the disk,
but the disk was busy swapping, so they never completed, but kept
trying, slowing down the swap rate till the whole server slowed to snail
pace.




Your box is lacking load control software, maybe you should add some?


I am pondering the options:
That is certainly one of them


With a web server its probably better to throw away some requests when
you get a bit slow responding rather than to just hope the problem will
go away.


Yes, Totally agree.

It has quite a good retry mechanism, the user will hit refresh a few
seconds after the failed request.

(The exchanges we designed would load shed if it got that bad.
You wouldn't be able to make calls at certain times if it didn't.
That was one of the big problems with Unix when the stuff was designed
and I haven't seen much in the way of fixes to it since (not that I have
looked)).


Its not hard to put a 'sorry, servers just too loaded to do this' response.

Question is to understand what 'being loaded' means.



Run a low priority request and see how long it takes to respond, throw
away requests at some value of too long.
  #10   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 218
Default gridwatch hiccup.

In article ,
The Natural Philosopher wrote:

Its not hard to put a 'sorry, servers just too loaded to do this' response.

Question is to understand what 'being loaded' means.


Apache running listening on localhost only. Nginx picking up the traffic
and then proxying to Apache?

When apache response time gets slow, send an Nginx error page saying try
later?

Darren



  #11   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 14,085
Default gridwatch hiccup.

On Wed, 19 Mar 2014 11:21:28 +0000, The Natural Philosopher wrote:

Its not hard to put a 'sorry, servers just too loaded to do this'
response.

Question is to understand what 'being loaded' means.


Another way limit the number of allowed connections to some value
that the server can support. Doesn't have to be a number were the
server will struggle anything lower that doesn't get hit (often/at
all) would do. I think this is a native feature of apache.

--
Cheers
Dave.



  #12   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 39,563
Default gridwatch hiccup.

On 20/03/14 08:28, Dave Liquorice wrote:
On Wed, 19 Mar 2014 11:21:28 +0000, The Natural Philosopher wrote:

Its not hard to put a 'sorry, servers just too loaded to do this'
response.

Question is to understand what 'being loaded' means.


Another way limit the number of allowed connections to some value
that the server can support. Doesn't have to be a number were the
server will struggle anything lower that doesn't get hit (often/at
all) would do. I think this is a native feature of apache.

MM. More a case of concurrent bulk data downloads.

TBH upping the RAM will cost, but not that much.



--
Ineptocracy

(in-ep-toc-ra-cy) €“ a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridwatch Nuclear OP?.. tony sayer UK diy 2 August 12th 13 02:28 PM
Ping TNP:re Gridwatch Mike Tomlinson UK diy 7 August 2nd 13 07:24 PM
More gridwatch Brian Gaff UK diy 0 November 28th 12 10:30 PM
New gridwatch Andy Burns[_7_] UK diy 2 November 22nd 11 02:31 PM
New gridwatch The Natural Philosopher[_2_] UK diy 0 November 22nd 11 02:30 PM


All times are GMT +1. The time now is 10:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 DIYbanter.
The comments are property of their posters.
 

About Us

"It's about DIY & home improvement"