Distributed Vault How to check satellite status before promotion
Objective
In the event that manual promotion of a satellite is required, the below checks can be made to validate the health of the candidate prior to running the promotion command.
Environment
14.0;14.2;14.4;14.6;15.0;15.2 Privileged Access Manager (PAM, self-hosted) Distributed Vault
Procedure
- Generate the DiagnoseDBReport on the Satellite Vault.
-
Run the following command from an elevated CMD prompt under {drive}:\Program Files (x86)\PrivateArk\Server:
CAVaultManager DiagnoseDBReport > DBReportSat1.txt
-
- In Satellite vault topology table verify that the expected vault is designated master with a 1 in the bIsMaster column.
Output for "SELECT * FROM vault_topology;":
+------------+----------------+-----------+-------------+-------------------+
| server_id | IP | bIsMaster | VirtualPort | i64DRUserObjectID |
+------------+----------------+-----------+-------------+-------------------+
| 1111111111 | 10.11.10.11 | 1 | 33065 | 16 |
| 2222222222 | 10.11.10.12 | 0 | 33065 | 17 |
| 3333333333 | 10.11.10.13 | 0 | 33065 | 18 |
+------------+----------------+-----------+-------------+-------------------+ - Verify Replication Health by confirming the following:
Output for "SHOW SLAVE STATUS;":
-+------------------+-------------------+-----+-----------------------+
| Slave_IO_Running | Slave_SQL_Running | ... | Seconds_Behind_Master |
-+------------------+-------------------+-----+-----------------------+
| Yes | Yes | ... | 0 |
-+------------------+-------------------+-----+-----------------------+
**Note**
The Seconds_Behind_Master should be 0 or very few, it is acceptable for this to be slightly above 0. - Check for pre-existing errant GTIDs on the promotion candidate.
Look for GTIDs in SHOW SLAVE STATUS table that match the UUID of the Satellite. These can be resolved by triggering a full replication if needed.
Output for "SHOW SLAVE STATUS;":
+------------------+----------+--------------+------------------+-----------------------------------------
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set
+------------------+----------+--------------+------------------+-----------------------------------------
| mysql-bin.013013 | 30882945 | | | 11111111-e11e-11e1-1ee1-e11e111e111e:1-111111111,
5a555555-a555-55aa-a555-55a5a55ba555:5-5555,...
Distributed Vaults Information:
===============================Current Node IP[10.102.131.129] MySQL server ID 1111111 uuid [5a555555-a555-55aa-a555-55a5a55ba555:5-5555] is a Satellite Vault that allows read only operations.
- Validate all additional satellites properly reflect the currently designated master and that all topology tables are accurate prior to promoting the candidate.