Chapter 11. Replication Methods
Prev |  | Next

## Chapter 11. Replication Methods

This chapter describes the APIs available to build Berkeley DB replicated applications. There are two different ways to build replication into a Berkeley DB application, and the APIs for both are described in this chapter.

For an overview of the two different ways to build a replicated application, see the Berkeley DB Getting Started with Replicated Applications guide.

The first, and simplest, way to build a replication Berkeley DB application is via the Replication Manager. If the Replication Manager does not meet your application's architectural requirements, they you can write your own replication implementation using the "Base APIs".

Note that the Replication Manager is written using the Base APIs.

Note, also, that applications which make use of the Replication Manager use many of the Base APIs as the situation warrants. That said, a few Base API methods cannot be used by applications that are making use of the Replication Manager. Where this is the case, this is noted in the following method descriptions.

## Replication and Related Methods

Replication Manager Methods | Description
--- | ---
DbEnv::repmgr_add_remote_site() | Specify the Replication Manager's remote sites
DbEnv::repmgr_set_ack_policy(), DbEnv::repmgr_get_ack_policy() | Specify the Replication Manager's client acknowledgement policy
DbEnv::repmgr_set_local_site() | Specify the Replication Manager's local site
DbEnv::repmgr_site_list() | List the sites and their status
DbEnv::repmgr_start() | Start the Replication Manager
DbEnv::repmgr_stat() | Replication Manager statistics
DbEnv::repmgr_stat_print() | Print Replication Manager statistics
Base API Methods
DbEnv::rep_elect() | Hold a replication election
DbEnv::rep_process_message() | Process a replication message
DbEnv::rep_set_transport() | Configure replication transport callback
DbEnv::rep_start() | Start replication
Additional Replication Methods
DbEnv::rep_stat() | Replication statistics
DbEnv::rep_stat_print() | Print replication statistics
DbEnv::rep_sync() | Replication synchronization
Replication Configuration
DbEnv::rep_set_clockskew(), DbEnv::rep_get_clockskew() | Configure master lease clock adjustment
DbEnv::rep_set_config(), DbEnv::rep_get_config() | Configure the replication subsystem
DbEnv::rep_set_limit(), DbEnv::rep_get_limit() | Limit data sent in response to a single message
DbEnv::rep_set_nsites(), DbEnv::rep_get_nsites() | Configure replication group site count
DbEnv::rep_set_priority(), DbEnv::rep_get_priority() | Configure replication site priority
DbEnv::rep_set_request(), DbEnv::rep_get_request() | Configure replication client retransmission requests
DbEnv::rep_set_timeout(), DbEnv::rep_get_timeout() | Configure replication timeouts

Prev |  | Next
DbEnv::mutex_unlock() | Home | DbEnv::rep_elect()