Skip to content

Commit

Permalink
ovdb_monitor: Document the frequency of actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-Elie committed Sep 17, 2023
1 parent d869c9c commit c1e7189
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion doc/pod/ovdb.pod
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ already-established database. Default is C<32>.
If txn_nosync is set to false, S<Berkeley DB> flushes the log after every
transaction. This minimizes the number of transactions that may be lost
in the event of a crash, but results in significantly degraded
performance. Default is true.
performance. Default is true, in which case B<ovdb_monitor> flushes the
transaction logs every 30 seconds.

=item I<useshm>

Expand Down
5 changes: 3 additions & 2 deletions doc/pod/ovdb_monitor.pod
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ Use B<ovdb_init> to start B<ovdb_monitor>

When started (normally by B<ovdb_init> that is invoked by B<rc.news>),
B<ovdb_monitor> forks three processes that perform routine database
maintenance tasks. These are transaction checkpointing, deadlock
detection, and transaction log removal.
maintenance tasks. These are transaction checkpointing (every 30 seconds),
deadlock detection (every 30 seconds), and transaction log removal (every 45
seconds).

The process ID of the parent is written to F<ovdb_monitor.pid> in the
I<pathrun> directory. This PID is used by other INN commands to verify
Expand Down
3 changes: 2 additions & 1 deletion samples/ovdb.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
# If txn_nosync is set to false, Berkeley DB flushes the log after every
# transaction. This minimizes the number of transactions that may be
# lost in the event of a crash, but results in significantly degraded
# performance. Default is true.
# performance. Default is true (in which case ovdb_monitor flushes the
# transaction logs every 30 seconds).
#txn_nosync true

# If useshm is set to true, Berkeley DB will use shared memory instead
Expand Down

0 comments on commit c1e7189

Please sign in to comment.