slony_logshipping(1) | Slony-I 2.2.11 Documentation | slony_logshipping(1) |
slony_logshipping - slony_logshippping daemon
slony_logshipper is a tool designed to help apply logs. It runs as a daemon and scans the archive directory for new .SQL files which it then applies to the target database. It can be run with three sorts of parameters:
display this help text and exit
display program version and exit
quiet mode
cause running daemon to reopen its logfile
cause running daemon to resume after error
cause running daemon to enter smart shutdown mode
cause running daemon to enter immediate shutdown mode
destroy existing semaphore set and message queue (use with caution)
stay in foreground (don't daemonize)
enter smart shutdown mode immediately
This configuration file consists of the following specifications:
Where the log shipper will leave messages.
Cluster name
Optional conninfo for the destination database. If given, the log shipper will connect to this database, and apply logs to it.
The archive directory is required when running in ‘database-connected’ mode to have a place to scan for missing (unapplied) archives.
If specified, the log shipper will write the results of data massaging into result logfiles in this directory.
This fights eventual resource leakage; the daemon will enter ‘smart shutdown’ mode automatically after processing this many archives.
One may filter out single tables from log shipped replication
One may filter out entire namespaces from log shipped replication
One may rename specific tables.
One may rename entire namespaces.
Pre- and post-processing commands are executed via system(3).
An ‘@’ as the first character causes the exit code to be ignored. Otherwise, a nonzero exit code is treated as an error and causes processing to abort.
Pre- and post-processing commands have two further special variables defined:
The error command indicates a command to execute upon encountering an error. All logging since the last successful completion of an archive is available in the $errortext variable.
In the example shown, this sends an email to the DBAs upon encountering an error.
Each filename is added to the SystemV Message queue for processing by a slony_logshipper process.
4 November 2022 |