Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Miscellaneous > Help/Suggestions
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 03-20-2009, 12:27 AM   #61
teamchachi
Scoring Winger
 
teamchachi's Avatar
 
Join Date: May 2004
Location: Calgary
Exp:
Default

Quote:
Originally Posted by photon View Post
A page served is one page, regardless of how many posts are in the page. The software will request the entire page at once, render it, and serve it.

So more posts per page should actually decrease the hits to the server, although at the same time it will increase the processing and bandwidth used per page, so it might be a wash in the end.
Exactly. Even if we could "optimize" this way, we'd only be increasing the efficiency but 10% tops.

vBulletin (and all the other forums) are CPU hogs by their very nature. They contain a lot of dynamic data that exists in many tables that contain hundreds of thousands (and millions!) of records. Every single page view requires the execution of a ton of PHP code, lots of looping, and 30+ database queries.

We've done everything that we can to reduce the load on the server by offloading all of the static content to a content distribution network. The only thing that the server does now is generate the actual HTML for the page. All the CSS, JS, and images come from the CDN.

We've done everything possible to optimize Apache2, PHP, MySQL, and Linux to squeeze every last drop of performance out of the hardware.

As long as we're just serving a couple of pages per second we're fine. Thats what the site does at 10 am on a typical morning. The CPU just bounces along at 10-20%. Increase that number to 5-7 pages per second and now we're at 50%. Now increase it to 10+ pages/second and we're maxed out.
__________________

teamchachi is offline   Reply With Quote
Old 03-23-2009, 02:16 PM   #62
Bobblehead
Franchise Player
 
Bobblehead's Avatar
 
Join Date: Jul 2005
Location: in your blind spot.
Exp:
Default

Is there still some "tweaking" going on?

I just wonder because on my work computer I run firefox with the NoScript extension. I have for a long time. But I noticed some time last week that suddenly some of the functionality of the board stopped working unless I permitted simplecdn.net to execute. Things like the format buttons, or some of the user-profile tabs. And I have never had to do that before, so I was just curious if that was a tweak one of you did, or if NoScript changed something (NoScript updates pretty regularly).

So I guess I was just curious.
__________________
"The problem with any ideology is that it gives the answer before you look at the evidence."
—Bill Clinton
"The greatest obstacle to discovery is not ignorance--it is the illusion of knowledge."
—Daniel J. Boorstin, historian, former Librarian of Congress
"But the Senator, while insisting he was not intoxicated, could not explain his nudity"
—WKRP in Cincinatti
Bobblehead is offline   Reply With Quote
Old 03-24-2009, 07:05 AM   #63
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Yeah, I moved a bunch of the scripts over to simplecdn to help alleviate the load on the server a few days ago.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 04-17-2009, 08:18 AM   #64
teamchachi
Scoring Winger
 
teamchachi's Avatar
 
Join Date: May 2004
Location: Calgary
Exp:
Default

I imagine many of you noticed that the site maxed out last night after the overtime goal by Havlat.

To put things in perspective:

We peak out at about 8-10 hits/second during a busy lunch hour or just after a regular season game. That puts the server load average between 1 and 2.

Last night we maxed out at 44.69 hits/second which put the server load up over 20. In our case, anything over 2 means we're overloaded. So a 20 means that we had 18 processes waiting in a queue waiting to use a CPU.
__________________

teamchachi is offline   Reply With Quote
Old 04-17-2009, 08:29 AM   #65
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Nice.

Thanks for watching that teamchachi too I'm currently in Mexico so can't keep an eye on it.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 04-17-2009, 09:39 AM   #66
teamchachi
Scoring Winger
 
teamchachi's Avatar
 
Join Date: May 2004
Location: Calgary
Exp:
Default

I experimented last night with scaling back the number of Apache processes and it appears to have been successful. I put it down to 30 (from 50) and that keeps the server load around 3.5 even when all 30 are getting hammered. Loading a page takes 2-3x longer than normal, but at least the site is still usable. That's better than having the server load at 20 and *nobody* getting in due to the "server is too busy" message.
__________________

teamchachi is offline   Reply With Quote
The Following 3 Users Say Thank You to teamchachi For This Useful Post:
Old 04-17-2009, 11:49 AM   #67
teamchachi
Scoring Winger
 
teamchachi's Avatar
 
Join Date: May 2004
Location: Calgary
Exp:
Default

Quote:
Originally Posted by teamchachi View Post
I experimented last night with scaling back the number of Apache processes and it appears to have been successful. I put it down to 30 (from 50) and that keeps the server load around 3.5 even when all 30 are getting hammered. Loading a page takes 2-3x longer than normal, but at least the site is still usable. That's better than having the server load at 20 and *nobody* getting in due to the "server is too busy" message.
I'm hoping that this holds up under an onslaught. I guess we'll see on Saturday night...
__________________

teamchachi is offline   Reply With Quote
Old 04-18-2009, 10:53 PM   #68
teamchachi
Scoring Winger
 
teamchachi's Avatar
 
Join Date: May 2004
Location: Calgary
Exp:
Default

