Previous Thread
Next Thread
Print Thread
Rate Thread
#317422 07/19/2008 3:39 AM
Joined: Feb 2007
Posts: 329
B
Yarp™
OP Offline
Yarp™
B
Joined: Feb 2007
Posts: 329
My board was down yesterday because of a crashed table.

I am thinking about modding the board to auto repair any crashed table, but I am curious if the experts have any comment on it.

Easiest to code would be in the errorhandler itself, just do a regex like "Table '\./(\w+)/(\w+)' is marked as crashed and should be repaired" on the error message, and do a repair table. But repairing takes a bit of time, and it wouldn't be smart to issue out several repair tables.

The option I have in mind is that the error handler would just write out a repair table sql statement to a file, and a cronjob would do any sql statements in that file, and clear that file afterwards.

Any comments on this? Or is it just plain stupid to try to auto repair.

Sponsored Links
Joined: Nov 2003
Posts: 482
S
Enthusiast
Offline
Enthusiast
S
Joined: Nov 2003
Posts: 482
i'd also be wary of the specific table name. for example, if it's one of the big ones, then you'd want to have your cron change config.inc.php to close the board, while repairing.

posts, topics, privatemessages, users.. come to mind..

Joined: Feb 2007
Posts: 329
B
Yarp™
OP Offline
Yarp™
B
Joined: Feb 2007
Posts: 329
closing the board is something I had in mind too, but I would close it always. If the table is small, the closing will be over quick anyway.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,557
Posts293,856
Members13,847
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,819
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 70
Gizmo 16
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20210915)
Responsive Width:

PHP: 7.3.29 Page Time: 0.011s Queries: 21 (0.006s) Memory: 0.7924 MB (Peak: 0.8221 MB) Data Comp: Zlib Server Time: 2021-11-27 05:43:50 UTC
Valid HTML 5 and Valid CSS