Esa Korhonen
dadb6a1a79
MXS-2271 All monitors inherit from MXS_MONITOR
...
Most of the API entrypoints are replaced with virtual functions.
2019-01-22 15:59:17 +02:00
Esa Korhonen
3125d1babf
MXS-2271 Convert MXS_MONITOR and MXS_MONITORED_SERVER to classes
...
First step in monitor refactoring and cleanup.
2019-01-17 17:43:54 +02:00
Esa Korhonen
40485d746c
MXS-2220 Change server name to constant string
2019-01-03 12:13:15 +02:00
Esa Korhonen
2b0eac2cd0
Move server disk space threshold setting to private Server-class
...
The setting can be read and written simultaneously and is protected with
a mutex.
The public SERVER-class is now abstract.
2018-12-14 10:18:14 +02:00
Esa Korhonen
5d4775cac1
MXS-2168 Update test_cycle_find
...
The test now uses both server id:s and hostname:port combinations.
2018-11-21 10:40:21 +02:00
Esa Korhonen
90da3a4d90
Remove MXS_MONITORED_SERVER mapping from MariaDBMon
...
The mapping was rarely used.
2018-11-21 10:30:11 +02:00
Esa Korhonen
68d65682b5
Reorganize MariaDBServer code
...
The server-class keeps growing, so the additional classes are moved out of
the main class file.
2018-10-09 14:29:49 +03:00
Markus Mäkelä
71ffef5708
Partially revert 4ba011266843857bbd3201e5b925a47e88e1808f
...
Add back leading operator enforcement.
2018-09-20 15:57:30 +03:00
Esa Korhonen
eeb61216de
Add MariaDBMonitor Gtid unit test
...
Tests the class with different inputs. Also fixes a bug found by the test.
2018-09-14 17:31:00 +03:00
Johan Wikman
12092d1a90
test_cycle_find.cc: Initialize the log
2018-09-12 14:23:09 +03:00
Markus Mäkelä
d11c78ad80
Format all sources with Uncrustify
...
Formatted all sources and manually tuned some files to make the code look
neater.
2018-09-10 13:22:49 +03:00
Niclas Antti
c447e5cf15
Uncrustify maxscale
...
See script directory for method. The script to run in the top level
MaxScale directory is called maxscale-uncrustify.sh, which uses
another script, list-src, from the same directory (so you need to set
your PATH). The uncrustify version was 0.66.
2018-09-09 22:26:19 +03:00
Esa Korhonen
916b72a733
Clean up loops
...
Changed many of the iterator loops to range loops.
2018-08-22 12:22:45 +03:00
Johan Wikman
3f53eddbde
MXS-2020 Replace ss[_info]_dassert with mxb_assert[_message]
2018-08-22 11:34:59 +03:00
Johan Wikman
3576780f78
MXS-2008 Update gateway and tests to initialize maxbase
...
Update gateway and tests to initialize maxbase using
maxbase::init();
instead of initializing individual components.
2018-08-21 10:02:39 +03:00
Johan Wikman
88f1795412
MXS-2008 Move Worker and MessageQueue to maxbase
2018-08-21 10:02:39 +03:00
Johan Wikman
0afcd4b468
Fix test-program failures
...
Due to recent changes, mxs::MessageQueue::init() must be called
explicitly, if a monitor is created.
2018-06-29 10:43:49 +03:00
Johan Wikman
cc0299aee6
Update change date of 2.3
2018-06-25 10:07:52 +03:00
Esa Korhonen
2f987d0b10
MXS-1845 Only select a master if current master is no longer usable
...
The purpose is to make the selected master server sticky. The master is reselected only
if the current master is no longer a valid master.
2018-06-18 11:06:58 +03:00
Esa Korhonen
de37f1a5c4
Fix cycle find test
2018-06-14 10:28:10 +03:00
Esa Korhonen
3f82c25c62
MXS-1845 New algorithm for finding the master server
...
Not yet used, as more is needed to replace the old code. The
algorithm is based on counting the total number of slave nodes
a server has, possibly in multiple layers and/or cycles.
2018-06-13 17:38:33 +03:00
Esa Korhonen
17c9ac95bd
MXS-1845 Add unit test for the cycle find algorithm (Tarjan SCC)
...
Only a few test cases for now.
2018-06-05 16:33:51 +03:00