From e7d4e18ba791f96afdad6d7f0c34cf56a2cfd325 Mon Sep 17 00:00:00 2001 From: Kouhei Sutou Date: Tue, 16 Jan 2018 10:53:54 +0900 Subject: [PATCH] doc: use "command_name_position record" for replication 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. --- doc/text/constitution.md | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/doc/text/constitution.md b/doc/text/constitution.md index 9a34261..cc5afd7 100644 --- a/doc/text/constitution.md +++ b/doc/text/constitution.md @@ -66,19 +66,21 @@ Here is an example configuration file: # For master Groonga server @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 # For slave Groonga server - + @type groonga protocol gqtp # Or use the below line # protocol http # You can use different protocol for @@ -194,19 +196,21 @@ Here is an example configuration file: # For master Groonga server @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 # For slave Groonga servers - + @type copy # The first slave Groonga server