Skip to content
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
14 changes: 13 additions & 1 deletion pmm_qa/percona_server/percona-server-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
metrics_mode: "{{ lookup('env', 'metrics_mode') }}"
setup_type: "{{ lookup('env', 'SETUP_TYPE') }}"
random_service_name_value: ""
my_rocks: "{{ lookup('env', 'MY_ROCKS') | default(false, true) }}"


tasks:
- name: Mofidy the node count for group replication
Expand Down Expand Up @@ -250,4 +252,14 @@
mysql -uroot -p{{ root_password }} school < /ps_load.sql
'
loop: "{{ range(1, nodes_count | int + 1) | list }}"
when: setup_type != "gr" and setup_type != "replication"
when: setup_type != "gr" and setup_type != "replication"

- name: Enable MySQL MyRocks
community.docker.docker_container_exec:
container: "ps_pmm_{{ ps_version }}_{{ item }}"
command: >
/bin/sh -c '
ps-admin --enable-rocksdb -u root -p{{ root_password }}
'
loop: "{{ range(1, nodes_count | int + 1) | list }}"
when: my_rocks | bool
1 change: 1 addition & 0 deletions pmm_qa/pmm-framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def setup_ps(db_type, db_version=None, db_config=None, args=None):
'PS_VERSION': ps_version,
'CLIENT_VERSION': get_value('CLIENT_VERSION', db_type, args, db_config),
'ADMIN_PASSWORD': os.getenv('ADMIN_PASSWORD') or args.pmm_server_password or 'admin',
'MY_ROCKS': get_value('MY_ROCKS', db_type, args, db_config),
}

run_ansible_playbook('percona_server/percona-server-setup.yml', env_vars, args)
Expand Down
2 changes: 1 addition & 1 deletion pmm_qa/scripts/database_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"PS": {
"versions": ["5.7", "8.4", "8.0"],
"configurations": {"QUERY_SOURCE": "perfschema", "SETUP_TYPE": "", "CLIENT_VERSION": "3-dev-latest",
"TARBALL": "", "NODES_COUNT": 1}
"TARBALL": "", "NODES_COUNT": 1, "MY_ROCKS": "false"}
},
"SSL_MYSQL": {
"versions": ["5.7", "8.4", "8.0"],
Expand Down
Loading