Commit Graph

225 Commits

Author SHA1 Message Date
2e5bfc14f2 Introduce skeleton plugin process.
For external parsing there will be a separate process that handles
parse requests sent from MaxScale. From MaxScale's perspective there
will just be a specific query classifier plugin that upon startup
launches that external process and manages its lifetime. That is,
MaxScale proper will be completely oblivious of this arrangement.

The skeleton process introduced here does nothing; just sits in
a loop sleeping. The skeleton query classifier plugin currently
loads the MySQL embedded query classifier and performs parsing
using it. That way the external process based query classifier can
immediately be used.

Next step is to introduce process management into the picture without
actually moving the parsing anywhere.
2016-02-11 09:05:37 +02:00
adbc2074de Remove log_manager as a separate component.
Log_manager files are now in server/core and the log manager test
files in server/core/test. The directory log_manager is removed.
2016-02-09 11:17:31 +02:00
4a4f22c9a7 Make query_classifier part of core.
The query classifier interface is now built as an integral
part of MaxScale core.
2016-02-08 11:44:07 +02:00
2f65c3a7b8 MariaDB Connector C is build from source if it is not found on the system
The FindMariaDBConnector.cmake file now checks if the found library actually is
the MariaDB Connector-C library. If the found library is not the MariaDB
Connector-C, it will be built from source.
2016-02-03 11:35:01 +02:00
081bacdc64 Switched to MySQL client library headers for MaxScale
The include directories previously used by MaxScale were from the embedded
library. All parts of MaxScale apart from the query classifier now use
the client libraries.
2016-02-02 14:04:59 +02:00
7e36e1cbb1 Link against Connector-C.
Now, qc_mysqlembedded is linked against MySQL's embedded library,
and MaxScale itself against Connector-C.

So, in order to build MaxScale, Connector-C must be installed.
This has been tested with Connector-C 2.2.1.

The build variable MYSQLCLIENT_LIBRARIES is no longer used.
2016-01-29 16:50:31 +02:00
1f241a5ed1 Rearrange libraries and build files.
This is the first change in an attempt to arrange the linking so that
more errors are detected at link-time.

- All files in server/core but for gateway.c are linked to one shared
  library called maxscale-common.
- The files log_manager/log_manager.cc and utils/skygw_utils.cc are
  built into maxscale-common as well.
- MaxScale itself consists now only of gateway.c and is linked with
  maxscale-common.
- All plugins link with maxscale-common.
- All executables link in addition with {EMBEDDED_LIB}.

After this change, the change (MXS-517) where query_classifier is the
only component that uses ${EMBEDDED_LIB} and the rest mysqlclient can
be made much cleaner.

After a few additional steps, all shared libraries can be linked with
the linker flags "-Wl,-z,defs", which directs the linker to resolve
all symbols. That will require that all shared libraries list all the
libraries they need, but will at the same time ensure that any
missing symbols are detected at link-time and not at run-time.
2016-01-22 23:26:17 +02:00
443bbe73d2 Mqfilter is built if possible
The mqfilter was not built by default even though it should have been. This has
been fixed but the filter is built only if librabbitmq is found. This was done
to avoid having the librabbitmq and its development headers as a hard
dependency.
2015-11-26 09:28:27 +02:00
b22d40b06b Fixed PCRE2 beng built when CMake is configured
The bundled PCRE2 library will be built as a separate target and configuring
CMake no longer builds it. Instead, it will only be built when it is out of date.
This requires all targets to declare that they depend on the pcre2 target in
order for it to be built.
2015-11-16 13:59:47 +02:00
ee29e85016 Added bundled PCRE2 library. 2015-10-27 09:24:34 +02:00
fcb13760fb Warnings treated as errors.
With all current warnings removed, warnings can now be treated as errors.
2015-09-28 10:27:43 +03:00
df65ea0386 Fix to MXS-303: https://mariadb.atlassian.net/browse/MXS-303
Fixed package names.
2015-09-25 16:15:07 +03:00
490d9b3782 Fixed installation problems. 2015-09-25 16:15:07 +03:00
5864171207 Renamed 1.1.1 to 1.2.0 upgrading document to Upgrading-To-MaxScale-1.2.md 2015-09-25 13:19:53 +03:00
1bf8853046 Fix to MXS-339: https://mariadb.atlassian.net/browse/MXS-339
Renamed maxscale.cnf to maxscale.cnf.template
2015-09-09 13:21:54 +03:00
b44b59c9cd Fixed Git use in CMake. 2015-09-03 19:38:56 +03:00
28a6ea90c0 Added more details to log output when MaxScale receives a fatal signal. 2015-09-01 10:11:20 +03:00
ccfa0c37c9 Added missing options to testcore invocation. 2015-08-14 11:58:08 +03:00
0ece773ea0 Fix to MXS-305: https://mariadb.atlassian.net/browse/MXS-305
Added destdir option to CPack.
2015-08-13 00:52:02 +03:00
7cfb83554f Fixed upgrading text instructions. 2015-08-10 11:51:05 +03:00
53a2dfcea7 Merge branch 'release-1.2' of https://github.com/mariadb-corporation/MaxScale into release-1.2
Conflicts:
	cmake/package_rpm.cmake
