SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Sep 2000
    Location
    Ontario, Canada
    Posts
    320
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    server load question

    I've noticed on a few vBulletin forums over the past while that there is a function which notifies the visitor that the server load is too high and to return in a little while.

    So I was wondering if this particular function is a good thing to add to a relatively large php/mysql project that has the potential for quite a few visitors at any one point in time?

    How does the script go about determining what the server load is?

    Jason.
    Jason Dulberg
    Extreme MTB
    http://extreme.nas.net

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2001
    Location
    USA
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: server load question

    Originally posted by jdulberg
    How does the script go about determining what the server load is?
    Well, unfortunately I can't get into the technicalities of exactly how it does it, but you can set the visitor to receive this error message when there is either a certain number of users online, or when the forum is using a certain amount of CPU usage.


  3. #3
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the one way is like GTP said -- when so many users are online, display a message. the way vBulletin determines the CPU load, it appears, is by looking at the file "/proc/loadavg", which according to vB is "on most versions of *nix including Linux."
    - Matt ** Ignore old signature for now... **
    Dr.BB - Highly optimized to be 2-3x faster than the "Big 3."
    "Do not enclose numeric values in quotes -- that is very non-standard and will only work on MySQL." - MattR

  4. #4
    SitePoint Zealot
    Join Date
    Jun 2001
    Location
    USA
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by DR_LaRRY_PEpPeR
    the one way is like GTP said -- when so many users are online, display a message. the way vBulletin determines the CPU load, it appears, is by looking at the file "/proc/loadavg", which according to vB is "on most versions of *nix including Linux."
    Thanks for clearing that up. (I love Dr. Pepper, by the way!)



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •