Skip to content

Commit

Permalink
deploy: update templates, set session_break_on_failure = false
Browse files Browse the repository at this point in the history
  • Loading branch information
spinlock committed Dec 8, 2016
1 parent 44e6848 commit 365c911
Show file tree
Hide file tree
Showing 18 changed files with 49 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/root/opt/codis/etc/10.2.16.200_19000/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ session_max_pipeline = 512
# Set session tcp keepalive period. (0 to disable)
session_keepalive_period = "75s"

# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error response to client.
session_break_on_failure = false

# Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period.
metrics_report_server = ""
metrics_report_period = "1s"
Expand Down
3 changes: 3 additions & 0 deletions deploy/root/opt/codis/etc/10.2.16.200_19002/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ session_max_pipeline = 512
# Set session tcp keepalive period. (0 to disable)
session_keepalive_period = "75s"

# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error response to client.
session_break_on_failure = false

# Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period.
metrics_report_server = ""
metrics_report_period = "1s"
Expand Down
3 changes: 3 additions & 0 deletions deploy/root/opt/codis/etc/10.2.16.201_19000/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ session_max_pipeline = 512
# Set session tcp keepalive period. (0 to disable)
session_keepalive_period = "75s"

# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error response to client.
session_break_on_failure = false

# Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period.
metrics_report_server = ""
metrics_report_period = "1s"
Expand Down
3 changes: 3 additions & 0 deletions deploy/root/opt/codis/etc/10.2.16.201_19002/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ session_max_pipeline = 512
# Set session tcp keepalive period. (0 to disable)
session_keepalive_period = "75s"

# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error response to client.
session_break_on_failure = false

# Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period.
metrics_report_server = ""
metrics_report_period = "1s"
Expand Down
3 changes: 3 additions & 0 deletions deploy/root/opt/codis/etc/10.2.16.202_19000/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ session_max_pipeline = 512
# Set session tcp keepalive period. (0 to disable)
session_keepalive_period = "75s"

# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error response to client.
session_break_on_failure = false

# Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period.
metrics_report_server = ""
metrics_report_period = "1s"
Expand Down
3 changes: 3 additions & 0 deletions deploy/root/opt/codis/etc/10.2.16.202_19002/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ session_max_pipeline = 512
# Set session tcp keepalive period. (0 to disable)
session_keepalive_period = "75s"

# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error response to client.
session_break_on_failure = false

# Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period.
metrics_report_server = ""
metrics_report_period = "1s"
Expand Down
2 changes: 2 additions & 0 deletions deploy/root/opt/codis/etc/10.4.10.100_18080/dashboard.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ sentinel_quorum = 2
sentinel_parallel_syncs = 1
sentinel_down_after = "10s"
sentinel_failover_timeout = "5m"
sentinel_notification_script = ""
sentinel_client_reconfig_script = ""

3 changes: 3 additions & 0 deletions deploy/root/opt/codis/etc/10.4.10.200_19000/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ session_max_pipeline = 512
# Set session tcp keepalive period. (0 to disable)
session_keepalive_period = "75s"

# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error response to client.
session_break_on_failure = false

# Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period.
metrics_report_server = ""
metrics_report_period = "1s"
Expand Down
3 changes: 3 additions & 0 deletions deploy/root/opt/codis/etc/10.4.10.200_19002/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ session_max_pipeline = 512
# Set session tcp keepalive period. (0 to disable)
session_keepalive_period = "75s"

# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error response to client.
session_break_on_failure = false

# Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period.
metrics_report_server = ""
metrics_report_period = "1s"
Expand Down
3 changes: 3 additions & 0 deletions deploy/root/opt/codis/etc/10.4.10.201_19000/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ session_max_pipeline = 512
# Set session tcp keepalive period. (0 to disable)
session_keepalive_period = "75s"

# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error response to client.
session_break_on_failure = false

# Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period.
metrics_report_server = ""
metrics_report_period = "1s"
Expand Down
3 changes: 3 additions & 0 deletions deploy/root/opt/codis/etc/10.4.10.201_19002/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ session_max_pipeline = 512
# Set session tcp keepalive period. (0 to disable)
session_keepalive_period = "75s"

# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error response to client.
session_break_on_failure = false

# Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period.
metrics_report_server = ""
metrics_report_period = "1s"
Expand Down
2 changes: 2 additions & 0 deletions deploy/root/opt/codis/etc/127.0.0.1_18080/dashboard.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ sentinel_quorum = 2
sentinel_parallel_syncs = 1
sentinel_down_after = "10s"
sentinel_failover_timeout = "5m"
sentinel_notification_script = ""
sentinel_client_reconfig_script = ""

3 changes: 3 additions & 0 deletions deploy/root/opt/codis/etc/127.0.0.1_19000/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ session_max_pipeline = 1024
# Set session tcp keepalive period. (0 to disable)
session_keepalive_period = "75s"

# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error response to client.
session_break_on_failure = false

# Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period.
metrics_report_server = ""
metrics_report_period = "1s"
Expand Down
3 changes: 3 additions & 0 deletions deploy/root/opt/codis/etc/127.0.0.1_19001/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ session_max_pipeline = 1024
# Set session tcp keepalive period. (0 to disable)
session_keepalive_period = "75s"

# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error response to client.
session_break_on_failure = false

# Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period.
metrics_report_server = ""
metrics_report_period = "1s"
Expand Down
3 changes: 3 additions & 0 deletions deploy/root/opt/codis/etc/127.0.0.1_19002/proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ session_max_pipeline = 1024
# Set session tcp keepalive period. (0 to disable)
session_keepalive_period = "75s"

# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error response to client.
session_break_on_failure = false

# Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period.
metrics_report_server = ""
metrics_report_period = "1s"
Expand Down
2 changes: 2 additions & 0 deletions deploy/templates/dashboard.toml.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ sentinel_quorum = {SENTINEL_QUORUM}
sentinel_parallel_syncs = 1
sentinel_down_after = "{SENTINEL_DOWN_AFTER}"
sentinel_failover_timeout = "5m"
sentinel_notification_script = ""
sentinel_client_reconfig_script = ""

3 changes: 3 additions & 0 deletions deploy/templates/proxy.toml.template
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ session_max_pipeline = {MAX_PIPELINE}
# Set session tcp keepalive period. (0 to disable)
session_keepalive_period = "75s"

# Set session to be sensitive to failures. Default is false, instead of closing socket, proxy will send an error response to client.
session_break_on_failure = false

# Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period.
metrics_report_server = ""
metrics_report_period = "1s"
Expand Down
1 change: 1 addition & 0 deletions example/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def _open_config(admin_port, proxy_port, product_name, product_auth=None):
f.write('proxy_datacenter = "localhost"\n')
f.write('proxy_heap_placeholder = "0"\n')
f.write('proxy_max_offheap_size = "0"\n')
f.write('session_break_on_failure = false\n')
return config


Expand Down

0 comments on commit 365c911

Please sign in to comment.