NextGen Knowledge Center

Replicate the Database

You can use replication to designate a secondary appliance that contains a copy of the database that is on your primary appliance. After everything is set up, and the initial copy of the database is created on the secondary system, updates made to the database on the primary system ripple through to the replica database on the secondary system.

One of the principal reasons for setting up replication is so that the secondary database can be used as a failover system if the primary database becomes unusable. For this reason, the secondary database is frequently referred to as a standby database, because it is ready and waiting, standing by in case it is needed. It is also possible to set up multiple standby databases for the same primary database.

For more information on setting up failover, see the Set Up Automatic Failover section.

  1. To prepare to start the configuration for replication for a Mirth® Appliance by NextGen Healthcare, first log on to the control panel of the system which contains the standby copy of the database, then select Services > Postgres > Replication to go to the Postgres Replication Status window.
  2. To start the replication setup, select Replicate from a remote database.
    Postgres Replication Status window

  3. Enter the IP address of the primary database, then select Next.
    Select Primary Database to Replicate window
  4. Select Next to be transferred to the primary appliance where you perform the next step.
    Go Set Up the Primary window

  5. Select Authorize x.x.x.x to replicate this database to allow replication of the database.
    Authorize IP Address window

  6. Select the Next to be transferred back to the appliance that has the standby copy of the database and is where you perform the final setup steps.
    Return to the Standby window

  7. Select Begin Copy to start the copy process.
    Copy Database Files from Primary window

  8. When a window appears requesting confirmation that you want to perform the copy, select OK to start the copy process.
    When the copy is finished, an informational window displays the output from the copy operation.
    View Output window

  9. Select Done.
When the replication setup process is complete, the Postgres Replication Status window on the primary appliance and on the standby appliance display their respective statuses.

Select Set up Auto Failover on either the primary system or the standby system to go to the window where you can set up automatic changeover to the standby database if the primary database has a failure for any reason. For more information, see Set Up Automatic Failover.