Our setup is as follows:
router_01 server01test mongos
router_02 server02test mongos
config_a mongodb01test mongodCFG
config_b mongodb02test mongodCFG
shard01_a mongodb02test mongodSHARD1
shard01_b mongodb03test mongodSHARD1
shard01_c mongodb04test mongodSHARD1
shard02_a mongodb03test mongodSHARD2
shard02_b mongodb04test mongodSHARD2
shard02_c mongodb01test mongodSHARD2
shard03_a mongodb04test mongodSHARD3
shard03_b mongodb01test mongodSHARD3
shard03_c mongodb02test mongodSHARD3
I’m a little confused on how I’m supposed to install this so I can monitor QAN. Ive done the following.
#pmm server:
pmm install
yum install docker
systemctl start docker
curl -fsSL -O URL
-O URL &&
sha256sum .sha256-oneline -c &&
chmod +x ./get-pmm.sh &&
./get-pmm.sh
#configure pmm on all nodes including router
server01test:
sudo yum -y install REPONAME
yum -y install pmm2-client
pmm-admin config --server-insecure-tls --server-url URL
pmm-admin add mongodb --username=test --password=PAASWORD --host=server02test
server02test:
sudo yum -y install REPONAME
yum -y install pmm2-client
pmm-admin config --server-insecure-tls --server-url URL
pmm-admin add mongodb --username=test --password=PAASWORD --host=server02test
mongo01test:
sudo yum -y install REPONAME
yum -y install pmm2-client
pmm-admin config --server-insecure-tls --server-url URL
pmm-admin add mongodb node3 --cluster shard02 mongo01test:97019
pmm-admin add mongodb node2 --cluster shard03 mongo01test:97020
mongo02test:
sudo yum -y install REPONAME
yum -y install pmm2-client
pmm-admin config --server-insecure-tls --server-url URL
pmm-admin add mongodb node1 --cluster shard01 mongo02test:97018
pmm-admin add mongodb node3 --cluster shard03 mongo02test:97020
mongo03test:
sudo yum -y install REPONAME
yum -y install pmm2-client
pmm-admin config --server-insecure-tls --server-url URL
pmm-admin add mongodb node2 --cluster shard01 mongo03test:97019
pmm-admin add mongodb node1 --cluster shard02 mongo03test:97018
mongo04test:
sudo yum -y install REPONAME
yum -y install pmm2-client
pmm-admin config --server-insecure-tls --server-url URL
pmm-admin add mongodb node3 --cluster shard01 mongo04test:97020
pmm-admin add mongodb node2 --cluster shard02 mongo04test:97019
pmm-admin add mongodb node1 --cluster shard03 mongo04test:97018
This seems to get everything working fine now when I try to setup the cluster portion I installed it on the primary shard member with these commands.
pmm-admin add mongodb shard01 --cluster shard01 mongo02test:97018
pmm-admin add mongodb shard02 --cluster shard02 mongo03test:97018
pmm-admin add mongodb shard03 --cluster shard03 mongo04test:97018
Now If I try to install it on the secondary things get complicated it tells me shard02 is already created. So I wasnt sure if I did this right. Also we will in the future encrypt the connection between these mongo shard what is the process for doing what I need once the encryption is in place.