Activity Stream
48,167 MEMBERS
6959 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 9 of 9
  1.     
    #1
    The Wise One
    Website's:
    twilight.ws ddlrank.com

    Default Keeping the server load cool?

    Recently with the increase of traffic I have noticed that my server load has gone up (especially mySQL).

    The reason I'm making this topic is because I want to discuss about some ways to minimize server load, and in my opinion this can be done easily.

    Having too much data in your databases isn't good so therefor I have this idea. Having a huge download database isn't good, a good 40k downloads would be enough. As for recent searches it also seems fair enough to limit it at 50k.

    Since you only need the newest downloads and the latest searches it is possible to just have the recent 40k downloads and the last 50k searches

    Easiest way would be to create a PHP file with some queries:

    1*Get the highest ID in the downloads tabel
    2*Do a query to remove all the downloads with a lower id than Highest_ID - 40 000
    3*Get the highest ID in the search tabel
    4*repeat step 2 but then just with the searches tabel

    Anyone any comments?
    Whoo Reviewed by Whoo on . Keeping the server load cool? Recently with the increase of traffic I have noticed that my server load has gone up (especially mySQL). The reason I'm making this topic is because I want to discuss about some ways to minimize server load, and in my opinion this can be done easily. Having too much data in your databases isn't good so therefor I have this idea. Having a huge download database isn't good, a good 40k downloads would be enough. As for recent searches it also seems fair enough to limit it at 50k. Since Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    WRZhost.com WExplain.com
    You could tweak /etc/my.cnf aswell
    Any questions? Want to make money?My Online Marketing Forum
    WRZhost offshore hosting! Still the best offshore hosting after 7 years! Hongkong,Russia,NL,Germany

  4.     
    #3
    Member
    perhaps remove the ID's that are too old to work. Like something thats like 2 - 3 years old, why bother keeping it when you know it will out and dead.

  5.     
    #4
    (╯?□?)╯︵ ┻━┻
    Website's:
    Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.com
    well whoo, I recently did some "research" and looked deep into KDDL (the script basically everyone uses). It is really a very, very badly coded script which is the main reason I decided to find why it sucks at server load.

    You are right with clearing old rows from your table but that will only count for half (if that) of the high SQL load. The other primary reason for it is just listing recent searches. Now if you cache them, say hourly, it will lower load A LOT.

    As for downloads, there is no real need to remove old ones most of the time as they cause the least load (SQL queries used to list them and view them are fine).

  6.     
    #5
    Banned
    Website's:
    warezscene.org forum.warezscene.org
    Just out of curiosity (If you dont mind) -
    What are your server specs?
    How many SQL queries are being generated per average pageload?
    How many uniques are you receiving a day?

    I could try and optimize it for you, if the server is high-spec, and the load is erratic.

  7.     
    #6
    The Wise One
    Website's:
    twilight.ws ddlrank.com
    Quote Originally Posted by UltimA View Post
    Just out of curiosity (If you dont mind) -
    What are your server specs?
    How many SQL queries are being generated per average pageload?
    How many uniques are you receiving a day?

    I could try and optimize it for you, if the server is high-spec, and the load is erratic.
    What are your server specs?


    How many SQL queries are being generated per average pageload?
    Eh?

    How many uniques are you receiving a day?
    05 May, Mon 12595 06 May, Tue 12909 07 May, Wed 12943 08 May, Thu 13088 09 May, Fri 14026 10 May, Sat 14168 11 May, Sun 13300 12 May, Mon 13211 13 May, Tue 12625
    @JMZ: Maybe ill look more into it for caching the recent searches. Let me know if you are interested in helping with this.

    Greetz

  8.     
    #7
    (╯?□?)╯︵ ┻━┻
    Website's:
    Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.com
    if you stop going afk on msn i will help you lol

    Ultima: its kddl, like 10 queries max per page load usually

    these get run on search for example:
    - insert search query
    - possibly update search query (if using searches field and unique queries)
    - list downloads
    - list recents
    - pages possibly seperate
    - LE

  9.     
    #8
    The Wise One
    Website's:
    twilight.ws ddlrank.com
    Quote Originally Posted by JmZ View Post
    if you stop going afk on msn i will help you lol

    Ultima: its kddl, like 10 queries max per page load usually

    these get run on search for example:
    - insert search query
    - possibly update search query (if using searches field and unique queries)
    - list downloads
    - list recents
    - pages possibly seperate
    - LE
    Sorry busy with gf and stuff lately , I got a day off college tomorrow so well see lol

    talk to ya soon

  10.     
    #9
    Member
    Whoo has a girl friend! Surprising stuff!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Server CPU load
    By tractor3231 in forum Server Management
    Replies: 6
    Last Post: 10th Jul 2011, 04:52 AM
  2. [Dedicated] Super cool dedicated server from OVh - Sp-09 bestof
    By rapid-rockzz in forum Archive
    Replies: 6
    Last Post: 23rd Apr 2010, 12:26 PM
  3. Server Load
    By Last Word in forum vBulletin
    Replies: 0
    Last Post: 3rd Apr 2010, 10:45 AM
  4. Server Load - [Help]
    By G56Ace in forum Webmaster Discussion
    Replies: 8
    Last Post: 10th Jun 2009, 06:52 PM
  5. Can't load XP without keeping XP CD in CDROM
    By swapnil0545 in forum Technical Help Desk Support
    Replies: 9
    Last Post: 21st Apr 2009, 04:07 PM

Tags for this Thread

BE SOCIAL