News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Fuse Box

Started by Anguz, November 05, 2004, 07:08:28 AM

Previous topic - Next topic

Anguz

Quote from: [Unknown] on November 10, 2004, 05:10:00 PM
If you just include the old mod file and uninstall it in the install section, you're doing that step for them, no?

-[Unknown]

Oh! I had not thought of that! Great tip! Thank you very much. :)

My next updates will have this. ;)
Cristián Lávaque http://cristianlavaque.com

Ben_S

Quote from: Anguz on November 10, 2004, 04:51:24 PM
I don't know, you mean like not being as extreme as putting the forum in Maintenance Mode and just disable posting? Well, I could disable it and make the forum read-only under a certain ammount of load, but that wouldn't lighten it much, would it? I don't know.

I was thinking along the lines of reducing the setting for the number of posts per page displayed in a topic automatically so that if the board is set to display 40 posts per page, if the load goes above what the admin sets, instead of displaying 40 posts, it only displays 20 or whatever the admin sets it to.

Not sure how useful it would be, I know in the past when certain big events have happened, I've reduced it manually for a few hours although whether it helped the site stay up is debatable.

QuoteI'd like to get more feedback on heavy loading actions by SMF in the other topic I started in the coding discussion board on it, so if you could voice your ideas there and we get some more feedback by others, we may find more good fuses to add.

The only ones I can think of are those already done, whos online used to be a problem but not anymore now it has pagination.

ps great mod, only one I have installed as yet, although I am planning on adding your faster parse code too.
Liverpool FC Forum with 14 million+ posts.

Anguz

#22
That doesn't sound like a bad idea, although I also don't know how much it helps the server to do it. I do think I could unset ;all for any action and not just unread, in case the load goes over a certain point.

I am really glad you found it useful! This was [Unknown]'s idea. If you have anything you think could be a good mod, let me know and we'll talk it over. ;)
Cristián Lávaque http://cristianlavaque.com

Anguz

Updated to 1.21


  • Fixed a bug where the avg load wasn't being saved to the database.

I haven't figured out how to make the upgrade work in package-info.xml yet, so you'll have to uninstall the previous and install this one.

Sorry for updating again so soon, but it was important. :-\
Cristián Lávaque http://cristianlavaque.com

Pause

Downloaded it fine, but when I try to upload it to the board:

QuoteThe package you tried to upload either is not a valid package or has become corrupted.

The 1.10 version installed fine, but it has the above error with both 1.20 and 1.21 (I went for 1.21 but that did it first, so that's why I then tried 1.20)
"You and me, inside that box, now." - The Doctor

Bite Fusion
Fusion Web Network
VG Fusion
Wrestling Fusion

Anguz

I just downloaded them from the here and the files were fine. Why don't you try downloading them again?

And, yes, 1.21 is the one you should get.
Cristián Lávaque http://cristianlavaque.com

Pause

#26
Downloaded fine, but when I tried to upload, I got the same error...

QuoteAn Error Has Occurred!   

The package you tried to upload either is not a valid package or has become corrupted.

[EDIT: It's OK, I downloaded it via Internet Explorer this time, and now it's done it :D]
"You and me, inside that box, now." - The Doctor

Bite Fusion
Fusion Web Network
VG Fusion
Wrestling Fusion

Anguz

Cristián Lávaque http://cristianlavaque.com

Anguz

Updated to 1.22


  • The bug in 1.21 wasn't quite fixed yet.
Cristián Lávaque http://cristianlavaque.com

Ben_S

Works fine on preview with a couple of changes, one to the install for tag and one for the search part for the modifications.english.php
Liverpool FC Forum with 14 million+ posts.

Anguz

Cool, thanks for letting us know. :)
Cristián Lávaque http://cristianlavaque.com

Ben_S

No problem, thanks for writing it.
Liverpool FC Forum with 14 million+ posts.

Tony Reid

This is a fantastic mod and its working well on my site(RC2)  - thank you!
Tony Reid

Tony Reid

I *think* I have ran into a problem using it with the coppermine bridge.... suddenly my gallery stopped working I turned off the fuse mod and then the gallery started working again.......

Ive looked and the error doesnt make much sense to me, but if you get the chance perhaps you could help point out if its something obvious :) to me it looks like its getting caught on a rem statement  ???

Quote
Fatal error: Call to undefined function: blownfuse() in /home/fertilit/public_html/gallery/bridge/smf.inc.php(125) : eval()'d code on line 20

I am using the latest coppermine install 1.3.2 and the bridge file (although its 1.3.1 bridge) its worked fine up until now :(

To view a text file version of the of the smf.inc.php bridge file check here  : http://www.absolutebreeze.co.uk/smf.inc.txt
Tony Reid

Anguz

Try this


<edit file>
smf.inc.php
</edit file>

<search for>
cm_include_smf_funcs("$sourcedir/Subs.php", array("updateMemberData", "updateStats", "updateSettings"));
</search for>

<replace>
cm_include_smf_funcs("$sourcedir/Subs.php", array("updateMemberData", "updateStats", "updateSettings", "blownFuse"));
</replace>


HIH.
Cristián Lávaque http://cristianlavaque.com

Ben_S

Quote from: Ben_S on November 10, 2004, 07:08:53 PM
I was thinking along the lines of reducing the setting for the number of posts per page displayed in a topic automatically so that if the board is set to display 40 posts per page, if the load goes above what the admin sets, instead of displaying 40 posts, it only displays 20 or whatever the admin sets it to.

Have just discovered I could maybe really do with something like that, Match just finnished cue about 100 people all clicking stuff in a 5 second period and load flying up. Not sure how much difference it would make to resource useage, but fetcing less data should reduce it a fair bit I would have though.
Liverpool FC Forum with 14 million+ posts.

Anguz

Hmm... so you got the forum put in maintenance after the match because of the high load?

What do you suggest? less topics in messageindex and replies in display?
Cristián Lávaque http://cristianlavaque.com

Ben_S

Yep, am option for less topics and replies to be shown would be good. Not sure how much difference it would make but it's bound to make some.
Liverpool FC Forum with 14 million+ posts.

MatrixRev

Excellent mod just added it my webhost forums yet to see it get overkilled though lol so if it happens id like to see it kick into action

Anguz

Quote from: MatrixRev on December 06, 2004, 07:53:03 PM
Excellent mod just added it my webhost forums yet to see it get overkilled though lol so if it happens id like to see it kick into action

Thanks. For a test, you can set the load limit really low, to a level where the fuse will blow easily.
Cristián Lávaque http://cristianlavaque.com

Advertisement: