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
ac174437f3
Master/slave bits now handled in one place
...
The master and slave bits were previously set in more then one place.
This spread out the handling of those status bits and now all replication
related bits are set in one place.
2015-11-30 11:50:36 +02:00
609ed62a69
Fixed galeramon not setting server status for downed servers
...
If galeramon isn't able to connect to a Galera node, the server state is left
unaltered. This will cause servers that lose connectivity to be in RUNNING|JOINED
state which causes them to be assigned with the SLAVE status. For servers that are
never accessible, the state will be RUNNING.
2015-11-30 11:50:36 +02:00
a829b38873
Fix to MXS-363: Added soname versions to libraries
...
The soname version numbers were missing from all the library targets
properties which caused ldconfig to warn about non-symlink libraries
being installed.
2015-11-30 10:46:08 +02:00
1af89298b9
Changes to Galera monitoring logic and tidying up following code review.
2015-11-24 10:08:07 +00:00
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
95e143a146
Remove references to monitor_common is cmake file for monitors.
2015-11-19 16:36:02 +00:00
e7a30a7944
Overhaul monitor_common functions and move into monitor.c
2015-11-19 15:40:43 +00:00
86db0f8754
Fixed event names being truncated
...
A buffer was allocated for strlen(event) characters leading to the
name always being truncated by one character. The use of a buffer was
unnecessary and was fixed by using the mon_get_event_name function directly.
2015-11-18 04:35:03 +02:00
1b21cd8609
Fixed extra )) in mmmon.
2015-11-17 14:09:44 +02:00
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
5d4fe65b19
Fixed some misaligned brackets.
2015-11-16 21:00:22 +02:00
6846b0b6b6
Mmmon formatting changes
...
Fixed indentation, bracket alignment and other minor things.
2015-11-16 20:56:39 +02:00
797d9dc03d
Ndbclustermon formatting changes
...
Fixed indentation, bracket alignment and other minor things.
2015-11-16 20:56:39 +02:00
a7e2bf09c8
Cleaned up monitor headers
...
Formatted all monitor headers according to the coding style.
2015-11-16 14:00:22 +02:00
b22d40b06b
Fixed PCRE2 beng built when CMake is configured
...
The bundled PCRE2 library will be built as a separate target and configuring
CMake no longer builds it. Instead, it will only be built when it is out of date.
This requires all targets to declare that they depend on the pcre2 target in
order for it to be built.
2015-11-16 13:59:47 +02:00
f9c99761d6
Monitor_common formatting changes
...
Cleaned up monitor_common.c and monitor_common.h
2015-11-16 13:59:47 +02:00
6dea82631d
Galeramon formatting changes
...
Fixed indentation, bracket alignment and other minor things.
2015-11-16 13:59:47 +02:00
f3a4bedbf5
Mysqlmon formatting changes
...
Fixed indentation, bracket alignment and other minor things.
2015-11-16 13:59:47 +02:00
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
6b88b6b17f
Merge branch 'develop' into MXS-329-develop-20151111
2015-11-13 07:48:59 +02:00
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
2d600868f5
Added argument substitution to monitor scripts
2015-11-11 21:19:07 +02:00
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
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
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
3187f2c3f8
Updated code based on review of 9a04984
2015-10-31 10:34:37 +02:00
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
91bb3b288c
Moved common monitor code to monitor_common.c
2015-10-26 17:31:19 +02:00
2b958bad94
Added detection of connection timeout when monitors connect to backend servers.
2015-10-26 17:30:34 +02:00
6040f11070
Include DCB headers to remove warnings.
2015-10-17 20:06:37 +01:00
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
6ad89cb986
Removed boolean value assignment to an integer variable.
2015-09-16 13:36:33 +03:00
6c75e09f29
Fixed multi-source replication not working.
2015-09-16 11:54:56 +03:00
3b0b740e47
Fixed monitor scripts and added extra logging.
2015-09-11 18:49:20 +03:00
3e863863dd
Fixes to Coverity defects.
2015-08-26 09:35:10 +03:00
c001e030af
Fixed available_when_donor not working properly.
2015-08-20 20:33:46 +03:00
a74ed87d07
Removed redundant linking of the utils library.
2015-08-10 10:40:00 +03:00
ba32596603
Fixed MM monitor segfault on crash.
2015-08-07 14:00:55 +03:00
edd2688e71
Fix memory leak in MySQL monitor.
2015-07-19 16:54:13 +01:00
b756690123
Merge branch 'release-1.2' into develop
2015-07-15 11:38:27 +03:00
96edaca90c
Disabled C99.
2015-07-14 12:14:01 +03:00
19fe7127d5
Added galeramon server priorities.
2015-07-13 14:39:04 +03:00
2580738509
Merge branch 'develop' into priority_galeramon
2015-07-07 20:45:54 +03:00
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
c8173ec4f7
Added missing return value.
2015-07-02 10:00:38 +03:00
2b0f0b89ab
Added master server id to mysql 5.1 monitoring.
2015-07-01 19:13:03 +03:00
8a0b399896
Added code for MySQL 5.1 replication detection.
2015-06-30 21:37:29 +03:00
6f343ff57b
Fix to MXS-227: https://mariadb.atlassian.net/browse/MXS-227
...
Fixed memory leak.
2015-06-29 19:17:12 +03:00
0062d9d2b7
Version errors for SHOW SLAVE STATUS now only print once.
2015-06-29 10:24:16 +03:00