Come at Midnight

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CSN NewsBot

    #1

    Come at Midnight

    Update: article.php pages are now being partially cached as well, be on the look out for errors on those pages please!



    Yes, I'm well aware that the site is up as often as my dead grandmother completes a marathon. Because GameSpy probably has better things to do than to tend to the likes of me, I am once again trying to optimize the site.[break="what's the plan and what should I look for?"]Let me go totally nerd on your ass. When another site was given access to the database daemon on this server, the database has been overloaded. I noticed the slowdowns and proceeded to more than half the amount of database queries sent by our code. The updates really didn't do much; the problem is with securing a connection to the DB daemon, not the interaction with it. GameSpy has promised CS-Nation a separate server, but this does not benefit them at all so I am not going to rush them any further.



    So--since optimizations haven't helped at all--it has become very apparent that caching is the only way to solve this problem. Caching saves dynamic content to a static file on the web server, thus eliminating the need to even connect to the database server (thereby making less connections so the places that actually need connections work more often). This probably won't help the situation either as so many of our hits come to the main page and there are too many variables to cache and continue to use our previously useful codebase.



    Right now the following items are being cached: the right hand sidebar on every page except the main page, every /view.php/ page, POTD pages, SOTD pages, and image.php?id= pages. If you notice something wrong with any of these items, e-mail me with a full description and possibly a screenshot.



    Please understand that caching is not easy to just program in and will probably take more than one night to absolutely perfect. I realize your frustration with visiting the site and I'm sure it is helping our strong competition, but this is something that I cannot really control. I have been trying to address this for a long time and everything I try seems to have no effect.



    I should be playing Splinter Cell, Tekken 4, or even Vice City. Instead I'm coding for a dumb website. And you're frustrated?!
  • ])3@6][_3-Saint

    #2
    CODE AWAY!

    Comment

    • rizzuh

      #3
      drop the database code and make a new site

      No!



      make gamespy give you a new server

      It's not my call and I'm not going to rush the server guy as he already pointed out, quite sternly, that CSN isn't the only site on his watch



      i found a bug and want to post it in the comments so i will

      Okay, but please e-mail me too like the news post says.



      EUROPE BLAH BLAH BLAH KYOTO BLAH BLAH IRAQ BLAH

      Keep it in the Pre-Turkey post, freakshow!

      Comment

      • kerosine99

        #4
        we're all up pretty late...



        good luck with all that coding mumbo jumbo.



        should i buy vice city?

        Comment

        • Electronic Punk

          #5
          coding is fun.

          Comment

          • StealthMonkey

            #6
            Go rizzuh! You can do it!

            /me puts faith in you

            Comment

            • Gatorade

              #7
              kabloom?

              Comment

              • DarkViper311

                #8
                rizzuh wrote..

                EUROPE BLAH BLAH BLAH KYOTO BLAH BLAH IRAQ BLAH

                Keep it in the Pre-Turkey post, freakshow!
                Lmao riz

                and either way,the longer that mailbag stays up (Social Lives) i can bask in the glory of my submission being posted O_o

                Comment

                • THS

                  #9
                  GAMESPY IS COMMUNISM

                  Comment

                  • Serious Sam

                    #10
                    gamespy hosts csn. never knew that.



                    what about one of your sponsors hosting the database server?

                    Comment

                    • Ghengis

                      #11
                      Well for some chubby punk kid, I think Rxze does a fantastic joband could prolly wlk into any web job he wants, on the back of this site, and us muppets making it popular. Luckily the downtime as mainly last night and when I was asleep. So i see one f'd up page one time, and ten I wake up and can rant away. Good Job Young Mr Jensen. Go and enjoy splinter cell, I think it is slammin.

                      Comment

                      • Mr Bond

                        #12
                        Nice work on fixing the ``blank page'' bug, rizzuh. The worst (biggest pain at midnight) bugs are those which you can't actually reproduce on your own system, but I guess you found a way.

                        Comment

                        • -:Nighthawk:-

                          #13
                          When another site was given access to the database daemon on this server ...
                          Well, hopefully our friends over at Counter-Server won't get all upset this time. :)



                          I've noticed that the site loads a lot better when everyone who is mildly sane in the USA is fast asleep. Like now. However, sometimes it's fun to load the site at other times, so I can view beautiful descriptions such as:



                          Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /disk2/websites/csnation.counter-strike.net/htm

                          l/common.php
                          on line 58



                          splattered all across the top of the page, down the sidebar, and in the news area. It has such a soothing feel to it. :) You know, I was thinking it'd be hillarious to post just that line, or better yet replace my profile with it, just to freak rizzuh out. And then I decided that I didn't want to burn in hell afterall. :)



                          While working on that coding, if your experience programming is anything like mine, I'd change the line
                          try reloading the page in a minute or two.
                          to "a week or two."



                          Ah well, I suppose you get what you pay for, so which of us can complain about gamespy's free hosting? I certainly hope they make good on that new server promise oh so long ago (or at least it seems like it's been quite a while).



                          Until then, I can only hope that people could be convinced that life will go on without them pressing F5 every two minutes, which just might help reduce the database load.

                          Comment

                          • Brutal Sponge

                            #14
                            o well, it was funny while it lasted, gj on fixing it riz!

                            Comment

                            • [AnML]-Esquanku

                              #15
                              quote from rizzuh

                              Instead I'm coding for a dumb website



                              your calling your own site dumb ?

                              Comment

                              Working...