Friday, September 11, 2009

New status widget and update on google

New widget

So for fun I have setup a little widget on the blog to show the status of the RationalWiki servers.

If the server is down it just says server down. If the server is up and working it will display the number of hours and minuets that the server has been up "straight." That means no reboot or power down. I am also displaying the 15 minute running average for the CPU load so people can see how busy the server has been recently.

Google update

So based on my searching we are back on top for Andrew Schlafly and Poe's Law which were two of our bigger hitters for search engine referred traffic. Not everything is reindexed yet but it looks like we should recover all right from our downtime.

14 comments:

  1. I fixed a typo in the widget: Medium had font color=yello
    I think it's very hard to read though.

    ReplyDelete
  2. I agree....I don't really care about the colors if you have better ideas.

    ReplyDelete
  3. Yeah, it was just something fun to do. I originally just outputed the CPU load value directly but it occurred to me that it is a pretty meaningless number to most people.

    ReplyDelete
  4. I agree, though I preferred the load number obviously. Put it into a tooltip?

    ReplyDelete
  5. Or we could just do something like:

    # (Low)

    or

    Low (#)

    ReplyDelete
  6. As for the colors: http://rationalwiki.com/wiki/User:Nx/sandbox

    ReplyDelete
  7. Works for me.....so much for my simple inline perl.......

    ReplyDelete
  8. I've added another two regexps to trim the whitespace and the newline

    ReplyDelete
  9. Can you think of a more elegant way to check the server status? Right now I just try and load a "hidden" image off the server and call a javascript function if there is an error that replaces the html with a server down message.

    ReplyDelete
  10. Why not check if up.html is available?

    ReplyDelete
  11. Ah, I see you use iframe. You could get up.html with xmlhttprequest, and if that fails assume it's offline.

    ReplyDelete
  12. Yeah I thought about it.......I don't know....again it was just something I did mostly for fun so went with an approach I knew I knew how to do.

    ReplyDelete
  13. I made an autoupdating javascript thing at RW, posted it on your talkpage.

    ReplyDelete