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

Link to Mod

This mod will add a "fuse Box" to your forum settings to prevent further overload when the server is under stress. It provides 5 fuses which will "blow" when the server load is over the limit you set for each one. They will put the forum in Maintenance Mode, disable the search feature, disable the "all" for unread messages, disable the Statistics Center, and/or disable the Auto Optimize Database feature. You can use all the fuses or just some and each one can have a different server load limit. The mod will also automatically replace your blown fuses when the load goes back down. ;)

Copyright 2004 by Cristian Lavaque. http://anguz.net
Cristián Lávaque http://cristianlavaque.com

Ben_S

Nice mod, would be even better if you added the option to disable more stats too as that can be a killer.
Liverpool FC Forum with 14 million+ posts.

Anguz

Really? Didn't know. I'll look into it and add it. It's a big box, can hold many fuses. ;)
Cristián Lávaque http://cristianlavaque.com

Anguz

You mean action=stats, right?
Cristián Lávaque http://cristianlavaque.com

Ben_S

Quote from: Anguz on November 05, 2004, 06:03:49 PM
You mean action=stats, right?

Thats the one, with only 100 or so users online it only takes about 4 seconds on my board but when the loads high  it can take an age and watching top when you click it you can see the load shoot up.
Liverpool FC Forum with 14 million+ posts.

Anguz

#5
Updated to 1.10


  • Fixed a stupid typo that made the mod not work at all, didn't cause trouble though, but was useless.
  • Added a couple of fuses: Statistics Center and Auto Optimize Database.
Cristián Lávaque http://cristianlavaque.com

Ben_S

Thanks, will install this tomorrow. :).
Liverpool FC Forum with 14 million+ posts.

Anguz

Quote from: Ben_S on November 06, 2004, 06:21:06 AM
Thanks, will install this tomorrow. :).

My pleasure. ;)

After installing, go to your forum settings and set the max loads for each fuse to what's best for you.
Cristián Lávaque http://cristianlavaque.com

Jerry

this is a gr8 mod, but the on the admin Features\settings for the Fuse Box is kind of unclear.


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Anguz

Click on the icon to get information on each item in the Fuse Box settings. :)
Cristián Lávaque http://cristianlavaque.com

Jerry

forgot all about those question mark icons :) thanks


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Ben_S

Installed fine, will get a proper test tomorrow :).

Thanks
Liverpool FC Forum with 14 million+ posts.

Anguz

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

Ben_S

Board has been fine today, not sure if it's because of this or the many changes I made to mysql & apache. Still am very happy to have this as a safegaurd against people hamering search etc to bring the site down.
Liverpool FC Forum with 14 million+ posts.

Anguz

#14
Updated to 1.20


  • Changed it so it'll find out the avg load only when one of the fuses needs it and the last check was over a minute earlier.
Cristián Lávaque http://cristianlavaque.com

Ben_S

Wil update tonight, in the meantime a few suggestions, not sure how usefull they would be to people but how about an option to reduce the number of posts per page, topics per page depending on load?
Liverpool FC Forum with 14 million+ posts.

Tony Reid

Hey I was just gonna update my feature request....

http://www.simplemachines.org/community/index.php?topic=19159.0

Looks like I dont have to ;D

Thanks Anguz!
Tony Reid

Anguz

#17
Quote from: Ben_S on November 10, 2004, 07:42:12 AM
Wil update tonight, in the meantime a few suggestions, not sure how usefull they would be to people but how about an option to reduce the number of posts per page, topics per page depending on load?

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'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.

On the update, I didn't write an updater, so just uninstall the one you have and then install this new version. :)
Cristián Lávaque http://cristianlavaque.com

Anguz

Quote from: Tony on November 10, 2004, 08:13:44 AM
Hey I was just gonna update my feature request....

http://www.simplemachines.org/community/index.php?topic=19159.0

Looks like I dont have to ;D

Thanks Anguz!

You're welcome! ;)

Thank [Unknown] for telling me about it too! :)
Cristián Lávaque http://cristianlavaque.com

[Unknown]

Quote from: Anguz on November 10, 2004, 04:51:24 PM
On the update, I didn't write an updater, so just uninstall the one you have and then install this new version. :)

If you just include the old mod file and uninstall it in the install section, you're doing that step for them, no?

-[Unknown]

Advertisement: