169 Commits

Author SHA1 Message Date
Markus Makela
9209c812ba Updates to refactoring of the monitors. 2015-03-11 10:40:53 +02:00
Markus Makela
8d8b91d1a5 Merge branch 'develop' into monitor_refactoring 2015-03-11 07:13:01 +02:00
Markus Makela
2c31666efa Added a configurable frequecy for the feedback task. 2015-03-11 06:51:55 +02:00
Markus Makela
fbedad84af Fixes to Coverity defects. 2015-03-10 17:08:04 +02:00
Markus Makela
c0d2a12990 First step to refactoring monitors. 2015-03-10 12:24:23 +02:00
MassimilianoPinto
65465b11f5 Fix possible NULL to atoi
Fix possible NULL to atoi
2015-03-09 18:19:25 +01:00
MassimilianoPinto
7af2843bcb Notification Service integration added
Notification Service integration added
2015-03-09 18:06:16 +01:00
MassimilianoPinto
59245b50dd Fixed compiler warning
Fixed compiler warning
2015-03-09 17:49:15 +01:00
Markus Makela
e5283397e7 Merge branch 'MAX-348' of https://github.com/mariadb-corporation/MaxScale into MAX-348 2015-03-09 14:19:10 +02:00
Markus Makela
02e742f29e Added unit test for feedback service. 2015-03-09 14:17:40 +02:00
MassimilianoPinto
af388a26b6 Feedback report frequency set to 1800 seconds
Feedback report frequency set to 1800 seconds
2015-03-09 11:05:48 +01:00
MassimilianoPinto
6a64457255 Fix compiler warning
Fix compiler warning
2015-03-09 09:21:59 +01:00
MassimilianoPinto
e952db0ee9 Notification server integration
Notification server integration: added proper logging to errors

Added “enable/disable feedback” via maxadmin/telnet
2015-03-05 18:58:07 +01:00
MassimilianoPinto
698af9d3b7 Send modules list into to Notification server
Send modules list into to Notification server

TODO: remove fprintf  in module_feedback_send and use log manager
instead
2015-03-05 13:20:22 +01:00
Markus Makela
880adca73e Merge branch 'develop' into MAX-324 2015-03-05 10:45:48 +02:00
Markus Makela
0dd63ceaf1 Added release version string function to config.c 2015-03-04 18:48:38 +02:00
MassimilianoPinto
7427afeb65 Added configuration parameters
Added configuration parameters and feedback_setup_info creation
2015-03-03 10:25:44 +01:00
MassimilianoPinto
64c0b7b041 Notification service support
Notification service support
2015-03-02 17:15:31 +01:00
Markus Makela
ad49c5f402 Added optional millisecond precision to logfiles and created the changelog document. 2015-02-24 18:10:16 +02:00
Markus Makela
3b29e1a1f0 Fixed merging conflicts. 2015-02-24 06:34:22 +02:00
Markus Makela
9e7afeb302 Merge branch 'develop' into MAX-324
Conflicts:
	macros.cmake
	server/core/config.c
	server/core/service.c
	server/modules/routing/CMakeLists.txt
2015-02-24 06:26:55 +02:00
Markus Makela
5477cdf5eb Renamed the dbshard module to schemarouter. 2015-02-24 05:49:38 +02:00
Markus Makela
c47d2f3791 Added session timeouts.
The parameter 'connection_timeout' for services takes a value as seconds.
All sessions that have been idle for longer than this will be disconnected.
2015-02-20 22:16:43 +02:00
Markus Makela
fc969acc73 Added optional stripping of escape characters from database names when laoding users. 2015-02-20 21:07:12 +02:00
Markus Makela
ea55572ab8 Merge branch 'develop' into MAX-324 2015-02-20 04:45:48 +02:00
Markus Makela
65e2572ad0 Made config_truth_value non-static. 2015-02-18 13:16:06 +02:00
Markus Makela
03456b931b Added "yes" and "no" to the config truth value check and added the function to the header. 2015-02-18 11:45:01 +02:00
Markus Makela
46ec9abe29 Added optional parameters for services that allow all servers to be used when building the list of users. 2015-02-09 07:19:13 +02:00
Markus Makela
8791cc455e Added the initial implementation of the shardrouter module. 2015-01-23 06:40:30 +02:00
Markus Makela
fed828eb29 Merge branch 'release-1.0GA' into MAX-324
Conflicts:
	server/MaxScale_template.cnf
	server/core/service.c
2015-01-06 04:45:30 +02:00
VilhoRaatikka
f861d67b7f Removed all references to use_sql_variables_in variable where it is used in dbshard.
Commented out dead code.
Fixed some indentations.
2014-12-16 14:14:57 +02:00
VilhoRaatikka
69e131e9c4 Merge branch 'MAX-324' of https://github.com/mariadb-corporation/MaxScale into MAX-324 2014-12-15 22:10:36 +02:00
VilhoRaatikka
7fed679f40 poll.c:poll_add_event_to_dcb did not increase the pollStats.evq_pending counter which caused it to go negative, which, inturn caused all threads to spinloop with minimal timeout. 2014-12-15 22:09:23 +02:00
Markus Makela
319b9150dc Fixed missing ignore_databases causing a false warning. 2014-12-15 16:24:18 +02:00
Markus Makela
a91845b324 Re-enabled the ignore list, it uses the parameter 'ignore databases=<list of db names>'.
Added routing of trivial queries and ignored databases to the first available backend.
2014-12-13 07:47:46 +02:00
Markus Makela
2a623c6ec3 Fixed a typo in config.c 2014-12-10 18:05:58 +02:00
VilhoRaatikka
bc104c0ef1 Merge branch 'release-1.0GA' into MAX-324 2014-12-08 22:37:15 +02:00
VilhoRaatikka
4c1ed65617 Added dbshard template to MaxScale_template.cnf
Added NULL-check to createInstance to avoid NULL-pointer reference if user/pwd is missing from config.
Removed unnecessary code, added error messages, fixed intendation.
2014-12-07 23:34:47 +02:00
Mark Riddoch
1e5bc37780 Use strtok_r rather than strtok 2014-12-03 09:33:55 +00:00
Mark Riddoch
d3c8770852 Merge branch 'blr' into develop
Conflicts:
	client/maxadmin.c
	server/core/CMakeLists.txt
	server/core/dcb.c
	server/core/gateway.c
	server/core/poll.c
	server/core/test/CMakeLists.txt
	server/core/test/makefile
	server/include/poll.h
	server/modules/routing/debugcmd.c
2014-11-19 12:00:55 +00:00
VilhoRaatikka
fd11e6a7f5 Session-specific logging. Added functions
void session_enable_log(SESSION* ses, logfile_id_t id)
and
void session_disable_log(SESSION* ses, logfile_id_t id)

Which switch specific log type on/off if the log type in question is not generally enabled.

Each thread carries a thread-specific struct log_info_t which includes members for current session id and bitfield for enabled log types for the current session. That information is checked before actual log write functions are called.

Each file where session-specific logging is used, must include the following exports:

/** Defined in log_manager.cc */
extern int            lm_enabled_logfiles_bitmask;
extern size_t         log_ses_count[];
extern __thread log_info_t tls_log_info;
2014-11-19 00:08:59 +02:00
Markus Makela
9cb2be9605 Fixes to Coverity erros 75748 and 76132. 2014-11-11 13:42:12 +02:00
MassimilianoPinto
39cc701b0d Branch update
Branch update
2014-11-07 16:59:01 +01:00
MassimilianoPinto
3b982ae820 Added monitor timeouts for connect/read/write
Added monitor timeouts for connect/read/write
2014-11-07 16:45:06 +01:00
Markus Makela
a4caac55c8 Fixes to Coverity errors:
72662
72702
72724
73397
73410
73414
73422
75424
75748
75789
75938
75939

Also includes a fix to a bug caused by a previous Coverity error change in canonizer.c
2014-11-07 11:52:40 +02:00
Markus Makela
474f018cee Fixes to minor Coverity errors:
75424
73422
72724
72702
72662
2014-11-07 11:12:26 +02:00
Markus Makela
17f87e29af Fixes to some Coverity issues. 2014-11-05 11:57:42 +02:00
MassimilianoPinto
6f22975e6c Added 'disable_master_failback' monitor option
Added 'disable_master_failback' option in Galera monitor
2014-10-30 19:03:07 +01:00
Mark Riddoch
e729a17fd4 Addition of new tuning parameters for epoll spins and wait time 2014-10-17 12:28:27 +01:00
Mark Riddoch
4acd85cf82 Add missing trim() call to the server list code for monitors 2014-10-15 13:26:00 +01:00