Files
MaxScale/test/maxscale_test.cnf
Markus Mäkelä 47bcb6ad02 MXS-3345: Defer path permission checks
Doing the directory permission checks after all the values have been set
helps avoid problems with intermediate values that aren't valid. This
happens when --basedir generates invalid derived paths and the correct path
is provided as an argument right after it.

The path parameter is read from the configuration file only if it hasn't
been modified by a command line option. The case where an invalid command
line option is given but a valid configuration parameter would override it
is still treated as an error.

Also added a clarifying comment into set_dirs to make sure the handling
for the two path parameters is not moved inside set_runtime_dirs.

Fixed the testing scripts for the REST API and MaxCtrl now that the
directory permission checks are done correctly. Previously some paths seem
to have been ignored.
2021-02-09 17:36:41 +02:00

123 lines
2.1 KiB
INI

[maxscale]
threads=auto
libdir=@CMAKE_INSTALL_PREFIX@/@MAXSCALE_LIBDIR@
logdir=@CMAKE_INSTALL_PREFIX@/log/maxscale/
datadir=@CMAKE_INSTALL_PREFIX@/lib/maxscale
cachedir=@CMAKE_INSTALL_PREFIX@/cache/maxscale
language=@CMAKE_INSTALL_PREFIX@/lib/maxscale/
piddir=@CMAKE_INSTALL_PREFIX@/run/maxscale/
persistdir=@CMAKE_INSTALL_PREFIX@/lib/maxscale/maxscale.cnf.d/
module_configdir=@CMAKE_INSTALL_PREFIX@/etc/maxscale.modules.d/
# This isn't really correct but it's OK as long as it's an empty directory
connector_plugindir=@CMAKE_INSTALL_PREFIX@/etc/maxscale.modules.d/
admin_auth=false
[server1]
type=server
address=127.0.0.1
port=3000
protocol=MariaDBBackend
[server2]
type=server
address=127.0.0.1
port=3001
protocol=MariaDBBackend
[server3]
type=server
address=127.0.0.1
port=3002
protocol=MariaDBBackend
[server4]
type=server
address=127.0.0.1
port=3003
protocol=MariaDBBackend
[MariaDB-Monitor]
type=monitor
module=mariadbmon
servers=server1,server2,server3,server4
user=maxuser
password=maxpwd
monitor_interval=5000
[RW-Split-Router]
type=service
router=readwritesplit
servers=server1,server2,server3,server4
user=maxuser
password=maxpwd
[SchemaRouter-Router]
type=service
router=schemarouter
servers=server1,server2,server3,server4
user=maxuser
password=maxpwd
[RW-Split-Hint-Router]
type=service
router=readwritesplit
servers=server1,server2,server3,server4
user=maxuser
password=maxpwd
filters=Hint
[Read-Connection-Router]
type=service
router=readconnroute
router_options=master
servers=server1
user=maxuser
password=maxpwd
filters=QLA
[Hint]
type=filter
module=hintfilter
[QLA]
type=filter
module=qlafilter
log_type=unified
append=false
flush=true
filebase=/tmp/qla.log
[Read-Connection-Listener]
type=listener
service=Read-Connection-Router
protocol=MariaDBClient
port=4008
[RW-Split-Listener]
type=listener
service=RW-Split-Router
protocol=MariaDBClient
port=4006
[SchemaRouter-Listener]
type=listener
service=SchemaRouter-Router
protocol=MariaDBClient
port=4010
[RW-Split-Hint-Listener]
type=listener
service=RW-Split-Hint-Router
protocol=MariaDBClient
port=4009
[CLI]
type=service
router=cli
[CLI-Listener]
type=listener
service=CLI
protocol=maxscaled
socket=default