From cea0febda2e5573b9edaac0c51746f85dba61b40 Mon Sep 17 00:00:00 2001 From: spinlock Date: Wed, 9 Nov 2016 18:59:30 +0800 Subject: [PATCH] deploy: update templates --- deploy/root/opt/codis/etc/10.2.16.200_19000/proxy.toml | 7 +++++++ deploy/root/opt/codis/etc/10.2.16.201_19000/proxy.toml | 7 +++++++ deploy/root/opt/codis/etc/10.2.16.202_19000/proxy.toml | 7 +++++++ deploy/root/opt/codis/etc/10.4.10.200_19000/proxy.toml | 7 +++++++ deploy/root/opt/codis/etc/10.4.10.201_19000/proxy.toml | 7 +++++++ deploy/root/opt/codis/etc/127.0.0.1_19000/proxy.toml | 7 +++++++ deploy/root/opt/codis/etc/127.0.0.1_19001/proxy.toml | 7 +++++++ deploy/root/opt/codis/etc/127.0.0.1_19002/proxy.toml | 7 +++++++ deploy/templates/proxy.toml.template | 7 +++++++ 9 files changed, 63 insertions(+) diff --git a/deploy/root/opt/codis/etc/10.2.16.200_19000/proxy.toml b/deploy/root/opt/codis/etc/10.2.16.200_19000/proxy.toml index a7600df03..38bcded86 100644 --- a/deploy/root/opt/codis/etc/10.2.16.200_19000/proxy.toml +++ b/deploy/root/opt/codis/etc/10.2.16.200_19000/proxy.toml @@ -47,6 +47,13 @@ backend_send_timeout = "50s" # Set backend pipeline buffer size. backend_max_pipeline = 1024 +# Set backend never read replica groups, default is false +backend_primary_only = false + +# Set backend parallel connections per server +backend_primary_parallel = 1 +backend_replica_parallel = 1 + # Set backend tcp keepalive period. (0 to disable) backend_keepalive_period = "75s" diff --git a/deploy/root/opt/codis/etc/10.2.16.201_19000/proxy.toml b/deploy/root/opt/codis/etc/10.2.16.201_19000/proxy.toml index 6f70c25fe..a3e409e13 100644 --- a/deploy/root/opt/codis/etc/10.2.16.201_19000/proxy.toml +++ b/deploy/root/opt/codis/etc/10.2.16.201_19000/proxy.toml @@ -47,6 +47,13 @@ backend_send_timeout = "50s" # Set backend pipeline buffer size. backend_max_pipeline = 1024 +# Set backend never read replica groups, default is false +backend_primary_only = false + +# Set backend parallel connections per server +backend_primary_parallel = 1 +backend_replica_parallel = 1 + # Set backend tcp keepalive period. (0 to disable) backend_keepalive_period = "75s" diff --git a/deploy/root/opt/codis/etc/10.2.16.202_19000/proxy.toml b/deploy/root/opt/codis/etc/10.2.16.202_19000/proxy.toml index e467abe11..437bea70e 100644 --- a/deploy/root/opt/codis/etc/10.2.16.202_19000/proxy.toml +++ b/deploy/root/opt/codis/etc/10.2.16.202_19000/proxy.toml @@ -47,6 +47,13 @@ backend_send_timeout = "50s" # Set backend pipeline buffer size. backend_max_pipeline = 1024 +# Set backend never read replica groups, default is false +backend_primary_only = false + +# Set backend parallel connections per server +backend_primary_parallel = 1 +backend_replica_parallel = 1 + # Set backend tcp keepalive period. (0 to disable) backend_keepalive_period = "75s" diff --git a/deploy/root/opt/codis/etc/10.4.10.200_19000/proxy.toml b/deploy/root/opt/codis/etc/10.4.10.200_19000/proxy.toml index 5ecb510aa..a157e0102 100644 --- a/deploy/root/opt/codis/etc/10.4.10.200_19000/proxy.toml +++ b/deploy/root/opt/codis/etc/10.4.10.200_19000/proxy.toml @@ -47,6 +47,13 @@ backend_send_timeout = "50s" # Set backend pipeline buffer size. backend_max_pipeline = 1024 +# Set backend never read replica groups, default is false +backend_primary_only = false + +# Set backend parallel connections per server +backend_primary_parallel = 1 +backend_replica_parallel = 1 + # Set backend tcp keepalive period. (0 to disable) backend_keepalive_period = "75s" diff --git a/deploy/root/opt/codis/etc/10.4.10.201_19000/proxy.toml b/deploy/root/opt/codis/etc/10.4.10.201_19000/proxy.toml index 70628e71f..87e14774f 100644 --- a/deploy/root/opt/codis/etc/10.4.10.201_19000/proxy.toml +++ b/deploy/root/opt/codis/etc/10.4.10.201_19000/proxy.toml @@ -47,6 +47,13 @@ backend_send_timeout = "50s" # Set backend pipeline buffer size. backend_max_pipeline = 1024 +# Set backend never read replica groups, default is false +backend_primary_only = false + +# Set backend parallel connections per server +backend_primary_parallel = 1 +backend_replica_parallel = 1 + # Set backend tcp keepalive period. (0 to disable) backend_keepalive_period = "75s" diff --git a/deploy/root/opt/codis/etc/127.0.0.1_19000/proxy.toml b/deploy/root/opt/codis/etc/127.0.0.1_19000/proxy.toml index 96e46f9b3..3def4a72c 100644 --- a/deploy/root/opt/codis/etc/127.0.0.1_19000/proxy.toml +++ b/deploy/root/opt/codis/etc/127.0.0.1_19000/proxy.toml @@ -47,6 +47,13 @@ backend_send_timeout = "50s" # Set backend pipeline buffer size. backend_max_pipeline = 1024 +# Set backend never read replica groups, default is false +backend_primary_only = false + +# Set backend parallel connections per server +backend_primary_parallel = 1 +backend_replica_parallel = 1 + # Set backend tcp keepalive period. (0 to disable) backend_keepalive_period = "75s" diff --git a/deploy/root/opt/codis/etc/127.0.0.1_19001/proxy.toml b/deploy/root/opt/codis/etc/127.0.0.1_19001/proxy.toml index 53aa30177..b2875b574 100644 --- a/deploy/root/opt/codis/etc/127.0.0.1_19001/proxy.toml +++ b/deploy/root/opt/codis/etc/127.0.0.1_19001/proxy.toml @@ -47,6 +47,13 @@ backend_send_timeout = "50s" # Set backend pipeline buffer size. backend_max_pipeline = 1024 +# Set backend never read replica groups, default is false +backend_primary_only = false + +# Set backend parallel connections per server +backend_primary_parallel = 1 +backend_replica_parallel = 1 + # Set backend tcp keepalive period. (0 to disable) backend_keepalive_period = "75s" diff --git a/deploy/root/opt/codis/etc/127.0.0.1_19002/proxy.toml b/deploy/root/opt/codis/etc/127.0.0.1_19002/proxy.toml index c953f6044..12627c2d4 100644 --- a/deploy/root/opt/codis/etc/127.0.0.1_19002/proxy.toml +++ b/deploy/root/opt/codis/etc/127.0.0.1_19002/proxy.toml @@ -47,6 +47,13 @@ backend_send_timeout = "50s" # Set backend pipeline buffer size. backend_max_pipeline = 1024 +# Set backend never read replica groups, default is false +backend_primary_only = false + +# Set backend parallel connections per server +backend_primary_parallel = 1 +backend_replica_parallel = 1 + # Set backend tcp keepalive period. (0 to disable) backend_keepalive_period = "75s" diff --git a/deploy/templates/proxy.toml.template b/deploy/templates/proxy.toml.template index 4d309a4f3..6496d7ac1 100644 --- a/deploy/templates/proxy.toml.template +++ b/deploy/templates/proxy.toml.template @@ -47,6 +47,13 @@ backend_send_timeout = "50s" # Set backend pipeline buffer size. backend_max_pipeline = 1024 +# Set backend never read replica groups, default is false +backend_primary_only = false + +# Set backend parallel connections per server +backend_primary_parallel = 1 +backend_replica_parallel = 1 + # Set backend tcp keepalive period. (0 to disable) backend_keepalive_period = "75s"