Victory Road  

Go Back   Victory Road > Information Kiosk > Announcements

Notices

 
 
Search this Thread
  #1  
Old November 21, 2010, 03:20:17 PM
Cat333Pokémon's Avatar
Cat333Pokémon Cat333Pokémon is offline
Administrator

 
Join Date: Nov 2006
Location: Nevada
Posts: 10,303
Default 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:

Last edited by Cat333Pokémon; November 21, 2010 at 03:26:24 PM.
  #2  
Old November 21, 2010, 03:22:40 PM
Yoshi648's Avatar
Yoshi648 Yoshi648 is offline
Administrator

 
Join Date: Nov 2006
Location: Yoshi's Island
Posts: 3,147
Default

Oh wow. Well hopefully this will fix our problems.
  #3  
Old November 21, 2010, 03:29:28 PM
Fubab_107's Avatar
Fubab_107 Fubab_107 is offline
Shaymin
 
Join Date: Mar 2010
Location: The Unknown Pointless Veil.
Posts: 2,682
Default

Lets hope our problems go away. It's a relief to hear this after the massive crash today. O_o'
  #4  
Old November 21, 2010, 03:31:27 PM
A'bom's Avatar
A'bom A'bom is offline
Volcarona
 
Join Date: Jun 2010
Location: Kansas
Posts: 535
Default

Hopefully we'll all stop being kicked from the chat for no reason from now on. This should speed things up a bit, hopefully.
  #5  
Old November 21, 2010, 04:40:31 PM
Aquablast's Avatar
Aquablast Aquablast is offline
Kyurem
 
Join Date: Jun 2010
Location: Internet
Posts: 2,074
Default

Cross your hand and hope for the best.
  #6  
Old November 21, 2010, 05:22:59 PM
JC's Avatar
JC JC is offline
Keldeo
 
Join Date: Jul 2010
Location: Missouri
Posts: 1,021
Default

I hope this works I hate it when I have a refresh issue and being kicked off the chat.
  #7  
Old November 21, 2010, 05:55:18 PM
SK's Avatar
SK SK is offline
Giratina
 
Join Date: Feb 2010
Location: Munna Land
Posts: 3,238
Default

Ah, sexy image you came up with there.

Thanks for fixing the problem.
  #8  
Old November 22, 2010, 05:44:05 AM
Shade's Avatar
Shade Shade is offline
Regigigas
 
Join Date: Aug 2010
Location: World of Darkness
Posts: 884
Default

No wonder VR tends to load very slowly. Hope this fixes the speed issue.
  #9  
Old November 22, 2010, 07:28:35 AM
The Spirit of Time's Avatar
The Spirit of Time The Spirit of Time is offline
Rayquaza
 
Join Date: Dec 2009
Location: Dubai
Posts: 3,934
Default

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!
  #10  
Old November 22, 2010, 08:18:28 AM
Shadow's Avatar
Shadow Shadow is offline
Giratina
 
Join Date: Nov 2009
Location: Dubai
Posts: 3,209
Default

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.

Last edited by Shadow; November 22, 2010 at 08:18:45 AM.
  #11  
Old November 22, 2010, 11:00:26 AM
Quadcentruo's Avatar
Quadcentruo Quadcentruo is offline
Giratina
 
Join Date: Nov 2009
Location: Unknown area
Posts: 3,684
Default

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.
  #12  
Old November 22, 2010, 02:32:48 PM
Cat333Pokémon's Avatar
Cat333Pokémon Cat333Pokémon is offline
Administrator

 
Join Date: Nov 2006
Location: Nevada
Posts: 10,303
Default

Quote:
Originally Posted by The Spirit of Time View Post
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 View Post
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.
  #13  
Old November 23, 2010, 04:58:56 PM
Flare Soru's Avatar
Flare Soru Flare Soru is offline
Volcarona
 
Join Date: Aug 2009
Location: There. *points at map*
Posts: 533
Default

I was wondering why that forum had so many people looking at it.
Hopefully this helps.
  #14  
Old November 23, 2010, 10:42:29 PM
Ningamer's Avatar
Ningamer Ningamer is offline
Giratina
 
Join Date: Sep 2009
Location: South-East England
Posts: 3,415
Default

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

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!
  #15  
Old November 24, 2010, 03:06:52 AM
Aquablast's Avatar
Aquablast Aquablast is offline
Kyurem
 
Join Date: Jun 2010
Location: Internet
Posts: 2,074
Default

Same here Nin and only sometimes that the server is down.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump


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
Theme by A'bom and Cat333Pokémon