| 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>Displaying Replication Statistics</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="Getting Started with the Oracle Berkeley DB SQL APIs" /> |
| 10 | <link rel="up" href="sqlrep.html" title="Chapter 4. Using Replication with the SQL API" /> |
| 11 | <link rel="prev" href="reppragma.html" title="Replication PRAGMAs" /> |
| 12 | <link rel="next" href="rep_usageexamples.html" title="Replication Usage Examples" /> |
| 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">Displaying Replication Statistics</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="reppragma.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 4. Using Replication with the SQL API</th> |
| 26 | <td width="20%" align="right"> <a accesskey="n" href="rep_usageexamples.html">Next</a></td> |
| 27 | </tr> |
| 28 | </table> |
| 29 | <hr /> |
| 30 | </div> |
| 31 | <div class="sect1" lang="en" xml:lang="en"> |
| 32 | <div class="titlepage"> |
| 33 | <div> |
| 34 | <div> |
| 35 | <h2 class="title" style="clear: both"><a id="repstatistics"></a>Displaying Replication Statistics</h2> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
| 39 | <p> |
| 40 | You can display a brief summary of replication statistics |
| 41 | using <code class="literal">.stat :rep:</code>. This |
| 42 | command displays the most basic information about |
| 43 | replication status, as well as some information that is |
| 44 | useful for troubleshooting. |
| 45 | </p> |
| 46 | <pre class="programlisting">dbsql> .stat :rep: |
| 47 | Replication summary statistics |
| 48 | Environment configured as a replication client |
| 49 | Startup complete |
| 50 | 1/50232 Maximum permanent LSN |
| 51 | 2 Number of environments in the replication group |
| 52 | 0 Number of failed message sends |
| 53 | 0 Number of messages ignored due to pending recovery |
| 54 | 0 Number of log records currently queued </pre> |
| 55 | <p> |
| 56 | In the above output: |
| 57 | </p> |
| 58 | <div class="itemizedlist"> |
| 59 | <ul type="disc"> |
| 60 | <li> |
| 61 | <p> |
| 62 | <code class="literal">Environment configured as a replication client</code> |
| 63 | </p> |
| 64 | <p> |
| 65 | Identifies the current role of the site within the |
| 66 | replication group. In this example, the current |
| 67 | site is not the master site. <span class="emphasis"><em>Replication |
| 68 | client</em></span> is another term for |
| 69 | <span class="emphasis"><em>replica</em></span>. |
| 70 | </p> |
| 71 | </li> |
| 72 | <li> |
| 73 | <p> |
| 74 | <code class="literal">Startup complete</code> |
| 75 | </p> |
| 76 | <p> |
| 77 | Indicates that this replica site has completed its |
| 78 | synchronization with the master site. Replica |
| 79 | synchronization can take some time if there are |
| 80 | many master transactions with which it needs to |
| 81 | catch up. |
| 82 | </p> |
| 83 | </li> |
| 84 | <li> |
| 85 | <p> |
| 86 | <code class="literal">Maximum permanent LSN</code> |
| 87 | </p> |
| 88 | <p> |
| 89 | Identifies the most recent log record that is |
| 90 | durably replicated on a master or acknowledged by a |
| 91 | replica. You can compare a replica's maximum |
| 92 | permanent LSN to the master's maximum permanent LSN |
| 93 | to determine if the replica is caught up with the |
| 94 | master. |
| 95 | </p> |
| 96 | </li> |
| 97 | <li> |
| 98 | <p> |
| 99 | <code class="literal">Number of failed message sends</code> |
| 100 | </p> |
| 101 | <p> |
| 102 | If this number is increasing, it could be an |
| 103 | indication of network or communications problems |
| 104 | between sites in the replication group. |
| 105 | </p> |
| 106 | </li> |
| 107 | <li> |
| 108 | <p> |
| 109 | <code class="literal">Number of messages ignored due to pending recovery</code> |
| 110 | </p> |
| 111 | <p> |
| 112 | If this number is increasing, this site is ignoring |
| 113 | messages because it is starting up or recovering |
| 114 | and may need some time to catch up with the rest of |
| 115 | the replication group. |
| 116 | </p> |
| 117 | </li> |
| 118 | <li> |
| 119 | <p> |
| 120 | <code class="literal">Number of log records currently queued</code> |
| 121 | </p> |
| 122 | <p> |
| 123 | If this number is increasing, it means that |
| 124 | connections to other sites may be unavailable or |
| 125 | congested and that there may be delays in durably |
| 126 | replicating master transactions. |
| 127 | </p> |
| 128 | </li> |
| 129 | </ul> |
| 130 | </div> |
| 131 | </div> |
| 132 | <div class="navfooter"> |
| 133 | <hr /> |
| 134 | <table width="100%" summary="Navigation footer"> |
| 135 | <tr> |
| 136 | <td width="40%" align="left"><a accesskey="p" href="reppragma.html">Prev</a> </td> |
| 137 | <td width="20%" align="center"> |
| 138 | <a accesskey="u" href="sqlrep.html">Up</a> |
| 139 | </td> |
| 140 | <td width="40%" align="right"> <a accesskey="n" href="rep_usageexamples.html">Next</a></td> |
| 141 | </tr> |
| 142 | <tr> |
| 143 | <td width="40%" align="left" valign="top">Replication PRAGMAs </td> |
| 144 | <td width="20%" align="center"> |
| 145 | <a accesskey="h" href="index.html">Home</a> |
| 146 | </td> |
| 147 | <td width="40%" align="right" valign="top"> Replication Usage Examples</td> |
| 148 | </tr> |
| 149 | </table> |
| 150 | </div> |
| 151 | </body> |
| 152 | </html> |