Skip to content

PMM-7: Improve ps setup with userstat #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pmm_qa/percona_server/data/my-async-replication.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
server_id={{ item }}
bind-address=0.0.0.0
port={{ mysql_listen_port }}
userstat=1

# Authentication settings for caching_sha2_password
caching_sha2_password_auto_generate_rsa_keys=ON
Expand Down
2 changes: 2 additions & 0 deletions pmm_qa/percona_server/data/my.cnf.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[mysqld]
userstat=1
2 changes: 1 addition & 1 deletion pmm_qa/percona_server/my.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
server_id={{ server_id_start + item - 1 }}
bind-address=0.0.0.0
port={{ mysql_listen_port }}
userstat=1

# General replication settings
gtid_mode=ON
Expand Down Expand Up @@ -42,4 +43,3 @@ relay_log_purge=ON
# Performance and connection settings
max_connections=1000
innodb_buffer_pool_size=256M

7 changes: 7 additions & 0 deletions pmm_qa/percona_server/tasks/percona-server-setup.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
- name: Generate my.cnf for each node
template:
src: ./data/my.cnf.j2
dest: "{{ data_dir }}/node{{ item }}/my.cnf"
loop: "{{ range(1, nodes_count | int + 1) | list }}"

- name: Start Percona Server containers
community.docker.docker_container:
name: "ps_pmm_{{ ps_version }}_{{ item }}"
Expand All @@ -12,6 +18,7 @@
- "{{ mysql_port + item - 1 }}:{{ mysql_listen_port }}"
- "{{ group_seeds_port + item - 1 }}:{{ group_seeds_port }}"
volumes:
- "{{ data_dir }}/node{{ item }}/my.cnf:/etc/mysql/my.cnf"
- "{{ data_dir }}/node{{ item }}/data:/var/lib/mysql"
loop: "{{ range(1, nodes_count | int + 1) | list }}"

Expand Down
Loading