9902 Commits

Author SHA1 Message Date
Markus Mäkelä
5941f9d3b3
Silence debugging commands
If verbose mode is not enabled, the exact commands don't need to be
printed.
2018-02-14 14:47:03 +02:00
Markus Mäkelä
3b2ec4ab5a
Change references from MySQL to MariaDB
A few were missed when the renaming was done. Also renamed the file to
mariadbmon.cc.
2018-02-14 14:47:03 +02:00
Johan Wikman
558fdc1875 MXS-1644 Do not refresh users if max connections is reached
According to MXS-1644 the refreshing of users may cause a crash.
In that particular case, the refreshing is triggered by the
authentication failing due to the user having hit the
'max_user_connection' limit of the server.

That is, refreshing the users in the situation is never going to
change the end-result. With this change, the users will not be
refreshed in that case and hopefully the crash will be avoided.

Note that this is something of a workaround as the crash could not
be repeated and the refreshing of the users should obviously not
ever cause MaxScale to crash.
2018-02-14 13:50:29 +02:00
Markus Mäkelä
f3a77f228c
Update 2.2 upgrading document and release notes
Listed changes to MaxCtrl and the CDC connnector to release notes. Added a
note into the upgrade document about the beta versions of the MaxCtrl
client.
2018-02-13 16:26:27 +02:00
Markus Mäkelä
a6a73f8c29
MXS-1537: Move CDC Connector documentation
Placed the CDC Connector documentation in the main documentation directory
under the Connector directory. Added a link into the
Documentation-Contents.md document.
2018-02-13 16:26:27 +02:00
Markus Mäkelä
3f0ce53ae3
Remove dead links
The documents they point to don't exist.
2018-02-13 16:26:27 +02:00
Johan Wikman
f6c8358597 Update release notes 2018-02-13 15:20:53 +02:00
Markus Mäkelä
5716f0b210
Add support for self-signed certificates to MaxCtrl
MaxCtrl now supports explicit paths for certificates and optional server
certificate verification. This allows testing by using a self-signed
certificate with the server certificate verification turned off.
2018-02-13 14:54:32 +02:00
Markus Mäkelä
8e4c6a9eee
Use HTTPS also for pings
If HTTPS requests are used, the pings should also be done with HTTPS.
2018-02-13 12:55:34 +02:00
Markus Mäkelä
2e920af845
Change expected result of mysqlmon_rejoin_bad2
Instead of the current master rejoining to the diverged master, the
current master should remain as the master server. This behavior should be
explained by the extra GTID event injected by the failover process.
2018-02-13 11:35:13 +02:00
Markus Mäkelä
45ad6f943f
Validate master data inside transaction
The insertion and subsequent read of the data into the master in
`generate_traffic_and_check` will now be done inside a transaction. This
keeps the behavior consistent with the `check` function that only inserts
one row.
2018-02-13 11:35:12 +02:00
Johan Wikman
049606de15 Remove document on HA with Corosync/Pacemaker 2018-02-13 11:13:55 +02:00
Johan Wikman
35402557d7 In the documentation, state that hintrouter is beta 2018-02-13 08:43:46 +02:00
Johan Wikman
b468f2f639 Check for failover turned off if failover stress tests fails
If there are no masters at the end of the test, it suggests the
auto failover has been turned off. Check that.
2018-02-12 16:30:43 +02:00
Markus Mäkelä
062da5c956
Remove master count assertion in mysqlmon_failover_stress
The assertion can be triggered if failover has failed. This is expected
behavior if the master has executed events that the slaves haven't
received.
2018-02-12 16:01:07 +02:00
Timofey Turenko
f7857518f3
Mxs 1140 keepalived (#166)
add keepalived test
2018-02-12 15:49:07 +02:00
Esa Korhonen
ba821d0aff Add mention of external master to 2.2.2 release notes 2018-02-12 14:59:00 +02:00
Johan Wikman
f388e2f838 Merge branch '2.2' into develop 2018-02-12 14:00:40 +02:00
Johan Wikman
5c10d0ae92 Merge branch '2.1' into 2.2 2018-02-12 14:00:08 +02:00
Johan Wikman
cd1604f915 Merge branch '2.0' into 2.1 2018-02-12 13:44:51 +02:00
Johan Wikman
9b03cf46d1 qc_sqlite and qc_mysqlembedded marked as GA 2018-02-12 13:40:26 +02:00
Johan Wikman
3310af1dd9 Remove 2.1.14 release notes from 2.2 2018-02-12 13:34:54 +02:00
Johan Wikman
7ce0de3e18 Update 2.2.2 Release notes 2018-02-12 13:34:54 +02:00
Markus Mäkelä
d93907d6a8
Increase timeouts for slave synchronization
It is possible that replication is severely lagging when slaves are being
synchronized. This means that a timeout of 120 seconds might not be
enough.
2018-02-12 13:31:10 +02:00
Markus Mäkelä
eab4ec1768
Add component specific package descriptions
The package descriptions, summaries and licenses now use a generic
mechanism. This makes it easier to add new components that only include
small parts or use a different license.

Also updated the descriptions, the license versions and package summaries
for the main packages.
2018-02-12 13:31:10 +02:00
Markus Mäkelä
f252f25624
Move the CDC Connector into its own package
The connector is now in its own package to make its installation easier.
2018-02-12 13:31:10 +02:00
Esa Korhonen
b94f3b8792 Failover: do not check cluster stabilization if no slaves
Caused debug assert.
2018-02-12 12:37:41 +02:00
Markus Mäkelä
57b0f69ca2
Fix CentOS 6 build failure
CentOS 6 requires __STDC_LIMIT_MACROS to be defined before <stdint.h> is
included to expose INT32_MAX and others.
2018-02-12 11:51:39 +02:00
Esa Korhonen
b8d3da4968 Add error tolerance to "servers_no_promotion"
Previously, if the list contained servers that were not monitored by
the monitor yet were valid servers, an error value would be returned
and the monitor failed to start.

With this update, the non-monitored servers are simply ignored when
forming the final list.

Also, added printing of the list to diagnostics.
2018-02-12 10:49:28 +02:00
Esa Korhonen
faaf43ff39 Add gtid to monitor diagnostics, clean up formatting
Gtid:s are now queried every monitor loop.

dignostics() no longer prints slave related info if the server has
no slave connection.
2018-02-10 12:32:56 +02:00
Esa Korhonen
eeb3fa65ae Add description on external master support to documentation 2018-02-10 12:26:47 +02:00
Esa Korhonen
2bd1d4ab88 Documentation: add note on switchover command and log_slave_updates 2018-02-10 12:26:47 +02:00
Johan Wikman
e346968e0e Merge branch '2.1' into 2.2 2018-02-10 08:28:11 +02:00
Timofey Turenko
4714ca7b32 fix tables in README.md 2018-02-09 21:58:10 +02:00
Timofey Turenko
41935fb6d3 add README.md for mdbci operations 2018-02-09 21:58:10 +02:00
Timofey Turenko
2a93cfac8c fix big and big15 templates 2018-02-09 21:58:10 +02:00
Timofey Turenko
a6c97bea2a Update README.md 2018-02-09 21:58:10 +02:00
Timofey Turenko
bdac232811 Update README.md 2018-02-09 21:58:10 +02:00
Timofey Turenko
b1ba30a21e Fix relative links in the README 2018-02-09 21:58:10 +02:00
Timofey Turenko
19b6de6192 Fix README syntax 2018-02-09 21:58:10 +02:00
Timofey Turenko
c7d73f2869 Add README for mdbci build scripts 2018-02-09 21:58:10 +02:00
Johan Wikman
b4760c5bbe MXS-1661 Introduce 'users_refresh_time'
It is now possible to explicitly specify how frequently MaxScale
may refresh the users of a service.
2018-02-09 13:33:17 +02:00
Johan Wikman
ae160f3ff2 MXS-1661 Now only the time affects the reloading of users
Now the users will be reloaded at most once during each
USERS_REFRESH_TIME period. Earlier they could be reloaded at
at most USERS_REFRESH_MAX_PER_TIME times, which in practice meant
that with repeated unauthorized login attempts they were reloaded
N times in rapid succession, without the situation being likely to
change in between.
2018-02-09 13:33:17 +02:00
Johan Wikman
b23ad6d2ef MXS-1661 Turn error into warning and suppress logging
The error regarding the refresh rate having been exceeded

    error: [RWSplit] Refresh rate limit exceeded ...

has been turned into a warning. Further, the warning will be
logged at most once per refresh period that currently is 30s.
2018-02-09 13:33:17 +02:00
Johan Wikman
816983691a MXS-1660 Turn client hostname lookup failure into a warning
This is used only in case of everything else fails and this lookup
is not unlikely to fail if the client comes from some machine on
an internal network.
2018-02-09 12:03:13 +02:00
Markus Mäkelä
83ce603e3e
Fix CentOS 6 build failure
The __sync load builtins do not work with pointers to constant variables.
2018-02-09 09:19:46 +02:00
Esa Korhonen
a0d9c7da74 External master server support for failover/switchover
If the master is replicating from an external master, the monitor will save the
host:port of the external server. During demotion, the old master stops the external
replication while the new master begins it. Also, any commands that would add
to gtid have to be omitted when an external master is in play.
2018-02-08 18:44:08 +02:00
Johan Wikman
fcde23e6fe Merge branch '2.2' into develop 2018-02-08 18:40:29 +02:00
Johan Wikman
5a33a5a013 Merge branch '2.1' into 2.2 2018-02-08 18:39:45 +02:00
Johan Wikman
716f39bc8b local_address: Add directories to path 2018-02-08 18:31:23 +02:00