Skip to content

Commit

Permalink
Fix proxysql to use admin port for PMM
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumar-vs committed May 15, 2024
1 parent b234eed commit 9d644c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pmm_qa/pxc_proxysql_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
- name: Prepare Container for PXC and Proxysql
shell: >
docker run -d --name={{ pxc_container }}
-p 6033:6033
-p 6032:6032
phusion/baseimage:jammy-1.0.1
- name: Copy all required Artifacts to the docker pxc_container
Expand Down Expand Up @@ -116,8 +116,7 @@
- docker exec {{ pxc_container }} bash -c 'sed -i s#3306#'"\$(grep 'port' /home/pxc/PXC/node1.cnf | cut -d= -f2)"'# /etc/proxysql-admin.cnf'
- docker exec {{ pxc_container }} proxysql-admin --config-file=/etc/proxysql-admin.cnf --enable
- docker exec {{ pxc_container }} sleep 20
- docker exec {{ pxc_container }} pmm-admin add proxysql --username=proxysql_user --password=passw0rd --service-name=my-new-proxysql_{{ pxc_container }}_{{ random_number }} --host=127.0.0.1 --port=6033

- docker exec {{ pxc_container }} pmm-admin add proxysql --username=admin --password=admin --service-name=my-new-proxysql_{{ pxc_container }}_{{ random_number }} --host=127.0.0.1 --port=6032
- name: Execute Service, Sysbench Script inside the PXC pxc_container
shell: "{{ item }}"
with_items:
Expand Down

0 comments on commit 9d644c7

Please sign in to comment.