1200 Commits

Author SHA1 Message Date
Mark Riddoch
52d4b8590a Create the depend.mk to enable the build to work for a fresh checkout 2014-07-01 10:49:24 +01:00
MassimilianoPinto
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
MassimilianoPinto
37eaf7b455 Replication Lag default is now -2
Replication Lag default is now -2

-1 will be used for no information available from slaves
2014-07-01 10:21:24 +02:00
Mark Riddoch
34846a8b5a Delete depend.mk
This is a generated file and should not have been committed. The contents depend on the Linux distribution. Committing on one distribution will break another.
2014-07-01 09:17:15 +01:00
Mark Riddoch
c69df02e64 Merge pull request #8 from skysql/MAX-94
Max 94
2014-07-01 08:18:09 +01:00
Timofey Turenko
932548d3f5 set x permission to /etc/init.d/maxscale 2014-07-01 03:41:04 +03:00
VilhoRaatikka
3b6b33b7dd Modified refreshInstance to support max_slave_replication_lag. 2014-06-30 22:50:31 +03:00
VilhoRaatikka
57a977bdc0 Merge branch 'develop' of https://github.com/skysql/MaxScale into develop 2014-06-30 22:38:15 +03:00
VilhoRaatikka
b875936a21 MAX-94, Added configuration parameter, max_slave_replication_lag=<longest allowed replication lag in seconds> to router section.
Parameter can be changed runtime but it requires reloading of config.
2014-06-30 22:35:27 +03:00
MassimilianoPinto
439cedc800 Fixed num servers counter
Fixed num servers counter
2014-06-30 19:33:30 +02:00
MassimilianoPinto
dd54dde4ef fix for root master NULL pinter
fix for  root master NULL pinter
2014-06-30 19:09:50 +02:00
MassimilianoPinto
f5e6f99ba7 Added failure in start() for not running process
Added failure in start() for not running process
2014-06-30 18:31:09 +02:00
Mark Riddoch
787483f71c Merge branch 'develop' into MAX-90 2014-06-30 16:20:11 +01:00
Mark Riddoch
6bc20f765a Merge pull request #7 from skysql/MAX-167
Max 167
2014-06-30 16:18:27 +01:00
Mark Riddoch
6c1960e53b Increase accuracy of percentages for connection distribution. 2014-06-30 16:16:27 +01:00
MassimilianoPinto
d40711f219 failure message in start, for any error
failure message in start, for any error
2014-06-30 17:04:26 +02:00
VilhoRaatikka
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
VilhoRaatikka
6d672cb967 Added status bit BREF_QUERY_ACTIVE to indicate if a query, other than session command, sent to backend for execution. The flag is cleared when the first packet belonging to the response arrives.
The flag is part of the active operation counting, which is utilized in load balancing. The active operation count per backend is used by default as criteria when router chooses to which backend a query should be routed.
2014-06-30 13:44:34 +03:00
VilhoRaatikka
3e3c1af211 Clean up 2014-06-30 13:43:25 +03:00
VilhoRaatikka
862d504a74 Enabled set and clear the flag BREF_WAITING_RESULT. It is actually a counter which is modified with atomic operations only. Setting and clearing BREF_WAITING_RESULT also includes atomic increment and decrement of corresponding backend server's current operations counter, backend_server->stats.n_current_ops. 2014-06-30 11:00:04 +03:00
MassimilianoPinto
aa828e8751 Added missing comment to get_root_master
Added missing comment to get_root_master
2014-06-30 09:00:43 +02:00
VilhoRaatikka
fcf67716fd Added mechanism for choosing slave for a query based on the current load in all connected slaves. Counting operations is not correctly done here. Reading values and choosing accordingly is done.
Fixed several things in session command reply processing.
2014-06-29 22:21:30 +03:00
MassimilianoPinto
0743177fbd Fixed reload with -HUP
Fixed reload with -HUP and added _TERM (that is default anyway)
2014-06-29 18:37:05 +02:00
MassimilianoPinto
4b0d66f66a Added default MAXSCALE_BASEDIR
Added default /usr/local/skysql/maxscale for MAXSCALE_BASEDIR
2014-06-29 17:57:06 +02:00
MassimilianoPinto
ee582bf2b2 write MaxScale PID into pidfile
write MaxScale PID into pidfile
2014-06-29 17:53:25 +02:00
MassimilianoPinto
3b14c780ad LSB version of maxscale init script
LSB version of maxscale init script
2014-06-29 15:40:30 +02:00
MassimilianoPinto
fc68996701 First implementation LSB compatibility
First implementation LSB compatibility
2014-06-28 23:05:45 +02:00
MassimilianoPinto
4f47f09207 maxscale start script
maxscale start script
2014-06-28 18:09:36 +02:00
Mark Riddoch
25cc7452c0 Merge branch 'develop' of github.com:skysql/MaxScale into develop 2014-06-27 18:47:38 +01:00
Mark Riddoch
621608d306 Updated documentation 2014-06-27 18:47:20 +01:00
MassimilianoPinto
32526d31b6 code cleanup
code cleanup
2014-06-27 18:14:46 +02:00
MassimilianoPinto
5cbc7b9f7d root server IN_MAINT returns NULL to caller
the replication tree returns NULL if the root server is maintenance mode
2014-06-27 17:55:46 +02:00
MassimilianoPinto
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
Mark Riddoch
a25b757134 Merge branch 'develop' into MAX-90
Conflicts:
	server/core/server.c
	server/include/server.h
	server/modules/routing/readconnroute.c
2014-06-27 16:04:39 +01:00
Mark Riddoch
ce2d20b70c Fixed printf format 2014-06-27 15:52:57 +01:00
MassimilianoPinto
3e83174cd8 Log messages updated for Replication heartbeat
Log messages updated for Replication heartbeat
2014-06-27 15:10:25 +02:00
MassimilianoPinto
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
MassimilianoPinto
96b6454e13 fix compile warnings
fix compile warnings
2014-06-27 14:11:57 +02:00
MassimilianoPinto
875b464c22 pending_status added to MONITOR_SERVERS
pending_status added to MONITOR_SERVERS
2014-06-27 14:04:02 +02:00
MassimilianoPinto
380f5b6bf3 Merge branch 'develop' into MAX-59 2014-06-27 13:58:12 +02:00
MassimilianoPinto
4f12e123c5 Removed SERVER parameter from dcb_call_foreach
Removed SERVER parameter from dcb_call_foreach
2014-06-27 13:51:40 +02:00
Timofey Turenko
475e408551 remove tmporal files from debian dir 2014-06-27 14:45:55 +03:00
Timofey Turenko
c2b20eab84 add debian files 2014-06-27 14:44:55 +03:00
MassimilianoPinto
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
Mark Riddoch
eee2ad7143 Merge branch 'develop' into MAX-90
Conflicts:
	server/core/service.c
2014-06-27 12:15:30 +01:00
Mark Riddoch
25d4f784bc Implementation of server routing generic functionality and for readconnrouter 2014-06-27 12:07:47 +01:00
MassimilianoPinto
237bacd131 Merge branch 'develop' into MAX-59 2014-06-27 11:07:55 +02:00
Mark Riddoch
de5d4fda8b Merge of new user interface changes 2014-06-27 09:57:39 +01:00
Mark Riddoch
c824e9fad6 Merge branch 'develop' into MAX-111 2014-06-27 09:52:00 +01:00
Mark Riddoch
7cdef05710 Fix issue with OK being split across multiple reads 2014-06-27 09:27:43 +01:00