forked from siddontang/mixer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f54bda
commit c764dc1
Showing
2 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Mixer configuration, using yaml format | ||
|
||
# server listen addr | ||
addr : 127.0.0.1:4000 | ||
|
||
# server user and password | ||
user : root | ||
password : | ||
|
||
# node is an agenda for real remote mysql server. | ||
nodes : | ||
- | ||
name : node1 | ||
|
||
# default idle conns for mysql server | ||
idle_conns : 16 | ||
|
||
# if rw_split is true, select will use slave server | ||
rw_split: true | ||
|
||
# all mysql in a node must have the same user and password | ||
user : root | ||
password: | ||
|
||
# master represents a real mysql master server | ||
master : 127.0.0.1:3306 | ||
|
||
# master backup server | ||
master_backup : | ||
|
||
# slave represents a real mysql salve server | ||
slave : | ||
|
||
# down mysql after N seconds noalive | ||
# 0 will no down | ||
down_after_noalive : 0 | ||
|
||
|
||
|
||
|
||
# schema defines which db can be used by client and this db's sql will be executed in which nodes | ||
schemas : | ||
- | ||
db : mixer | ||
nodes: [node1] | ||
|
||
|
||
# rule defines how sql executed in nodes | ||
rules: | ||
- | ||
db: mixer | ||
table: | ||
key: | ||
nodes: node1 | ||
|
||
# any other table not set above will use default rule | ||
type: default |