Markus Makela
0111df3767
Cleaned up the use of thread types
...
The THREAD type was not used everywhere and pthread_t was used instead.
The thread creation function also returned the address of a stack allocated
value which isn't guaranteed to be usable.
2016-01-27 09:07:55 +02:00
Markus Makela
3abcb52837
MXS-502: Server state changes are logged at notify level
...
When MaxScale perceives a state change in one of the servers it will log
an message into the log file stating the previous and the current state.
This will make it easier to analyze failures in the cluster.
2015-12-30 19:49:41 +02:00
counterpoint
ece53a8ac5
Fix Galera monitor problem with leaving wrong status for significant periods; change warning message from logging as warning instead of notice.
2015-11-20 10:15:13 +00:00
Johan Wikman
df7b4829d4
server/modules/monitor LOGIFs and skygw_write_logs removed.
...
All LOGIFs and skygw_log_writes replaced with MXS_[ERROR|
WARNING|NOTICE|INFO|DEBUG] macros.
2015-11-17 13:09:21 +02:00
Markus Makela
5d4fe65b19
Fixed some misaligned brackets.
2015-11-16 21:00:22 +02:00
Markus Makela
f3a4bedbf5
Mysqlmon formatting changes
...
Fixed indentation, bracket alignment and other minor things.
2015-11-16 13:59:47 +02:00
Johan Wikman
a355e1beef
Printf format checking added to logging function.
...
Printf format checking added to logging function and all
issues that were revealed by that fixed.
2015-11-16 12:40:49 +02:00
Markus Makela
6b88b6b17f
Merge branch 'develop' into MXS-329-develop-20151111
2015-11-13 07:48:59 +02:00
Markus Makela
5efd564573
Fix to MXS-288: https://mariadb.atlassian.net/browse/MXS-288 Added MySQL 5.7 authentication
...
The change to the mysql.user table in MySQL 5.7 caused MaxScale to stop
working with it. This commit adds functionality that checks which version of
the user data query should be made. It also moves common code related to
server version strings to server.c
2015-11-12 15:24:27 +02:00
Markus Makela
466224b316
Moved common monitor code to externcmd.c
...
File existence and permission checks are now done in externcmd_can_execute
2015-11-11 21:19:07 +02:00
counterpoint
dee20fe077
Merge remote-tracking branch 'origin/develop' into MXS-329-develop-20151111
...
# Conflicts:
# server/core/CMakeLists.txt
# server/core/buffer.c
# server/core/service.c
# server/modules/filter/tee.c
# server/modules/monitor/mysql_mon.c
# server/modules/routing/binlog/blr.c
# server/modules/routing/binlog/blr_slave.c
# server/modules/routing/debugcmd.c
# server/modules/routing/readwritesplit/readwritesplit.c
# utils/skygw_utils.cc
- resolved.
2015-11-11 11:08:02 +00:00
Johan Wikman
834a88aeda
Log variables moved to log_manager.h
...
The log manager variables lm_enabled_log_files_bitmask, log_ses_count
and tls_log_info that earlier were declared separately in every
c-file are now declared in the log_manager.h header.
2015-11-04 14:26:53 +02:00
Markus Makela
3187f2c3f8
Updated code based on review of 9a04984
2015-10-31 10:34:37 +02:00
Markus Makela
cd55f62051
Fix to MXS-29: https://mariadb.atlassian.net/browse/MXS-29
...
If MAXSCALE_SCHEMA.REPLICATION_HEARTBEAT isn't replicated, a warning is logged.
2015-10-31 10:34:37 +02:00
Markus Makela
2b958bad94
Added detection of connection timeout when monitors connect to backend servers.
2015-10-26 17:30:34 +02:00
counterpoint
6040f11070
Include DCB headers to remove warnings.
2015-10-17 20:06:37 +01:00
counterpoint
482db5e84d
User friendly bit mask display for DCB print; monitors to work via inserting hangups instead of callbacks.
2015-10-17 20:00:05 +01:00
Markus Makela
6ad89cb986
Removed boolean value assignment to an integer variable.
2015-09-16 13:36:33 +03:00
Markus Makela
6c75e09f29
Fixed multi-source replication not working.
2015-09-16 11:54:56 +03:00
Martin Brampton
edd2688e71
Fix memory leak in MySQL monitor.
2015-07-19 16:54:13 +01:00
Markus Makela
96edaca90c
Disabled C99.
2015-07-14 12:14:01 +03:00
Markus Makela
058f49eb88
Added error message about MySQL versions lower than 5.5 and monitors without the 'mysql51_replication' enabled.
2015-07-07 20:14:57 +03:00
Markus Makela
c8173ec4f7
Added missing return value.
2015-07-02 10:00:38 +03:00
Markus Makela
2b0f0b89ab
Added master server id to mysql 5.1 monitoring.
2015-07-01 19:13:03 +03:00
Markus Makela
8a0b399896
Added code for MySQL 5.1 replication detection.
2015-06-30 21:37:29 +03:00
Markus Makela
0062d9d2b7
Version errors for SHOW SLAVE STATUS now only print once.
2015-06-29 10:24:16 +03:00
Markus Makela
5c7a30e9fe
Added more error logging.
2015-06-28 10:43:06 +03:00
Markus Makela
113fb4c33b
Fix to MXS-209: https://mariadb.atlassian.net/browse/MXS-209
...
Added missing checks for proper column count on query result.
2015-06-28 08:43:05 +03:00
Markus Makela
fe2062b5b0
Fixed a regression in mysql_mon.c which caused a memory leak
2015-06-11 19:50:51 +03:00
Markus Makela
3fb1213dee
Added more error logging when monitor scripts fail.
2015-06-10 06:09:42 +03:00
Markus Makela
ac55f7c6fe
Merge branch 'MXS-121' into develop
2015-05-21 17:53:01 +03:00
Markus Makela
91bc7b2792
Added missing spinlock calls to all monitors.
2015-05-21 11:41:11 +03:00
Markus Makela
7dbc021149
Added more logging when a monitor script cannot be executed.
2015-05-20 16:16:49 +03:00
Markus Makela
c4f51c0b8c
Fixed a possible bug with multiple monitors monitoring the same servers.
2015-05-19 15:42:11 +03:00
Markus Makela
b94f494d80
Added filtering of monitor events.
2015-05-14 12:05:58 +03:00
Markus Makela
9845923f81
Added full implementation of MXS-121 to all monitors.
2015-05-09 17:37:34 +03:00
Markus Makela
0c15812340
Moved common functions to monitor_common.c
2015-05-09 14:29:26 +03:00
Markus Makela
8af302d785
Removed unused variables from monitors.
2015-05-09 14:19:25 +03:00
Markus Makela
6e1a69df7e
Changed callable monitor scripts to be called with command line parameters instead of having multiple scripts.
...
This reduces the amount of guesswork the monitor has to do when executing the script and places that burden on the called script.
2015-05-09 14:03:52 +03:00
Markus Makela
788c0b3428
Merge branch 'develop' into MXS-121
2015-05-09 12:09:17 +03:00
Markus Makela
49d5409dcb
Merge branch 'develop' into MXS-121
...
Conflicts:
server/modules/monitor/mysql_mon.c
2015-05-09 04:49:06 +03:00
Markus Makela
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
Markus Makela
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
Markus Makela
cad59abbd1
Added parameters for commands and changed the execv call to execvp.
2015-05-05 22:36:47 +03:00
Markus Makela
c0f14dd33b
Merge branch 'develop' into mon_script_test
2015-05-04 09:14:04 +03:00
Markus Makela
6c904b164a
Fix to bug MXS-25
...
A failed master no longer generates the "Info: A Master Server is now available" message.
2015-04-30 11:28:07 +03:00
Markus Makela
1516422458
A script can now be called in mysql_mon when a master server loses master status.
2015-04-07 04:49:56 +03:00
Markus Makela
341c04aa48
First tests.
2015-03-31 17:27:25 +03:00
Markus Makela
63d83cd85d
Monitor API 2.0.0 implemented.
2015-03-11 15:18:55 +02:00
Markus Makela
9209c812ba
Updates to refactoring of the monitors.
2015-03-11 10:40:53 +02:00