From 780b92ada9afcf1d58085a83a0b9e6bc982203d1 Mon Sep 17 00:00:00 2001
From: Lorry Tar Creator By default, adding a new site to a replication group only requires the
-client to join. Berkeley DB will automatically perform internal
-initialization from the master to the client, bringing the client into
-sync with the master.
- However, depending on the network and infrastructure, it can be
- advantageous in a few instances to use a "hot backup" to initialize a
- client into a replication group. Clients not wanting to automatically
- perform internal initialization should call the DB_ENV->rep_set_config() method to
- turn off the DB_REP_CONF_AUTOINIT flag. Turning off this
- configuration flag causes Berkeley DB to
- return DB_REP_JOIN_FAILURE to the application's DB_ENV->rep_process_message() method instead of
- performing internal initialization.
-
- To use a hot backup to initialize a client into a replication group,
-perform the following steps:
+ However, depending on the network and infrastructure, it + can be advantageous in a few instances to use a "hot backup" + to initialize a client into a replication group. Clients not + wanting to automatically perform internal initialization + should call the DB_ENV->rep_set_config() method to turn off the + DB_REP_CONF_AUTOINIT flag. Turning off this configuration + flag causes Berkeley DB to return DB_REP_JOIN_FAILURE to the + application's DB_ENV->rep_process_message() method instead of performing + internal initialization. +
++ To use a hot backup to initialize a client into a + replication group, perform the following steps: +
If copying the backup to the client takes a long time relative to the -frequency with which log files are reclaimed using the -db_archive utility or the DB_ENV->log_archive() method, it may be -necessary to suppress log reclamation until the newly restarted client -has "caught up" and applied all log records generated during its -downtime.
-As with any Berkeley DB application, the database environment must be in a -consistent state at application startup. This is most easily assured -by running recovery at startup time in one thread or process; it is -harmless to do this on both clients and masters even when not strictly -necessary.
++ If copying the backup to the client takes a long time + relative to the frequency with which log files are reclaimed + using the db_archive utility or the DB_ENV->log_archive() method, it may be + necessary to suppress log reclamation until the newly + restarted client has "caught up" and applied all log records + generated during its downtime. +
++ As with any Berkeley DB application, the database + environment must be in a consistent state at application + startup. This is most easily assured by running recovery at + startup time in one thread or process; it is harmless to do + this on both clients and masters even when not strictly + necessary. +