Well that worked out nicely. 30 Apache threads and the server peaked out at 3.7 with no noticeable slowness. Now if we could just score more than 2 goals...
__________________

teamchachi is offline   Reply With Quote
The Following 2 Users Say Thank You to teamchachi For This Useful Post:
Old 04-18-2009, 11:17 PM   #69
JiriHrdina
I believe in the Pony Power
 
JiriHrdina's Avatar
 
Join Date: Jul 2003
Exp:
Default

Yeah the site seemed fine to me tonight. Nice job Chachi.
JiriHrdina is offline   Reply With Quote
Old 04-19-2009, 12:32 AM   #70
Hemi-Cuda
wins 10 internets
 
Hemi-Cuda's Avatar
 
Join Date: Feb 2006
Location: slightly to the left
Exp:
Default

good work, i feel a lot better tonight after being able to vent on CP than having to store it up in a ball and stew about it on Friday
Hemi-Cuda is offline   Reply With Quote
Old 04-19-2009, 01:29 PM   #71
teamchachi
Scoring Winger
 
teamchachi's Avatar
 
Join Date: May 2004
Location: Calgary
Exp:
Default

To be fair, Photon has done most of the grunt work. Offloading all the static content to a content distribution network has been the biggest factor in our ability to scale.

We're still limited by the size of our internet connection, but now we're just using it for HTML instead of HTML, CSS, Javascript, and tons of images.

Tweaking the # of server processes really just limits how many people can actively connect to the server at any given time. It is a form of throttling which ensures that there is a enough CPU to go around...
__________________

teamchachi is offline   Reply With Quote
Old 09-18-2009, 08:23 AM   #72
teamchachi
Scoring Winger
 
teamchachi's Avatar
 
Join Date: May 2004
Location: Calgary
Exp:
Default

Well, the new hosting provider is doing its job. We got up to 4 Mbit/s outbound last night after Fleury's goal and we frequently hit 2 Mbit/s throughout the night.

Unfortunately, removing the bandwidth bottleneck means that we have a new bottleneck: CPU. The load hit 6.0 last night...
__________________

teamchachi is offline   Reply With Quote
Old 09-18-2009, 10:58 AM   #73
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Yeah, almost 1000 people on at the end of the game, where 5-600 was typical last year.

I guess we'll see if that continues.

I had moved all the images off of remote hosting as part of trying to figure out the forum problems for some people, so I will have to move them all back to help alleviate the load again.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
The Following User Says Thank You to photon For This Useful Post:
Old 09-18-2009, 11:03 AM   #74
Dion
Not a casual user
 
Dion's Avatar
 
Join Date: Mar 2006
Location: A simple man leading a complicated life....
Exp:
Default

__________________
Dion is offline   Reply With Quote
Old 09-18-2009, 12:00 PM   #75
Bingo
Owner
 
Bingo's Avatar
 
Join Date: Dec 2001
Location: Calgary
Exp:
Default

was quick for me ...

great job guys.
Bingo is offline   Reply With Quote
Old 09-18-2009, 05:14 PM   #76
Azure
Had an idea!
 
Azure's Avatar
 
Join Date: Oct 2005
Exp:
Default

I had some problems, but it apparently had to do with OpenDNS.

Photon do you have any idea how much CP is increasing in amount of hits from month to month?
Azure is offline   Reply With Quote
Old 09-18-2009, 07:18 PM   #77
flip
Lifetime Suspension
 
flip's Avatar
 
Join Date: Mar 2007
Location: Sec 216
Exp:
Default

Quote:
Originally Posted by Azure View Post
I had some problems, but it apparently had to do with OpenDNS.

Photon do you have any idea how much CP is increasing in amount of hits from month to month?
I haven't been following this discussion at all but would a site like this help?
flip is offline   Reply With Quote
Old 09-18-2009, 07:42 PM   #78
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Quote:
Originally Posted by Azure View Post
I had some problems, but it apparently had to do with OpenDNS.

Photon do you have any idea how much CP is increasing in amount of hits from month to month?
We do keep stats on hits and visits and pageviews. It's tough to gauge because the amounts vary wildly from one month to the next depending on what's going on, so you almost have to a year over year comparison for individual months to get an idea.

But yeah if I look back over the 3 years since I've been collecting data, it's a pretty substantial increase.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 09-21-2009, 10:27 PM   #79
LockedOut
Franchise Player
 
LockedOut's Avatar
 
Join Date: Dec 2004
Exp:
Default

Can we get rid of guests to speed up the site if it helps. At least during the game. It's pretty slow and this during just an exhibition game. As I type this, in OT guests outnumber us by about 2 to 1.
LockedOut is offline   Reply With Quote
Old 09-21-2009, 10:33 PM   #80
Azure
Had an idea!
 
Azure's Avatar
 
Join Date: Oct 2005
Exp:
Default

yeah, during the games the server is extremely slow. hard to read anything.

and its just preseason.
Azure is offline   Reply With Quote
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

Forum Jump


All times are GMT -6. The time now is 03:59 PM.

Calgary Flames
2024-25




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021 | See Our Privacy Policy