Skip to content

Commit

Permalink
add mysql server weight support
Browse files Browse the repository at this point in the history
  • Loading branch information
flachesis committed Sep 22, 2021
1 parent 29937c2 commit 4386a21
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.1.0
version: 1.2.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 @@ -88,6 +88,7 @@ The following table lists the configurable parameters of the ProxySQL chart and
| `proxysql.mysql.servers.[].port` | MySQL backend's port | `3306` |
| `proxysql.mysql.servers.[].maxConnections` | The max num of conn that the backend can handle | `1000` |
| `proxysql.mysql.servers.[].compression` | Compress data | `false` |
| `proxysql.mysql.servers.[].weight` | Server weight | `1000` |
| `proxysql.mysql.users.[].username` | The user for connecting backend | `nil` |
| `proxysql.mysql.users.[].password` | The user's password | `nil` |
| `proxysql.mysql.users.[].readOnly` | Does the user is read only | `false` |
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 @@ -101,7 +101,7 @@ data:
hostgroup_id={{- if $element.isWriter }}1{{- else }}2{{- end }}
hostname="{{ required "mysql server's hostname is required!" $element.hostname }}"
port={{ $element.port | default 3306 }}
weight=1000
weight={{ $element.weight | default 1000 }}
compression={{ (int $element.compression) | default 0 }}
max_connections={{ $element.maxConnections | default 1000 }}
use_ssl=0
Expand Down
1 change: 1 addition & 0 deletions charts/proxysql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ proxysql:
# port: 3306
# maxConnections: 1000
# compression: false
# weight: 1000
users: []
# - username: name
# password: pwd
Expand Down

0 comments on commit 4386a21

Please sign in to comment.