Commit Graph

30 Commits

Author SHA1 Message Date
9845923f81 Added full implementation of MXS-121 to all monitors. 2015-05-09 17:37:34 +03:00
0c15812340 Moved common functions to monitor_common.c 2015-05-09 14:29:26 +03:00
8af302d785 Removed unused variables from monitors. 2015-05-09 14:19:25 +03:00
49d5409dcb Merge branch 'develop' into MXS-121
Conflicts:
	server/modules/monitor/mysql_mon.c
2015-05-09 04:49:06 +03:00
5a3ed0de9b Moved common monitor functionality to the MONITOR type
Common variables, like databases, timeouts and interval, and functionality was moved to the MONITOR type.
This reduces the redundant functionality of the monitor API's functions like registerServer and setInterval.
2015-05-09 04:47:17 +03:00
fdd5a10478 Fixed a memory leak in all the monitors when a failed mysql_ping to the database caused a reinitialization of MYSQL* connection. 2015-05-07 11:42:14 +03:00
90875c1164 Cleaned up unused variables. 2015-03-11 18:12:18 +02:00
63d83cd85d Monitor API 2.0.0 implemented. 2015-03-11 15:18:55 +02:00
566831c9c5 Fix to bug 705: http://bugs.mariadb.com/show_bug.cgi?id=705
changed " to ' in queries so that ANSI_QUOTES works with sql_modes that use it.
2015-01-26 20:17:20 +02:00
92ebfb2eb9 Timeouts handling in NDB Monitor
Timeouts handling in NDB Monitor
2015-01-26 11:50:24 +01:00
ba5cab0af6 NDB Monitor update
NDB Monitor update
2015-01-26 11:35:21 +01:00
511d93f266 Monitored server status change logged in debug log
Monitored server status change is now logged in debug log
2014-11-20 12:18:33 +01:00
fd11e6a7f5 Session-specific logging. Added functions
void session_enable_log(SESSION* ses, logfile_id_t id)
and
void session_disable_log(SESSION* ses, logfile_id_t id)

Which switch specific log type on/off if the log type in question is not generally enabled.

Each thread carries a thread-specific struct log_info_t which includes members for current session id and bitfield for enabled log types for the current session. That information is checked before actual log write functions are called.

Each file where session-specific logging is used, must include the following exports:

/** Defined in log_manager.cc */
extern int            lm_enabled_logfiles_bitmask;
extern size_t         log_ses_count[];
extern __thread log_info_t tls_log_info;
2014-11-19 00:08:59 +02:00
39cc701b0d Branch update
Branch update
2014-11-07 16:59:01 +01:00
3b982ae820 Added monitor timeouts for connect/read/write
Added monitor timeouts for connect/read/write
2014-11-07 16:45:06 +01:00
6f22975e6c Added 'disable_master_failback' monitor option
Added 'disable_master_failback' option in Galera monitor
2014-10-30 19:03:07 +01:00
f787077bc5 Removing two monitor consecutive events
Removing two monitor consecutive events
2014-10-27 16:24:35 +01:00
b0683d9b4d Updated the licensing year from 2013 to 2013-2014 2014-10-01 14:37:12 +03:00
f4e591e382 Changed 'SkySQL Gateway' to 'MariaDB Corporation MaxScale' 2014-09-30 13:15:03 +03:00
c344231f80 Renamed all occurences of SkySQL to MariaDB Corporation 2014-09-30 13:02:10 +03:00
fd95acdcbf Monitor checks weren't done if interval%100<100. Fixed. 2014-09-24 12:54:07 +03:00
2b147a9ea4 Monitors waited monitor check interval time before checking backend servers for the first time. Removed wait for the first check.
Added extra debugging to query_classifier to assist in issue resolution regarding to optimized MaxScale builds and pthread_mutex_lock in sql/sql_class.h
2014-09-24 12:03:04 +03:00
45f8585804 Fix to bug #549, http://bugs.skysql.com/show_bug.cgi?id=549
Each monitor loops 10 times/second (sleep 100ms) and perform monitoring checks only when monitor's interval is spent. Monitors notice faster if the shutdown flag is set and thus overall shutdown is faster.
hint.c:added missing header
Changed interval from unsigned long to size_t which is guaranteed to be of same size also in windows (if possible).
2014-09-23 11:26:15 +03:00
ffc7e7aa10 Fix for server_string memory leak
Fix for server_string memory leak
2014-09-12 15:36:22 +02:00
d1b4852d29 Addition of server "Auth Error" status 2014-09-12 08:55:32 +01:00
32cd901e5c New entry point added to all monitors
New entry point added to all monitors
2014-09-04 09:27:23 +02:00
f2dc2e8671 Added log status change for ndbcluster monitor
Added log status change for ndbcluster monitor
2014-08-05 15:26:31 +02:00
744892e47c Support for MySQL Cluster
Support for MySQL Cluster with ndbcluster monitor and readconnroute
with router_option=ndb
2014-07-30 09:41:03 +02:00
e91045d311 New monitor added to Makefile
New monitor added to Makefile
2014-07-28 09:53:42 +02:00
cbefda6517 monitor for SQL nodes in MySQL Cluster
New monitor added for SQL nodes in MySQL Cluster
2014-07-28 09:47:06 +02:00