Results 1 to 9 of 9
-
13th May 2008, 02:47 PM #1OPThe Wise OneWebsite's:
twilight.ws ddlrank.comKeeping 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
-
13th May 2008, 11:21 PM #2MemberWebsite's:
WRZhost.com WExplain.comYou 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
-
14th May 2008, 12:08 AM #3Member
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.
-
14th May 2008, 09:30 AM #4(╯?□?)╯︵ ┻━┻Website's:
Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.comwell 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).
-
14th May 2008, 09:42 AM #5BannedWebsite's:
warezscene.org forum.warezscene.orgJust 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.
-
14th May 2008, 11:14 AM #6OPThe Wise OneWebsite's:
twilight.ws ddlrank.comWhat 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
-
14th May 2008, 12:49 PM #7(╯?□?)╯︵ ┻━┻Website's:
Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.comif 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
-
14th May 2008, 11:25 PM #8OPThe Wise OneWebsite's:
twilight.ws ddlrank.com
-
15th May 2008, 12:40 AM #9Member
Whoo has a girl friend! Surprising stuff!
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Server CPU load
By tractor3231 in forum Server ManagementReplies: 6Last Post: 10th Jul 2011, 04:52 AM -
[Dedicated] Super cool dedicated server from OVh - Sp-09 bestof
By rapid-rockzz in forum ArchiveReplies: 6Last Post: 23rd Apr 2010, 12:26 PM -
Server Load
By Last Word in forum vBulletinReplies: 0Last Post: 3rd Apr 2010, 10:45 AM -
Server Load - [Help]
By G56Ace in forum Webmaster DiscussionReplies: 8Last Post: 10th Jun 2009, 06:52 PM -
Can't load XP without keeping XP CD in CDROM
By swapnil0545 in forum Technical Help Desk SupportReplies: 9Last Post: 21st Apr 2009, 04:07 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...