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>Stop Auto-Initialization</title> 7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> 8 <meta name="generator" content="DocBook XSL Stylesheets V1.62.4" /> 9 <link rel="home" href="index.html" title="Getting Started with Replicated Berkeley DB Applications" /> 10 <link rel="up" href="addfeatures.html" title="Chapter��5.��Additional Features" /> 11 <link rel="previous" href="manageblock.html" title="Managing Blocking Operations" /> 12 <link rel="next" href="c2ctransfer.html" title="Client to Client Transfer" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">Stop Auto-Initialization</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="manageblock.html">Prev</a>��</td> 22 <th width="60%" align="center">Chapter��5.��Additional Features</th> 23 <td width="20%" align="right">��<a accesskey="n" href="c2ctransfer.html">Next</a></td> 24 </tr> 25 </table> 26 <hr /> 27 </div> 28 <div class="sect1" lang="en" xml:lang="en"> 29 <div class="titlepage"> 30 <div> 31 <div> 32 <h2 class="title" style="clear: both"><a id="noautoinit"></a>Stop Auto-Initialization</h2> 33 </div> 34 </div> 35 <div></div> 36 </div> 37 <p> 38 As stated in the previous section, when a replication replica is synchronizing 39 with its master, it will block all DB operations until the synchronization 40 is completed. You can turn off this behavior (see <a href="manageblock.html">Managing Blocking Operations</a>), but for replicas that have been out of touch 41 from their master for a very long time, this may not be enough. 42 </p> 43 <p> 44 If a replica has been out of touch from its master long enough, it may find that 45 it is not possible to perform synchronization. When this happens, by default the 46 master and replica internally decided to completely re-initialize the replica. 47 This re-initialization involves discarding the replica's current database(s) and 48 transferring new ones to it from the master. Depending on the size of the master's 49 databases, this can take a long time, during which time the replica will be 50 complete non-responsive when it comes to performing database operations. 51 </p> 52 <p> 53 It is possible that there is a time of the day when it is better to perform a replica 54 re-initialization. Or, you simply might want to decide to bring the replica up to 55 speed by restoring it's databases using a hot-backup taken from the master. Either 56 way, you can decide to prevent automatic-initialization of your replica. To do this 57 specify 58 59 <span> 60 <tt class="literal">ReplicationConfig.NOAUTOINIT</tt> and 61 <tt class="literal">true</tt> to 62 <tt class="methodname">Environment.setReplicationConfig()</tt>. 63 To turn off this feature, specify 64 <tt class="literal">false</tt> for the 65 <tt class="literal">ReplicationConfig.NOAUTOINIT</tt> field. 66 </span> 67 </p> 68 </div> 69 <div class="navfooter"> 70 <hr /> 71 <table width="100%" summary="Navigation footer"> 72 <tr> 73 <td width="40%" align="left"><a accesskey="p" href="manageblock.html">Prev</a>��</td> 74 <td width="20%" align="center"> 75 <a accesskey="u" href="addfeatures.html">Up</a> 76 </td> 77 <td width="40%" align="right">��<a accesskey="n" href="c2ctransfer.html">Next</a></td> 78 </tr> 79 <tr> 80 <td width="40%" align="left" valign="top">Managing Blocking Operations��</td> 81 <td width="20%" align="center"> 82 <a accesskey="h" href="index.html">Home</a> 83 </td> 84 <td width="40%" align="right" valign="top">��Client to Client Transfer</td> 85 </tr> 86 </table> 87 </div> 88 </body> 89</html> 90