Skip to content
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

Fix mongo arbiter #654

Merged
merged 3 commits into from
Jan 22, 2024
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 .github/workflows/pmm2-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ on:
- regular
- replica
- sharded
- arbiter
default: 'regular'
required: true

Expand Down
11 changes: 8 additions & 3 deletions pmm-tests/psmdb_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ then
export metrics_mode=push
fi

# Mongo user credtials for the replicat set cluster
export user="dba"
export pwd="test1234"

# Install the dependencies
source ~/.bash_profile || true;
apt-get update
Expand Down Expand Up @@ -105,12 +109,13 @@ if [ "$mongodb_setup" == "replica" ]; then
sleep 20
fi

#Arbiter setup with Auth enabled (keyfile)
if [ "$mongodb_setup" == "arbiter" ]; then
bash ./mongo_startup.sh -r -a -e wiredTiger --mongosExtra="--slowms 1" --mongodExtra="--profile 2 --slowms 1" --configExtra="--profile 2 --slowms 1" --b=./psmdb_${mongodb_version}/bin
bash ./mongo_startup.sh -x -r -a -e wiredTiger --mongosExtra="--slowms 1" --mongodExtra="--profile 2 --slowms 1" --configExtra="--profile 2 --slowms 1" --b=./psmdb_${mongodb_version}/bin
sleep 20
pmm-admin remove mongodb mongodb_rs2_1 || true; pmm-admin add mongodb --cluster mongodb_node_cluster2 --replication-set=rs2 --environment=mongodb_rs_node --metrics-mode=$metrics_mode mongodb_rs2_1_${SERVICE_RANDOM_NUMBER} --debug 127.0.0.1:27017
pmm-admin remove mongodb mongodb_rs2_1 || true; pmm-admin add mongodb --cluster mongodb_node_cluster2 --replication-set=rs2 --environment=mongodb_rs_node --metrics-mode=$metrics_mode mongodb_rs2_1_${SERVICE_RANDOM_NUMBER} --debug --username=${user} --password=${pwd} 127.0.0.1:27017
sleep 2
pmm-admin remove mongodb mongodb_rs2_2 || true; pmm-admin add mongodb --cluster mongodb_node_cluster2 --replication-set=rs2 --environment=mongodb_rs_node --metrics-mode=$metrics_mode mongodb_rs2_2_${SERVICE_RANDOM_NUMBER} --debug 127.0.0.1:27018
pmm-admin remove mongodb mongodb_rs2_2 || true; pmm-admin add mongodb --cluster mongodb_node_cluster2 --replication-set=rs2 --environment=mongodb_rs_node --metrics-mode=$metrics_mode mongodb_rs2_2_${SERVICE_RANDOM_NUMBER} --debug --username=${user} --password=${pwd} 127.0.0.1:27018
sleep 2
pmm-admin remove mongodb mongodb_rs2_3 || true; pmm-admin add mongodb --cluster mongodb_node_cluster2 --replication-set=rs2 --environment=mongodb_rs_node --metrics-mode=$metrics_mode mongodb_rs2_3_${SERVICE_RANDOM_NUMBER} --debug 127.0.0.1:27019
sleep 20
Expand Down
Loading