|
|
Joined: Feb 2007
Posts: 329
Yarp™
|
Yarp™
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.
|
|
|
|
Joined: Nov 2003
Posts: 482
Enthusiast
|
Enthusiast
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
Yarp™
|
Yarp™
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.
|
|
|
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.
|
|
Posts: 254
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|