Skip to content

Commit

Permalink
update conf daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
siddontang committed Aug 18, 2014
1 parent 3f54bda commit c764dc1
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 2 deletions.
3 changes: 1 addition & 2 deletions etc/mixer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ rules:
# range is left close and right open
# node1 range (-inf, 10000)
# node2 range [10000, 20000)
# node3 range [20000, +inf)

range: -10000-20000-
range: -10000-

-
db: mixer
Expand Down
57 changes: 57 additions & 0 deletions etc/mixer_single.conf
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

0 comments on commit c764dc1

Please sign in to comment.