Victory Road

Victory Road (http://www.victoryroad.net/index.php)
-   Announcements (http://www.victoryroad.net/forumdisplay.php?f=15)
-   -   A massive flaw fixed...and a hopefully faster server (http://www.victoryroad.net/showthread.php?t=6370)

Cat333Pokémon November 21, 2010 03:20:17 PM

A massive flaw fixed...and a hopefully faster server
 
As you may or may not have noticed, VR has been having all sorts of errors over the past month. The chat has been kicking people off repeatedly due to dropped connections. Pages wouldn't load without reason.

Well, I finally found the cause. If you ever peeked at the VictoryBattles board, you may have noticed that there have always been at least ten people looking at it at any given time. Well, here's what happened:

When we closed down the Floatzel Pokédoptables, I created a very simple redirect script that sent all traffic over to the Floatzel Migration thread. It literally sent every single request to a file in that folder to the thread...including all of the embedded adoptables. People typically had 5 adoptables in their signatures on other forums. On popular threads, said people could get in a little posting exchange and there could easily be 20-30 adoptables in a single page. If it's a commonly-viewed page on that forum, notably the first page of a news thread, it could get hit hundreds of times. Even though it only loads the HTML document and none of the images, that is a lot of views. Every time it loads, the server has to put together the PHP scripting for the migration thread. (Well, caching might make it do that less.)

The thread is 256 KB (262,733 bytes) right now, and it has averaged that for some time...
A given page loads 20-30 adoptables at a time...
That page gets hundreds of hits...
All for a little bad-image X in someone's signature.

As of now, the thread has 1,121,538 views, which you can see here. Every one of those views was 256 KB or less. Accounting for people who didn't let all of them load, that's 250 GB of bandwidth and well over a million times the server had to put the page together and quite a few million MySQL queries.

Thank you, FreezeWarp, for fixing up the .htaccess script to properly redirect all the image calls. Instead of that massive thead code, this small (840 bytes) image I whipped up is called:
http://floatzel.net/adopt/siggy.php?id=1

Yoshi648 November 21, 2010 03:22:40 PM

Oh wow. Well hopefully this will fix our problems.

Fubab_107 November 21, 2010 03:29:28 PM

Lets hope our problems go away. It's a relief to hear this after the massive crash today. O_o'

A'bom November 21, 2010 03:31:27 PM

Hopefully we'll all stop being kicked from the chat for no reason from now on. This should speed things up a bit, hopefully.

Aquablast November 21, 2010 04:40:31 PM

Cross your hand and hope for the best.

JC November 21, 2010 05:22:59 PM

I hope this works I hate it when I have a refresh issue and being kicked off the chat.

SK November 21, 2010 05:55:18 PM

Ah, sexy image you came up with there.

Thanks for fixing the problem. ;)

Shade November 22, 2010 05:44:05 AM

No wonder VR tends to load very slowly. Hope this fixes the speed issue.

The Spirit of Time November 22, 2010 07:28:35 AM

Personally, I never faced an issue. It was always fast to me.
Of course, what you did was the good for all, so good job!

Shadow November 22, 2010 08:18:28 AM

Yeah, same here. I didn't exactly stumble upon the errors/crashes which are mentioned over here, but still, what you did will hopefully solve all these problems.

Quadcentruo November 22, 2010 11:00:26 AM

You know, I have noticed this forum has gotten faster. So far, no issues - as in, I haven't had to hit refresh 5 times every time a page doesn't load or I haven't had to wait 5 minutes for one page to load.

Good job Cat and Freeze.

Cat333Pokémon November 22, 2010 02:32:48 PM

Quote:

Originally Posted by The Spirit of Time (Post 119453)
Personally, I never faced an issue. It was always fast to me.
Of course, what you did was the good for all, so good job!

Quote:

Originally Posted by Shadow (Post 119471)
Yeah, same here. I didn't exactly stumble upon the errors/crashes which are mentioned over here, but still, what you did will hopefully solve all these problems.

Don't forget, you both are typically on in the dead of night for the United States, which is when it usually when the site isn't being swamped with hits.

Flare Soru November 23, 2010 04:58:56 PM

I was wondering why that forum had so many people looking at it. :P
Hopefully this helps.

Ningamer November 23, 2010 10:42:29 PM

Maybe Lite can stop quadruple posting in the chat now... :P

I never noticed many problems, but I guess I'm not on when most others are. Still, it's great to hear that you've found a solution!

Aquablast November 24, 2010 03:06:52 AM

Same here Nin and only sometimes that the server is down.


All times are GMT -8.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Victory Road ©2006 - 2024, Scott Cat333Pokémon Cheney