Commit 3f74aa7c authored by Gary Wong's avatar Gary Wong

Try to be robust against monitoring database corruption.

Aggressively flush tables, and mysqlcheck on boot.
parent 4a4973a0
......@@ -556,6 +556,8 @@ while (1) {
close( P );
}
emdbi::DBQueryWarnN( $db, "FLUSH TABLES" );
sleep( $INTERVAL );
# FIXME add slice, sliver, user information
......
......@@ -12,6 +12,7 @@ MAINSITE="@TBMAINSITE@"
PROTOGENI="@PROTOGENI_SUPPORT@"
DBNAME="@TBDBNAME@"
LOGFILE="/var/log/mysqlcheck.log"
PROTOGENI_GENIRACK="@PROTOGENI_GENIRACK@";
command=/usr/local/bin/mysqlcheck
socket=/tmp/mysql.sock
......@@ -34,6 +35,10 @@ case "$1" in
echo "*** Checking geni-cm ..." >> $LOGFILE
$command --auto-repair geni-cm >> $LOGFILE
fi
if [ $PROTOGENI_GENIRACK != "0" ]; then
echo "*** Checking monitoring ..." >> $LOGFILE
$command --auto-repair monitoring >> $LOGFILE
fi
echo -n ' tbdbcheck'
;;
stop|faststop|quietstop|onestop|forcestop)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment