Skip to content

Commit

Permalink
add connection max age ms parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
flachesis committed Sep 28, 2021
1 parent a06a347 commit aa7a16f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/proxysql/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.4.1
version: 1.5.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 1 addition & 0 deletions charts/proxysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ The following table lists the configurable parameters of the ProxySQL chart and
| `proxysql.mysql.version` | MySQL version | `5.7.34` |
| `proxysql.mysql.port` | MySQL port | `3306` |
| `proxysql.mysql.maxConnections` | The max num of client conn that the proxy can handle | `2048` |
| `proxysql.mysql.connectionMaxAgeMS` | The max age of inactive conn | `0` |
| `proxysql.mysql.queyCacheSizeMB` | Query cache size in MB | `256` |
| `proxysql.mysql.waitTimeout` | mysql backend session timeout | `28800000` |
| `proxysql.mysql.queryRetriesOnFailure` | query retries on failure | `2` |
Expand Down
2 changes: 1 addition & 1 deletion charts/proxysql/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ data:
interfaces="0.0.0.0:{{ .Values.proxysql.mysql.port }}"
connect_timeout_server=1500
connect_timeout_server_max=10000
connection_max_age_ms=0
connection_max_age_ms={{ .Values.proxysql.mysql.connectionMaxAgeMS }}
default_max_latency_ms=1500
default_query_timeout=86400000
long_query_time=5000
Expand Down
1 change: 1 addition & 0 deletions charts/proxysql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ proxysql:
version: "5.7.34"
port: 3306
maxConnections: 2048
connectionMaxAgeMS: 0
queyCacheSizeMB: 256
queryRetriesOnFailure: 2
waitTimeout: 28800000
Expand Down

0 comments on commit aa7a16f

Please sign in to comment.