Added template cnf file to /etc and renamed folders.
This commit is contained in:
@ -171,6 +171,9 @@ install(FILES ${CMAKE_BINARY_DIR}/Changelog.txt DESTINATION ${MAXSCALE_SHAREDIR}
|
|||||||
install(FILES ${CMAKE_BINARY_DIR}/ReleaseNotes.txt DESTINATION ${MAXSCALE_SHAREDIR})
|
install(FILES ${CMAKE_BINARY_DIR}/ReleaseNotes.txt DESTINATION ${MAXSCALE_SHAREDIR})
|
||||||
install(FILES ${CMAKE_BINARY_DIR}/UpgradingToMaxScale110.txt DESTINATION ${MAXSCALE_SHAREDIR})
|
install(FILES ${CMAKE_BINARY_DIR}/UpgradingToMaxScale110.txt DESTINATION ${MAXSCALE_SHAREDIR})
|
||||||
install(FILES server/maxscale_template.cnf DESTINATION ${MAXSCALE_SHAREDIR})
|
install(FILES server/maxscale_template.cnf DESTINATION ${MAXSCALE_SHAREDIR})
|
||||||
|
if(WITH_MAXSCALE_CNF)
|
||||||
|
install(FILES server/maxscale_template.cnf DESTINATION ${MAXSCALE_CONFDIR} RENAME maxscale.cnf)
|
||||||
|
endif()
|
||||||
install(FILES server/maxscale_binlogserver_template.cnf DESTINATION ${MAXSCALE_SHAREDIR})
|
install(FILES server/maxscale_binlogserver_template.cnf DESTINATION ${MAXSCALE_SHAREDIR})
|
||||||
install(FILES ${ERRMSG} DESTINATION ${MAXSCALE_VARDIR}/lib/maxscale
|
install(FILES ${ERRMSG} DESTINATION ${MAXSCALE_VARDIR}/lib/maxscale
|
||||||
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
||||||
|
@ -23,6 +23,9 @@ macro(set_variables)
|
|||||||
# Use C99
|
# Use C99
|
||||||
set(USE_C99 FALSE CACHE BOOL "Use C99 standard")
|
set(USE_C99 FALSE CACHE BOOL "Use C99 standard")
|
||||||
|
|
||||||
|
# Install the template maxscale.cnf file
|
||||||
|
set(WITH_MAXSCALE_CNF TRUE CACHE BOOL "Install the template maxscale.cnf file")
|
||||||
|
|
||||||
# hostname or IP address of MaxScale's host
|
# hostname or IP address of MaxScale's host
|
||||||
set(TEST_HOST "127.0.0.1" CACHE STRING "hostname or IP address of MaxScale's host")
|
set(TEST_HOST "127.0.0.1" CACHE STRING "hostname or IP address of MaxScale's host")
|
||||||
|
|
||||||
|
@ -128,6 +128,10 @@ module=regexfilter
|
|||||||
match=fetch
|
match=fetch
|
||||||
replace=select
|
replace=select
|
||||||
|
|
||||||
|
[hint]
|
||||||
|
type=filter
|
||||||
|
module=hintfilter
|
||||||
|
|
||||||
|
|
||||||
## A series of service definition
|
## A series of service definition
|
||||||
#
|
#
|
||||||
@ -218,11 +222,21 @@ router=readwritesplit
|
|||||||
servers=server1,server2,server3
|
servers=server1,server2,server3
|
||||||
user=myuser
|
user=myuser
|
||||||
passwd=mypwd
|
passwd=mypwd
|
||||||
#use_sql_variables_in=
|
max_slave_connections=100%
|
||||||
#max_slave_connections=100%
|
#use_sql_variables_in=master
|
||||||
#max_slave_replication_lag=21
|
#max_slave_replication_lag=21
|
||||||
#router_options=slave_selection_criteria=
|
#filters=hint|fetch|qla
|
||||||
#filters=fetch|qla
|
#router_options=slave_selection_criteria=LEAST_CURRENT_OPERATIONS
|
||||||
|
|
||||||
|
# Uncomment this to disable the saving of session modifying comments. Some scripting
|
||||||
|
# languages use connection pooling and will use the same session. MaxScale sees them
|
||||||
|
# as the same session and stores them for the slave recovery process.
|
||||||
|
#router_options=disable_sescmd_history=true,disable_slave_recovery=true
|
||||||
|
|
||||||
|
# This will allow the master server to be used for read queries. By default
|
||||||
|
# MaxScale will only use the master for write queries.
|
||||||
|
#router_options=master_accept_reads=true
|
||||||
|
|
||||||
|
|
||||||
[Debug Interface]
|
[Debug Interface]
|
||||||
type=service
|
type=service
|
||||||
@ -265,27 +279,26 @@ service=Read Connection Router
|
|||||||
protocol=MySQLClient
|
protocol=MySQLClient
|
||||||
address=192.168.100.102
|
address=192.168.100.102
|
||||||
port=4008
|
port=4008
|
||||||
#socket=/tmp/readconn.sock
|
socket=/var/lib/maxscale/readconn.sock
|
||||||
|
|
||||||
[RW Split Listener]
|
[RW Split Listener]
|
||||||
type=listener
|
type=listener
|
||||||
service=RW Split Router
|
service=RW Split Router
|
||||||
protocol=MySQLClient
|
protocol=MySQLClient
|
||||||
port=4006
|
port=4006
|
||||||
#socket=/tmp/rwsplit.sock
|
#socket=/var/lib/maxscale/rwsplit.sock
|
||||||
|
|
||||||
[Debug Listener]
|
[Debug Listener]
|
||||||
type=listener
|
type=listener
|
||||||
service=Debug Interface
|
service=Debug Interface
|
||||||
protocol=telnetd
|
protocol=telnetd
|
||||||
#address=127.0.0.1
|
address=127.0.0.1
|
||||||
port=4442
|
port=4442
|
||||||
|
|
||||||
[CLI Listener]
|
[CLI Listener]
|
||||||
type=listener
|
type=listener
|
||||||
service=CLI
|
service=CLI
|
||||||
protocol=maxscaled
|
protocol=maxscaled
|
||||||
#address=localhost
|
|
||||||
port=6603
|
port=6603
|
||||||
|
|
||||||
## Definition of the servers
|
## Definition of the servers
|
||||||
@ -314,18 +327,18 @@ port=6603
|
|||||||
|
|
||||||
[server1]
|
[server1]
|
||||||
type=server
|
type=server
|
||||||
address=192.168.100.101
|
address=127.0.0.1
|
||||||
port=3000
|
port=3306
|
||||||
protocol=MySQLBackend
|
protocol=MySQLBackend
|
||||||
|
|
||||||
[server2]
|
[server2]
|
||||||
type=server
|
type=server
|
||||||
address=192.168.100.102
|
address=127.0.0.1
|
||||||
port=3000
|
port=3306
|
||||||
protocol=MySQLBackend
|
protocol=MySQLBackend
|
||||||
|
|
||||||
[server3]
|
[server3]
|
||||||
type=server
|
type=server
|
||||||
address=192.168.100.103
|
address=127.0.0.1
|
||||||
port=3000
|
port=3306
|
||||||
protocol=MySQLBackend
|
protocol=MySQLBackend
|
||||||
|
Reference in New Issue
Block a user