Added template cnf file to /etc and renamed folders.

This commit is contained in:
Markus Makela 2015-07-09 14:41:23 +03:00
parent 3a69a87df1
commit b0e98bc420
17 changed files with 33 additions and 14 deletions

View File

@ -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}/UpgradingToMaxScale110.txt 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 ${ERRMSG} DESTINATION ${MAXSCALE_VARDIR}/lib/maxscale
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)

View File

@ -23,6 +23,9 @@ macro(set_variables)
# Use C99
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
set(TEST_HOST "127.0.0.1" CACHE STRING "hostname or IP address of MaxScale's host")

View File

@ -128,6 +128,10 @@ module=regexfilter
match=fetch
replace=select
[hint]
type=filter
module=hintfilter
## A series of service definition
#
@ -218,11 +222,21 @@ router=readwritesplit
servers=server1,server2,server3
user=myuser
passwd=mypwd
#use_sql_variables_in=
#max_slave_connections=100%
max_slave_connections=100%
#use_sql_variables_in=master
#max_slave_replication_lag=21
#router_options=slave_selection_criteria=
#filters=fetch|qla
#filters=hint|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]
type=service
@ -265,27 +279,26 @@ service=Read Connection Router
protocol=MySQLClient
address=192.168.100.102
port=4008
#socket=/tmp/readconn.sock
socket=/var/lib/maxscale/readconn.sock
[RW Split Listener]
type=listener
service=RW Split Router
protocol=MySQLClient
port=4006
#socket=/tmp/rwsplit.sock
#socket=/var/lib/maxscale/rwsplit.sock
[Debug Listener]
type=listener
service=Debug Interface
protocol=telnetd
#address=127.0.0.1
address=127.0.0.1
port=4442
[CLI Listener]
type=listener
service=CLI
protocol=maxscaled
#address=localhost
port=6603
## Definition of the servers
@ -314,18 +327,18 @@ port=6603
[server1]
type=server
address=192.168.100.101
port=3000
address=127.0.0.1
port=3306
protocol=MySQLBackend
[server2]
type=server
address=192.168.100.102
port=3000
address=127.0.0.1
port=3306
protocol=MySQLBackend
[server3]
type=server
address=192.168.100.103
port=3000
address=127.0.0.1
port=3306
protocol=MySQLBackend