What happened to DSLRUsers this morning?

Have your say on issues related to using a DSLR camera.

Moderator: Moderators

Forum rules
Please ensure that you have a meaningful location included in your profile. Please refer to the FAQ for details of what "meaningful" is.

What happened to DSLRUsers this morning?

Postby DaveB on Fri Dec 19, 2008 11:08 am

This (bluehost) account (i.e. the whole DSLRUsers site) suspended, This account disabled, This board not available...
I thought these sorts of things weren't meant to happen with the new hosting provider? :roll:

Whatever it was, congrats on getting things back up and running!
User avatar
DaveB
Senior Member
 
Posts: 1850
Joined: Wed Aug 31, 2005 10:57 pm
Location: Box Hill, Vic

Re: What happened to DSLRUsers this morning?

Postby Mr Darcy on Fri Dec 19, 2008 11:26 am

DaveB wrote:Whatever it was, congrats on getting things back up and running!


:agree:
Thanks muchly Gary
Greg
It's easy to be good... when there is nothing else to do
User avatar
Mr Darcy
Senior Member
 
Posts: 3414
Joined: Thu Oct 26, 2006 11:35 pm
Location: The somewhat singed and blackened Blue Mountains

Re: What happened to DSLRUsers this morning?

Postby ATJ on Fri Dec 19, 2008 11:28 am

Looked like it was broked.
User avatar
ATJ
Senior Member
 
Posts: 3982
Joined: Fri Feb 18, 2005 10:44 am
Location: Blue Mountains, NSW

Re: What happened to DSLRUsers this morning?

Postby sirhc55 on Fri Dec 19, 2008 11:35 am

Might have been an interdiction attack from Dreamhost :roll:
Chris
--------------------------------
I started my life with nothing and I’ve still got most of it left
User avatar
sirhc55
Key Member
 
Posts: 12930
Joined: Fri Sep 17, 2004 6:57 pm
Location: Port Macquarie - Olympus EM-10

Re: What happened to DSLRUsers this morning?

Postby gstark on Fri Dec 19, 2008 11:42 am

I'm not entirely sure myself. :roll:

When I got up and went to check my email, my email client started asking me for my password. (Everything of mine is hosted at the same location ... )

When I went to my home page ... account suspended ...

Fortunately, Bluehost have their online chat support .... their story is that one of my databases is killing the server.

So ... I've gone in, optimised the databases ... they have a set of logs that record slow mysql queries, and I'm going to be looking at those, and then try to track the queries back to the source files from which they're made ...

BUT ...

I have noticed that, on Friday mornings Sydney time, I see a general slowdown in the server. There seems to be an overload of the server, our (my) systems get canned for a few minutes - their normal procedures - and then it comes back up through the normal course of events.

Today seems to have been an extreme version of what I've already observed.

My gut feeling suggests to me that there's something else happening on the box, but of course this is not something that I have any real access to.

I'm also thinking that the database is big, and thus I'm starting to think that I may create an archival site, and move everything there, then purge this database - the primary one - so that it only contains, say, the last three months' worth of data.
g.
Gary Stark
Nikon, Canon, Bronica .... stuff
The people who want English to be the official language of the United States are uncomfortable with their leaders being fluent in it - US Pres. Bartlet
User avatar
gstark
Site Admin
 
Posts: 22918
Joined: Thu Aug 05, 2004 11:41 pm
Location: Bondi, NSW

Re: What happened to DSLRUsers this morning?

Postby chrisk on Fri Dec 19, 2008 11:45 am

i'll tell you one thing though. the performance and the reliability of the site now is outstanding. great work gary et al. :cheers:
(although not being able to maximise over my whole screen is annoying.)
EM1 l 7.5 l 12-40 l 14 l 17 l 25 l 45 l 60 l 75 l AW1 l V3
User avatar
chrisk
Senior Member
 
Posts: 3317
Joined: Fri Mar 09, 2007 8:50 pm
Location: Oyster Bay, Sydney

Re: What happened to DSLRUsers this morning?

Postby sirhc55 on Fri Dec 19, 2008 12:13 pm

Rooz wrote:i'll tell you one thing though. the performance and the reliability of the site now is outstanding. great work gary et al. :cheers:
(although not being able to maximise over my whole screen is annoying.)


:agree:
Chris
--------------------------------
I started my life with nothing and I’ve still got most of it left
User avatar
sirhc55
Key Member
 
Posts: 12930
Joined: Fri Sep 17, 2004 6:57 pm
Location: Port Macquarie - Olympus EM-10

Re: What happened to DSLRUsers this morning?

Postby Glen on Fri Dec 19, 2008 1:11 pm

Gary I found the site intolerably slow this morning at 5am, exactly as you described. I couldn't even jump from thread to thread. A few hours later it was fine, then a bit later the site was gone and the bluehost message was up
http://wolfeyes.com.au Tactical Torches - Tactical Flashlights Police torch rechargeable torch military torch police military HID surefire flashlight LED torch tactical torch rechargeable wolf eyes flashlight surefire torch wolf eyes tactical torchpolice torch
Thank You
User avatar
Glen
Moderator
 
