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
3f0de666ac
Changed the order of linking to resolve some debug build bugs and added the missing parent directory of the MYSQL_DIR into the included directories.
2014-09-20 19:44:30 +03:00
c868fedb87
Fixed missing ${EMBEDDED_LIB} variables and changed to the proper template config file.
2014-09-19 11:41:44 +03:00
41226692ac
Merge branch 'release-1.0beta-refresh' into cmake_build
2014-09-16 12:11:17 +03:00
c8fc5b712b
Merge branch 'hholzgra-hartmut-gitignore' into release-1.0beta-refresh
2014-09-15 13:22:46 +01:00
1f56db310d
Changed variable names to closer match their usage
...
Changed the default values to the same as in makefiles
Added configured versions of maxscale.conf and maxscale init.d script
2014-09-15 14:12:55 +03:00
4c41dea6fb
Merge branch 'release-1.0beta-refresh' into cmake_build
2014-09-15 09:43:24 +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
b3ce971020
initial implementation of the CMake build system
2014-09-11 18:24:41 +03:00
32cd901e5c
New entry point added to all monitors
...
New entry point added to all monitors
2014-09-04 09:27:23 +02:00
63a7ccf520
Merge branch 'MAX-232' into 232-bis
...
Conflicts:
server/core/server.c
server/include/server.h
2014-09-04 09:23:29 +02:00
63d267e5ef
Fix for broken replication
...
Fix for broken replication has been added to mysql_monitor.
Both Slave_IO and Slave_SQL threads must be running in order to assign
the SERVER_SLAVE status but If only Slave_IO is running let’s assign
the master_id to current server and continue building the replication
tree; if no slaves at all the master will be still available.
The “detect_stale_master” option has been added, its default is 0.
If set to 1 the monitor will keep the last detected master even if the
replication setup is completely not working, i.e. both Slave_IO and
Slave_SQL threads are not running: this applies only to the server that
was master before.
After monitor or MaxScale are restarted and the replication is still
stopped or not configured there will be no master because it’s not
possible to compute the replication topology tree.
2014-09-01 11:18:57 +02:00
4a30626974
Merge branch 'Z2' of https://github.com/skysql/MaxScale into Z2
...
Conflicts:
client/Makefile
server/core/buffer.c
server/core/test/makefile
server/include/buffer.h
server/modules/filter/Makefile
server/modules/routing/webserver.c
2014-08-29 16:21:08 +03:00
d355e07e2d
gitignore cleanup
...
* ignore typical backup files created by common editors
* move general ignore rules like "*.o" or "depend.mk" to top level gitignore
* ignore executables and test directories in target dir gitignore
as these are local and there's no general catch-all pattern for them
2014-08-18 09:39:29 +00:00
fb87f68368
consistently use DEL instead of rm in Makefiles
2014-08-17 21:02:24 +00: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
4af2e58c86
Update plugin status to BETA
2014-07-04 09:23:40 +01:00
0dfdc27ea5
revert -l:libmysqld.a to -lmysqld
2014-07-03 11:38:59 +03:00
eb3a8eaab3
L:.a
2014-07-02 16:25:55 +03:00
f379ee3d7a
add -static for lmysqld
2014-07-02 15:52:16 +03:00
d58682d261
Updated Makefile to resolve issue with adding extra MaxScale in the
...
path for a make install command.
2014-07-01 16:53:10 +01:00
ff99cd3c63
no rows for slave heartbeat reset server values
...
no rows for slave heartbeat resets the heartbeat and node_ts in server
struct
2014-07-01 10:36:26 +02:00
439cedc800
Fixed num servers counter
...
Fixed num servers counter
2014-06-30 19:33:30 +02:00
dd54dde4ef
fix for root master NULL pinter
...
fix for root master NULL pinter
2014-06-30 19:09:50 +02:00
0b89245a4b
Merge branch 'develop' into MAX-167
...
Conflicts:
server/modules/monitor/mysql_mon.c
server/modules/routing/readwritesplit/readwritesplit.c
2014-06-30 14:17:00 +03:00
32526d31b6
code cleanup
...
code cleanup
2014-06-27 18:14:46 +02:00
3a299a9ed8
get_replication_tree checks for SERVER_IS_DOWN
...
get_replication_tree checks for SERVER_IS_DOWN, this will produce a
replication tree even with servers in SERVER_IN_MAINT state
2014-06-27 17:16:38 +02:00
3e83174cd8
Log messages updated for Replication heartbeat
...
Log messages updated for Replication heartbeat
2014-06-27 15:10:25 +02:00
111693775b
master_id and node_id are long vars
...
master_id and node_id are long vars
2014-06-27 14:21:12 +02:00
96b6454e13
fix compile warnings
...
fix compile warnings
2014-06-27 14:11:57 +02:00
875b464c22
pending_status added to MONITOR_SERVERS
...
pending_status added to MONITOR_SERVERS
2014-06-27 14:04:02 +02:00
fdcdc064b1
Added server pending states in monitor
...
server pending states are now saved and copied to server status before
monitor thread sleep
2014-06-27 13:38:35 +02:00
20637ee224
Removed unnecessary SERVER pointer from dcb.c:dcb_call_foreach(), changed declaration and call accordingly.
2014-06-27 10:54:11 +03:00
f246219beb
Fix compile errors and warnings
...
Fix compile errors and warnings
2014-06-26 18:20:33 +02:00
8808fd7e47
Some debug messages removed
...
Some debug messages removed
2014-06-26 17:18:53 +02:00
4d2e43a2d9
code cleanup and documentation
...
code cleanup and documentation
2014-06-26 16:56:21 +02:00
d8ac0467de
Added comments for SHOW SLAVE STATUS
...
Added comments for SHOW SLAVE STATUS
2014-06-26 14:14:37 +02:00
c14700fcff
Added documentation to new routines
...
Added documentation to new routines
2014-06-25 10:21:30 +02:00
e1e172fe03
Fixed compile errors
...
Fixed compile errors
2014-06-24 18:37:17 +02:00
f09368924b
Added depth level 0 for each cluster node
...
Added depth level 0 for each cluster node, this way the algorithm for
root master selection will the same as in mysql replication:
the root master is server at lowest replication depth with MASTER bit
set
Here for Galera we assume all the servers are at the same level, that’s
0
2014-06-24 17:58:29 +02:00
584d8867bc
Replication tree is now a routine
...
Replication tree is now a routine
2014-06-24 11:18:59 +02:00
d36100a99f
Replication consistency with replication tree
...
Added replication consistency after replication tree computation
2014-06-23 13:12:26 +02:00
51d47accf7
Added replication consistency routines
...
Added replication consistency routines
2014-06-23 12:56:01 +02:00
2a1688bb3d
get level 0 for the first master
...
get level 0 for the first master
2014-06-18 18:57:09 +02:00
1b6a5efb64
merge from develop
...
merge from develop
2014-06-18 11:51:47 +02:00
b2d7d28b10
fix for slave set with mariadb 10 replication
...
fix for slave set with mariadb 10 replication
2014-06-18 11:46:29 +02:00