Configure database high availability to send requests to a secondary database if the primary database is unavailable.
In the Management Console, create a database node with a connection to the primary database and a database node with a connection to the secondary database.
Add the Dynamic Data Masking service for the database type.
Open the connection rule set for the Dynamic Data Masking service and create a connection rule that sends requests to the primary database if a connection to the database exists. Configure the following properties for the connection rule:
Matcher
Select the Check Database Connection matcher. The Check Database Connection matcher verifies whether a connection to the database exists.
Database
Enter the name of database node for the primary database.
Rule Action
Select the Switch to Database action. The Switch to Database action sends the request to the database if the matcher identified a connection.
Database
Enter the name of database node for the primary database.
Processing Action
Select Stop if Applied. The Rule Engine does not continue to the next rule in the tree if Dynamic Data Masking applied the Switch to Database rule action.
In the connection rule set, create a rule that sends the request to the secondary database if a connection to the primary database does not exist. Configure the following properties for the connection rule:
Matcher
Select the Check Database Connection matcher.
Database
Enter the name of the database node for the secondary database.
Rule Action
Select the Switch to Database action.
Database
Enter the name of the database node for the secondary database.
Processing Action
Select Stop if Applied.
Save the connection rule set.
If a connection to the primary database exists, Dynamic Data Masking sends the request to the primary database. If a connection to the primary database does not exist, Dynamic Data Masking sends the request to the secondary database.