Posts: 11819
Joined: Sat Aug 07, 2004 3:14 pm
Location: Sydney - Neutral Bay - Nikon

Re: What happened to DSLRUsers this morning?

Postby gstark on Fri Dec 19, 2008 1:36 pm

Glen wrote:Gary I found the site intolerably slow this morning at 5am, exactly as you described. I couldn't even jump from thread to thread. A few hours later it was fine, then a bit later the site was gone and the bluehost message was up


Glen,

Could you please define "a few hours later" and "a bit later" for me ?

We just had a CPU exceeded error - the first ... with one query ostensibly taking 183 seconds of CPU time. Unfortunately, the slow sql query log doesn't yet tell me what this query is, so I have no way of trying to track this down.

In phpbb3 there's a server load parameter in the admin section, and it describes itself as being able to shut the board down if cpu load exceeds a defined value. It describes the value as a part of a CPU, but when I tried setting this to 0.45 - which I think should be allowed - it disabled the board as if it was being overloaded.

Does anyone have any thoughts on that?
g.
Gary Stark
Nikon, Canon, Bronica .... stuff
The people who want English to be the official language of the United States are uncomfortable with their leaders being fluent in it - US Pres. Bartlet
User avatar
gstark
Site Admin
 
Posts: 22918
Joined: Thu Aug 05, 2004 11:41 pm
Location: Bondi, NSW

Re: What happened to DSLRUsers this morning?

Postby Matt. K on Fri Dec 19, 2008 1:41 pm

Glen
What the hell are you doin up at 5am? Delivering newspapers? Get back to bed and get some quality sleep time!
Regards

Matt. K
User avatar
Matt. K
Former Outstanding Member Of The Year and KM
 
Posts: 9981
Joined: Mon Sep 06, 2004 7:12 pm
Location: North Nowra

Re: What happened to DSLRUsers this morning?

Postby Glen on Fri Dec 19, 2008 2:45 pm

Matt - you are right.

Gary, because my lack of sleep I am not sure when it was ok, maybe 6.30am or 7.30am? That is why I didn't quantify. It was stuck at 5am though, stuck dead.
http://wolfeyes.com.au Tactical Torches - Tactical Flashlights Police torch rechargeable torch military torch police military HID surefire flashlight LED torch tactical torch rechargeable wolf eyes flashlight surefire torch wolf eyes tactical torchpolice torch
Thank You
User avatar
Glen
Moderator
 
Posts: 11819
Joined: Sat Aug 07, 2004 3:14 pm
Location: Sydney - Neutral Bay - Nikon

Re: What happened to DSLRUsers this morning?

Postby gstark on Fri Dec 19, 2008 3:04 pm

Thanx Glen.

That's consistent with when it all fall down and go boom. :)

