
This commit is only to introduce new logging macros. The current implementation is such that a statement like: MAXSCALE_NOTICE("Refreshing configuration following SIGHUP\n"); is equivalent with LOGIF(LM, (skygw_log_write( LOGFILE_MESSAGE, "Refreshing configuration following SIGHUP\n"))); The actual implementation will later be changed as the logging mechanism itself is changed. The names of the macros are now according to the levels of syslog and currently the mapping is like: MAXSCALE_ERROR (Syslog LOG_ERR) -> LOGFILE_ERROR MAXSCALE_WARNING (Syslog LOG_WARNING) -> LOGFILE_ERROR MAXSCALE_NOTICE (Syslof LOG_NOTICE) -> LOGFILE_MESSAGE MAXSCALE_INFO (Syslog LOG_INFO) -> LOGFILE_TRACE MAXSCALE_DEBUG (Syslog LOG_DEBUG) -> LOGFILE_DEBUG When log manager is changed to deal "natively" with syslog levels this mapping will disappear of course.
MaxScale by MariaDB Corporation
The MariaDB Corporation MaxScale is an intelligent proxy that allows forwarding of database statements to one or more database servers using complex rules, a semantic understanding of the database statements and the roles of the various servers within the backend cluster of databases.
MaxScale is designed to provide load balancing and high availability functionality transparently to the applications. In addition it provides a highly scalable and flexible architecture, with plugin components to support different protocols and routing decisions.
MaxScale is implemented in C and makes extensive use of the asynchronous I/O capabilities of the Linux operating system. The epoll system is used to provide the event driven framework for the input and output via sockets.
The protocols are implemented as external shared object modules which can be loaded at runtime. These modules support a fixed interface, communicating the entries points via a structure consisting of a set of function pointers. This structure is called the "module object".
The code that routes the queries to the database servers is also loaded as external shared objects and are referred to as routing modules.
An Google Group exists for MaxScale that can be used to discuss ideas, issues and communicate with the MaxScale community. Send email to maxscale@googlegroups.com or use the forum interface
Bugs can be reported in the MariaDB Corporation bugs database https://mariadb.atlassian.net/projects/MXS/issues
Documentation
For information about installing and using MaxScale, please refer to the documentation.