[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ha-dev
Subject: [Linux-ha-dev] [Patch 1]Change of the monitor log of the resource
From: renayama19661014 () ybb ! ne ! jp
Date: 2011-08-30 8:19:40
Message-ID: 315752.33261.qm () web200018 ! mail ! kks ! yahoo ! co ! jp
[Download RAW message or body]
Hi,
The log that a resource agent of mysql outputs with a monitor is a noise very much.
Aug 11 13:40:01 ib01 mysql[18164]: INFO: COUNT(*) 4
Aug 11 13:40:01 ib01 mysql[18164]: INFO: MySQL monitor succeeded
-> repeat monitor log.....
I suggest the next patch.
* The addition of the -q option to ocf_run.
* Change the log of the monitor completion to debug.
I send a patch.
Please examine this patch.
Best Regards,
Hideo Yamauchi.
["mysql.1651-1.patch" (application/octet-stream)]
diff -r 1133a3a3319a heartbeat/mysql
--- a/heartbeat/mysql Wed Aug 31 01:14:08 2011 +0900
+++ b/heartbeat/mysql Wed Aug 31 01:15:39 2011 +0900
@@ -713,7 +713,7 @@
mysql_options="$MYSQL_OPTIONS_LOCAL --user=$OCF_RESKEY_test_user --password=$OCF_RESKEY_test_passwd"
# Check for test table
- ocf_run $MYSQL $mysql_options \
+ ocf_run -q $MYSQL $mysql_options \
-e "SELECT COUNT(*) FROM $OCF_RESKEY_test_table"
rc=$?
@@ -724,10 +724,10 @@
fi
if ocf_is_ms && ! get_read_only; then
- ocf_log info "MySQL monitor succeeded (master)";
+ ocf_log debug "MySQL monitor succeeded (master)";
return $OCF_RUNNING_MASTER
else
- ocf_log info "MySQL monitor succeeded";
+ ocf_log debug "MySQL monitor succeeded";
return $OCF_SUCCESS
fi
}
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic