You can fail over the Directory database using either the backup and restore failover mode or the mirroring failover mode.
The following table compares the differences between the two database failover modes.
Backup and restore (Directory Manager) | Mirroring (Microsoft SQL Server) |
---|---|
Multiple backup instances of the Directory database are kept relatively in sync with its master instance through regular backups performed by the Directory Manager role. | A single copy (the mirror instance) of the Directory database is kept perfectly in sync with the master copy (or principal instance) using SQL Server database mirroring. |
The failover database can only be as up to date as the most recent backup. | The failover database is an exact copy of the principal database. |
Changes made while the Directory is connected to the backup database are lost when the Directory switches back to the master database. | Changes can be made to the Directory database at any time without ever losing data. |
Both master and backup databases must be hosted on Security Center servers. | The principal and mirror database instances can be hosted on any computer. |
Can work with SQL Server Express edition which is free. | Requires SQL Server 2008 Standard Edition or better, that supports mirroring. |
Recommended when the entity configurations are not frequently updated. | Recommended when entity configurations are frequently updated, such as for cardholder and visitor management. |
Causes a temporary disconnection of all client applications and roles while the database failover is in progress. | Causes the Directory to restart if the principal server is unavailable for longer than a few seconds. |
Database failover is handled by the Directory Manager role. | Database failover is executed by a separate Witness server running on SQL Server Express (optional but highly recommended) or it has to be manually detected and executed by the database administrator. |