Skip to content

Commit

Permalink
doc: use "command_name_position record" for replication
Browse files Browse the repository at this point in the history
In this case, we don't need "command_name_position record"
configuration because out_forward isn't used. If out_forward is
used (undocumented large case), "command_name_position record" is
required because out_forward create chunks by tag. It may break
command order.
  • Loading branch information
kou committed Jan 16, 2018
1 parent e5afc09 commit e7d4e18
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions doc/text/constitution.md
Expand Up @@ -66,19 +66,21 @@ Here is an example configuration file:
# For master Groonga server
<source>
@type groonga
protocol gqtp # Or use the below line
protocol gqtp # Or use the below line
# protocol http
bind 127.0.0.1 # For client side Fluentd
# bind 192.168.0.1 # For master Groonga server side Fluentd
bind 127.0.0.1 # For client side Fluentd
# bind 192.168.0.1 # For master Groonga server side Fluentd
port 10041
real_host 192.168.29.1 # IP address of master Groonga server
real_port 10041 # Port number of master Groonga server
# real_port 20041 # Use different port number
# for master Groonga server side Fluentd
real_host 192.168.29.1 # IP address of master Groonga server
real_port 10041 # Port number of master Groonga server
# real_port 20041 # Use different port number
# for master Groonga server side Fluentd

command_name_position record # To keep command order
</source>

# For slave Groonga server
<match groonga.command.*>
<match groonga.command.**>
@type groonga
protocol gqtp # Or use the below line
# protocol http # You can use different protocol for
Expand Down Expand Up @@ -194,19 +196,21 @@ Here is an example configuration file:
# For master Groonga server
<source>
@type groonga
protocol gqtp # Or use the below line
protocol gqtp # Or use the below line
# protocol http
bind 127.0.0.1 # For client side Fluentd
# bind 192.168.0.1 # For master Groonga server side Fluentd
bind 127.0.0.1 # For client side Fluentd
# bind 192.168.0.1 # For master Groonga server side Fluentd
port 10041
real_host 192.168.29.1 # IP address of master Groonga server
real_port 10041 # Port number of master Groonga server
# real_port 20041 # Use different port number
# for master Groonga server side fluentd
real_host 192.168.29.1 # IP address of master Groonga server
real_port 10041 # Port number of master Groonga server
# real_port 20041 # Use different port number
# for master Groonga server side fluentd

command_name_position record # To keep command order
</source>

# For slave Groonga servers
<match groonga.command.*>
<match groonga.command.**>
@type copy

# The first slave Groonga server
Expand Down

0 comments on commit e7d4e18

Please sign in to comment.