![]() |
Quote:
BTW, latest email after about 3 days without an update: Quote:
|
Cool. I've installed this. Will let you know how it goes for me.
|
Okay, my first email:
Quote:
Thanks for a great hack! |
Ok, I've updated the hack a little. I've added reporting of the ratio of Original Writes vs. Consolidated Writes.
Email will look like: Quote:
I use the ratio to tweak the frequency of the updates. A low ratio means updates are occuring too often. There is no "correct" ratio as it depends on the number of threads being updated -- you don't want too many threads being updated at the same time. IMHO, ratios of less than 5 probably means that updates are too frequent. (for those using a previous version, only the code has changed -- the db table remains unchanged) |
Possible bug:
The thread views are not being recorded properly. I have a few threads with many replies where the thread views are persistently at 0 and not updated. Do these threadviews get updated when the db write occurs? |
Quote:
Is the db being written to daily? (i.e. how often do you get an email?) |
This looks like a marvelous hack!
I would install it, but since vB is the auxillary forum on my site (waiting for vB3) I don't have the need for it just yet. I hope, though, vB3 has a similar feature (or perhaps you'll be able to port it real quick? ;)) since I most often have around at 2-300 online users/guests simultaneously during the day hours. |
Quote:
Once a day or once every 2 days. It's working fine, and there is a noticeable difference. |
Hello.. Im thinking about installing this hack on a site that I support that averages about 400 users logged in at a time. Sometimes peaking to around 2000 (well vbulletin reports the most ever as being 2410 I don't know how much you can trust this though). We currently spread our load over 2 servers using Round Robin DNS and have a separate server for all database functions. Will this hack work on multiple server site? I am thinking because of how this hack works there should be no problem but I wanted to make sure. It sounds like this hack would help with the occasional To Many Connections messages we get..... Thanks for the info.
|
Installing tonight: 12:40am UK time 8-AUG.
Will post my first e-mail. Looks like it'll really help me. We get a lot of guests visiting and not posting (just viewing) as well as 200-300 logged in users. |
I've decided to keep this hack installed. But have not decided to keep the original settings.
I have removed the line which tells it to work under a certain server usage. And have just got it running so it moves them to the database periodically. I've attached a text file which is a downloaded post from my admin forum on my forums, this contains over 50 e-mails sent by this hack. I have now commented out the e-mail lines because I'm happy with it's performance at these settings. |
Have some problem......when I find this code....
PHP Code:
PHP Code:
|
I'm the only one with a problem.. :)
After I installed this hack I got 200 Email errors in ~ 5 min :o Quote:
|
Update! This is going to be uninstalled from my boards. Last nights busy period was very busy and all went well. Then it got to about 1am when the visitors start to go down and BOOM - the board was killed for 5mins. I kept trying to enter and when I eventually did the server stats said that usage had been:
10.40 7.00 This caused massive problems and also (I believe) all the view counts were lost. It seems that when it comes to updating the stats it's such a massive undertaking that it kills the server pc. |
I have reinstalled this.
Now have it functioning correctly. My 'normal users online' is around 100-150 at once. Peaking maybe at 250 at times. A lot of guests visit and a lot of people read threads and don't post, let me know if anyone wants to see my settings for it... |
Errr... can someone shed some light on the reason every time I try to download this hack i get v0.91 instead of v0.92?
having installed it I am getting the emails but without the ratio bit added to v0.92. Looks like it will be a great hack as i have over 50,000 registered users and at least twice that many guests with an average of 250-350 users on at any one time peaking to about 550 every day. Dedicated server with average load at around 1.5-2.5 but can peak to about 6 or 7 and ocassionally even more. |
Quote:
I don't see why this wouldn't work with multiple web servers, but I can't be 100% without intimate knowledge of your setup. (that's me covering my ass :p ) The hack makes cumulative updates to the db, so while the two webservers would update the db at different times, it should still work. You'll probably have to tweak the update frequency to get it to your liking, but otherwise, I don't forsee a problem. |
Quote:
|
I just installed this. Tweaking now.
I would like to see your settings.... Quote:
|
Hmmm... thank you. Just installed and should do wonders for our forums :cool:.
|
Code:
if ($loadavg[0]<1 && mt_rand(1,5)=='44'){ |
Quote:
|
How about scaling dynamically with load? Something like:
PHP Code:
|
Quote:
If you want more frequent updates, change the 44 to 1, then change the 5 to something higher. A limit of 5 would mean the views would be update once every 5 pageviews -- not much of a savings IMHO. :) |
Quote:
With your code, for example, the load could be 50 and it would still update (if the correct random number was produced). Hundreds of consecutive db writes when the load is at 50+ won't be a pretty sight. :) |
Quote:
|
The good news is that vB3 will have this built-in. :)
|
I like this hack but it has one quirk... late at night when not many people are on it doesn't update that often and people are asking why...
Would it be possible to code in a timer so that it would write every 5min or so? But also have the random number generation so that it will write properly during normal usage? |
How can i set this so that it updates every 500 threadviews, without any conditionals? The server load on the mysql server is not a factor...it is the php server load that is an issue and something in apc is not playing nicely with this hack. I would like to keep it, but would prefer being able to set a fixed # at which it will dump.
I have been trying to use this: PHP Code:
|
Here is a file to let you use a cron job to do it instead of in showthread, its more efficent in my opinion.
Open up the file and change the path to your config.php, upload now to your server, and then create a cron job. Cpanel users can do this in the Advanced section just type php /home/path/to/deffered_views.php and set it to run every 30mins |
Quote:
or just this 2 steps before this cronjob ? Quote:
|
Sounds like a great hack for big size boards, I would install it if I hadn't moved my forums to a seperate server already (had some troubles earlier).
Good job! :) |
I've just installed this hack on v2.2.9, and I'll report on any improvements. My forums regularly have between 60 and 80 users and I've been looking to pin-point and reduce weird server spikes that raise my load (which is ordinarily between 1 and 2) up to 3 and sometimes 4 or 5.
Kaelon |
Some preliminary results on my board:
Quote:
Kaelon |
Last time I tried to use this hack it reset my Who's Online record to 0, but I will install it again now that I have upgraded :)
|
I get safe mode errors when I set *NIX Load Limit to anything but 0. Damn.
|
Installed first time no problem, thanks!
Paul |
Excellent! I just stumbled on this while searching for something else. Should be mandatory for big boards sticking with 2.x for a while.
|
I'm rarely getting more than 50% writes avoided.. which may be expected when you have many different threads that users are opening. I've turned the delay setting up to 1000 since I don't want to wait too long for the updates even if it would mean a higher hit ratio.
Also for those of you running separate DB servers, the load checker will do nothing as the built in load check is only on your web server. fastforward released a remote db-server load checker that works fine here, I'll find it if anyone needs. |
hm - I installed the hack and everything worked fine...
...except the "mark read" feature of thread, that the icon of the thread is changed. anyone else reporting this problem? |
All times are GMT. The time now is 07:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|