2015-07-13 13:04:06 +03:00
38b5166543 fixed double definition of CMake variables. 2015-07-13 13:03:15 +03:00
8400cbf436 Merge pull request #87 from mariadb-corporation/MXS-261
Add architecture and distro name to package name
2015-07-13 12:58:10 +03:00
05fad56853 Fixed DEB packages not being build if both rpmbuild and dpkg-buildpackage are found. 2015-07-13 12:50:48 +03:00
ff3c9b94cb Add architecture and distro name to package name 2015-07-13 09:11:38 +03:00
b0e98bc420 Added template cnf file to /etc and renamed folders. 2015-07-09 14:41:23 +03:00
2c3c856ea1 Added option for C99 builds. 2015-06-29 16:01:56 +03:00
13fb88ea07 Added optional code for older OpenSSL library versions. 2015-06-24 11:29:43 +03:00
d5e94d5df6 Merge branch 'MXS-179' into develop 2015-06-18 15:11:51 +03:00
fd42395d00 Removed mandb call from postinstall script and added cmake messages about systemd service file installation. 2015-06-18 08:17:02 +03:00
a562eb7cee Merge branch 'develop' into MXS-179
Conflicts:
	CMakeLists.txt
2015-06-15 16:44:01 +03:00
521e1aaf3b Added man page for maxscale. 2015-06-12 02:55:07 +03:00
cba37d2ac3 Generated packages now have debug symbols. 2015-06-04 19:38:33 +03:00
6f58f29494 Added a guide on how to have a HA setup of MaxScale with lsyncd. 2015-06-04 19:14:53 +03:00
b24da2c540 Changed errmsg.sys file to be world executable when installed. This way the maxscale user can read it when the package is installed. 2015-05-28 12:57:14 +03:00
4cbcc4ecb6 Removed old unused cmake variables, updated documentation and fixed testall suite. 2015-05-26 15:12:29 +03:00
5f076b81d4 Merge branch 'install_dir_change' into develop
Conflicts:
	CMakeLists.txt
	Documentation/Tutorials/Administration-Tutorial.md
	log_manager/CMakeLists.txt
	server/core/CMakeLists.txt
	server/core/gateway.c
	server/core/maxkeys.c
	server/core/maxpasswd.c
	server/modules/filter/test/CMakeLists.txt
	server/modules/routing/CMakeLists.txt
2015-05-26 13:34:39 +03:00
e794c0953c Added systemd script installation 2015-05-19 18:17:42 +03:00
08d978ae4a Fixed PROFILING missing from the CMake cache. 2015-05-13 18:30:46 +03:00
fb8359b5ca Fixed missing installation of init.d and ldconfig files. 2015-05-06 12:34:10 +03:00
d545150ceb Fix to MXS-70: https://mariadb.atlassian.net/browse/MXS-70
Added assert information to error log.
2015-05-02 05:51:25 +03:00
416ffea9b7 Changed errmsg.sys installation location to /var/lib/maxscale 2015-04-30 10:37:06 +03:00
5394b4d0fa Changed standard installation directory from /usr/local/mariadb-maxscale to /usr/local. 2015-04-29 05:42:58 +03:00
71531cde3e Updated package installation and started documentation update. 2015-04-28 11:09:49 +03:00
e681d18fdd Split packaging to RPM and DEB cmake files. 2015-04-27 23:11:49 +03:00
bbcecc0db5 Changed all MaxScale.cnf code references to maxscale.cnf 2015-04-27 13:44:36 +03:00
9eeec2e9d3 Added FindJemalloc.cmake 2015-04-27 04:52:29 +03:00
c500d23d04 Moved default file search paths to gwdirs.h which is configured by CMake from gwdirs.h.in. 2015-04-27 04:48:50 +03:00
17a7b2addb Updated more variables. 2015-04-26 20:08:27 +03:00
89b75cb510 Added FindJemalloc.cmake 2015-04-26 11:41:02 +03:00