Skip to content

Commit

Permalink
K8SPXC-1473 expose ha and proxysql stats. (#1942)
Browse files Browse the repository at this point in the history
* K8SPXC-1473_expose_ha

* fix config

* fix config

* fix tests

* update monitoring test
  • Loading branch information
nmarukovich authored Jan 16, 2025
1 parent b620e48 commit 879e522
Show file tree
Hide file tree
Showing 90 changed files with 307 additions and 18 deletions.
2 changes: 2 additions & 0 deletions build/proxysql.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ admin_variables =
admin_credentials="admin:admin"
mysql_ifaces="0.0.0.0:6032"
refresh_interval=2000
restapi_enabled=true
restapi_port=6070

cluster_username="admin"
cluster_password="admin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
3 changes: 3 additions & 0 deletions e2e-tests/affinity/compare/statefulset_custom-proxysql-oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
3 changes: 3 additions & 0 deletions e2e-tests/affinity/compare/statefulset_custom-proxysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
3 changes: 3 additions & 0 deletions e2e-tests/affinity/compare/statefulset_hostname-proxysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
3 changes: 3 additions & 0 deletions e2e-tests/affinity/compare/statefulset_region-proxysql-oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
3 changes: 3 additions & 0 deletions e2e-tests/affinity/compare/statefulset_region-proxysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
3 changes: 3 additions & 0 deletions e2e-tests/affinity/compare/statefulset_zone-proxysql-k127.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
3 changes: 3 additions & 0 deletions e2e-tests/affinity/compare/statefulset_zone-proxysql-oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
3 changes: 3 additions & 0 deletions e2e-tests/affinity/compare/statefulset_zone-proxysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ spec:
- containerPort: 33060
name: mysqlx
protocol: TCP
- containerPort: 8404
name: stats
protocol: TCP
readinessProbe:
exec:
command:
Expand Down
3 changes: 3 additions & 0 deletions e2e-tests/haproxy/compare/statefulset_haproxy-haproxy-oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ spec:
- containerPort: 33060
name: mysqlx
protocol: TCP
- containerPort: 8404
name: stats
protocol: TCP
readinessProbe:
exec:
command:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ spec:
- containerPort: 33060
name: mysqlx
protocol: TCP
- containerPort: 8404
name: stats
protocol: TCP
readinessProbe:
exec:
command:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ spec:
- containerPort: 33060
name: mysqlx
protocol: TCP
- containerPort: 8404
name: stats
protocol: TCP
readinessProbe:
exec:
command:
Expand Down
3 changes: 3 additions & 0 deletions e2e-tests/haproxy/compare/statefulset_haproxy-haproxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ spec:
- containerPort: 33060
name: mysqlx
protocol: TCP
- containerPort: 8404
name: stats
protocol: TCP
readinessProbe:
exec:
command:
Expand Down
4 changes: 4 additions & 0 deletions e2e-tests/init-deploy/compare/service_some-name-proxysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ spec:
port: 33062
protocol: TCP
targetPort: 33062
- name: stats
port: 6070
protocol: TCP
targetPort: 6070
selector:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: some-name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
limits:
cpu: 700m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
requests:
cpu: 600m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
requests:
cpu: 600m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
requests:
cpu: 600m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
requests:
cpu: 600m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
requests:
cpu: 300m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
requests:
cpu: 300m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
requests:
cpu: 300m
Expand Down
3 changes: 3 additions & 0 deletions e2e-tests/limits/compare/statefulset_no-limits-proxysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources:
requests:
cpu: 300m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ spec:
- containerPort: 6032
name: proxyadm
protocol: TCP
- containerPort: 6070
name: stats
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
Expand Down
Loading

0 comments on commit 879e522

Please sign in to comment.