I just tried the load settings value ... set it to 1 which is the maximum value according to the documents, and is the equivalent of an average of 100% CPU load over an average of one minute. She no workie! :(
g.
Gary Stark
Nikon, Canon, Bronica .... stuff
The people who want English to be the official language of the United States are uncomfortable with their leaders being fluent in it - US Pres. Bartlet
User avatar
gstark
Site Admin
 
Posts: 22918
Joined: Thu Aug 05, 2004 11:41 pm
Location: Bondi, NSW

Re: What happened to DSLRUsers this morning?

Postby gstark on Fri Dec 19, 2008 3:11 pm

I've just put in a limitation on the number of sessions that can be in play over a one minute period. Let's see if that helps deal with the issue, or just makes it hard for you to access the site.
g.
Gary Stark
Nikon, Canon, Bronica .... stuff
The people who want English to be the official language of the United States are uncomfortable with their leaders being fluent in it - US Pres. Bartlet
User avatar
gstark
Site Admin
 
Posts: 22918
Joined: Thu Aug 05, 2004 11:41 pm
Location: Bondi, NSW

Re: What happened to DSLRUsers this morning?

Postby ATJ on Fri Dec 19, 2008 3:39 pm

I just got told the site was unavailable. Well... maybe 20 minutes ago.
User avatar
ATJ
Senior Member
 
Posts: 3982
Joined: Fri Feb 18, 2005 10:44 am
Location: Blue Mountains, NSW

Re: What happened to DSLRUsers this morning?

Postby Ant on Fri Dec 19, 2008 3:50 pm

When I have gotten over my extended lunch at Lynches I will re-read this thread and see if I can provide some help... now to go to sleep under my desk for a little while :evil:

Ant.
D90 | D50 | Tamron 17-50 2.8| AF-S 18-55 DX (and VR) | Sigma 70 - 300 APO DG | 50mm 1.8 | SB-600
User avatar
Ant
Member
 
Posts: 304
Joined: Sat Oct 15, 2005 7:29 pm
Location: Lyndhurst, Melbourne

Re: What happened to DSLRUsers this morning?

Postby moz on Fri Dec 19, 2008 4:49 pm

gstark wrote:In phpbb3 there's a server load parameter in the admin section, and it describes itself as being able to shut the board down if cpu load exceeds a defined value. It describes the value as a part of a CPU, but when I tried setting this to 0.45 - which I think should be allowed - it disabled the board as if it was being overloaded.


You sure it's not a percentage rather than a raw number? Just chequing...
http://www.moz.net.nz
have bicycle, will go to Critical Mass
User avatar
moz
Senior Member
 
Posts: 937
Joined: Fri Mar 17, 2006 6:50 pm
Location: Coburg, Melbun.

Re: What happened to DSLRUsers this morning?

Postby gstark on Fri Dec 19, 2008 6:24 pm

moz wrote:
gstark wrote:In phpbb3 there's a server load parameter in the admin section, and it describes itself as being able to shut the board down if cpu load exceeds a defined value. It describes the value as a part of a CPU, but when I tried setting this to 0.45 - which I think should be allowed - it disabled the board as if it was being overloaded.


You sure it's not a percentage rather than a raw number? Just chequing...


That's a valid question. Here's the explanatory text from the setting in the admin panel ....

Limit system load:
If the system’s 1-minute load average exceeds this value the board will automatically go offline. A value of 1.0 equals ~100% utilisation of one processor. This only functions on UNIX based servers and where this information is accessible. The value here resets itself to 0 if phpBB was unable to get the load limit.


The documentation refers to a valid value as being between 0 and 1, all of which points to this not being a percentage.

Taking this to the next level, and looking at the admin tools on BH, I see a table, with lots of rows and data and green dots (meaning "good") and this is included amongst that data ...

Server Load 1.72 (4 cpus)


Which, if that's the sort of number that's being reported by BH to phpbb3, then it's not all that surprising that this doesn;t work all that well.

Looking more deeply, I've located a php script the guts of which are ...

Code: Select all
     
     $load = file_get_contents("/proc/loadavg");
     $load = explode(' ', $load);
     return $load[0];


My thoughts are to run a cron job with this code embedded, and set the board disable value based upon the value returned by this code snippet. I need to find what a good trip-value would be (10, 20, 50?), and I need to find what database values to change (it seems to be more than just the most obvious one in the config table, because my tests failed to disable the board. :) ) and then just run a cron job with, say, a frequency of once per minute.

In working through this I'm also trying to decide whether to update the database every time (not a lot of load, but mostly unnecessary transactions in the database - which might mean more load) or to just write and read a semaphore file, and only update the database when a state change is required. The former is easier, but I think the latter would be a better solution.
g.
Gary Stark
Nikon, Canon, Bronica .... stuff
The people who want English to be the official language of the United States are uncomfortable with their leaders being fluent in it - US Pres. Bartlet
User avatar
gstark
Site Admin
 
Posts: 22918
Joined: Thu Aug 05, 2004 11:41 pm
Location: Bondi, NSW

Re: What happened to DSLRUsers this morning?

Postby gstark on Fri Dec 19, 2008 9:45 pm

gstark wrote:In working through this I'm also trying to decide whether to update the database every time (not a lot of load, but mostly unnecessary transactions in the database - which might mean more load) or to just write and read a semaphore file, and only update the database when a state change is required. The former is easier, but I think the latter would be a better solution.


Ok, done. Sorry for those of you who may have been inconvenienced by my testing this evening.

I had issues with updating the database: I could change the correct records, but it was not registering within the application. I suspect that it's because of some caching of the variables being used, and my changing of the database through an external application isn't directly able to affect those values ...

So ...

There's a security feature whereby phpbb disables itself in certain other conditions, such as if it detects the presence of an installation directory.

Thus, I now have a perl script that imposes no database overhead, but is able to monitor the server's load at any given time, and in the event that the load exceeds a nominated point, it will disable the board temporarily ... until the load situation subsides. The cron job runs every two minutes.

As an added bonus, the crontab always sends me an email with the output from the task. I've set up a special reciever for this, and I should be able to, if I so desire, be able to keep some stats of what the server's load has been over time.
g.
Gary Stark
Nikon, Canon, Bronica .... stuff
The people who want English to be the official language of the United States are uncomfortable with their leaders being fluent in it - US Pres. Bartlet
User avatar
gstark
Site Admin
 
Posts: 22918
Joined: Thu Aug 05, 2004 11:41 pm
Location: Bondi, NSW

Re: What happened to DSLRUsers this morning?

Postby Nnnnsic on Fri Dec 19, 2008 10:13 pm

If you do make an archival site, you're going to have to stop telling people to search when they ask a question. :P
Producer & Editor @ GadgetGuy.com.au
Contributor for fine magazines such as PC Authority and Popular Science.
User avatar
Nnnnsic
I'm a jazz singer... so I know what I'm doing
 
Posts: 7770
Joined: Sun Aug 08, 2004 12:29 am
Location: Cubicle No. 42... somewhere in Bondi, NSW


Return to General Discussion