Debian Codegraph @

docs/programmer_reference/rep_pri.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>Replication environment priorities</title>
7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB Programmer's Reference Guide" />
10 <link rel="up" href="rep.html" title="Chapter 12.  Berkeley DB Replication" />
11 <link rel="prev" href="rep_id.html" title="Replication environment IDs" />
12 <link rel="next" href="rep_app.html" title="Building replicated applications" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">Replication environment priorities</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="rep_id.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 12. 
26 Berkeley DB Replication
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="rep_app.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="rep_pri"></a>Replication environment priorities</h2>
38 </div>
39 </div>
40 </div>
41 <p>Each database environment included in a replication group must have
42 a priority, which specifies a relative ordering among the different
43 environments in a replication group. This ordering is a factor in
44 determining which environment will be selected as a new master in case
45 the existing master fails. Both Replication Manager applications and
46 Base API applications should specify
47 environment priorities.</p>
48 <p>Priorities are an unsigned integer, but do not need to be unique
49 throughout the replication group. A priority of 0 means the system can
50 never become a master. Otherwise, larger valued priorities
51 indicate a more desirable master. For example, if a replication group
52 consists of three database environments, two of which are connected by
53 an OC3 and the third of which is connected by a T1, the third database
54 environment should be assigned a priority value which is lower than
55 either of the other two.</p>
56 <p>Desirability of the master is first determined by the client having
57 the most recent log records. Ties in log records are broken with
58 the client priority. If both sites have the same log
59 and the same priority, one is selected at random.</p>
60 </div>
61 <div class="navfooter">
62 <hr />
63 <table width="100%" summary="Navigation footer">
64 <tr>
65 <td width="40%" align="left"><a accesskey="p" href="rep_id.html">Prev</a> </td>
66 <td width="20%" align="center">
67 <a accesskey="u" href="rep.html">Up</a>
68 </td>
69 <td width="40%" align="right"> <a accesskey="n" href="rep_app.html">Next</a></td>
70 </tr>
71 <tr>
72 <td width="40%" align="left" valign="top">Replication environment IDs </td>
73 <td width="20%" align="center">
74 <a accesskey="h" href="index.html">Home</a>
75 </td>
76 <td width="40%" align="right" valign="top"> Building replicated applications</td>
77 </tr>
78 </table>
79 </div>
80 </body>
81 </html>