Add note about logfile rotation and repmgrd

This commit is contained in:
Ian Barwick
2015-11-03 15:34:43 +09:00
parent 0bf3fb0605
commit df6517f167
2 changed files with 19 additions and 0 deletions

5
FAQ.md
View File

@@ -143,3 +143,8 @@ General
Note that after registering a delayed standby, `repmgrd` will only start
once the metadata added in the master node has been replicated.
- How can I get `repmgrd` to rotate its logfile?
Configure your system's `logrotate` service to do this; see example
in README.md

View File

@@ -263,6 +263,20 @@ Example log output (at default log level):
[2015-03-11 13:15:40] [INFO] reloading configuration file and updating repmgr tables
[2015-03-11 13:15:40] [INFO] starting continuous standby node monitoring
Note that currently `repmgrd` does not provide logfile rotation. To ensure
the current logfile does not grow indefinitely, configure your system's `logrotate`
to do this. Sample configuration to rotate logfiles weekly with retention
for up to 52 weeks and rotation forced if a file grows beyond 100Mb:
/var/log/postgresql/repmgr-9.4.log {
missingok
compress
rotate 52
maxsize 100M
weekly
create 0600 postgres postgres
}
Witness server
--------------