File: README.rst

package info (click to toggle)
pgqd 3.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 792 kB
  • sloc: ansic: 5,676; sh: 3,892; makefile: 893
file content (106 lines) | stat: -rw-r--r-- 1,739 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106

====
pgqd
====

--------------------------
Maintenance daemon for PgQ
--------------------------

:Manual section: 1

Synopsis
========

pgqd [-qvd] config

pgqd [-skr] config

pgqd --ini|-h|-V

Description
===========

Runs both ticker and periodic maintenence for all
databases in one PostgreSQL cluster.

Options
=======

-q      Do not log to stdout
-v      Verbose log
-d      Daemonize process
-s      Send SIGINT to running process to stop it
-k      Send SIGTERM to running process to stop it
-r      Send SIGHUP to running process to reload config
-h      Show help
-V      Show version
--ini   Show sample config

Configuration
=============

Config uses `ini` file syntax::

    [pgqd]
    logfile = ~/log/pgqd.log
    pidfile = ~/pid/pgqd.pid

Options:

logfile
    Filename to log to.
    Default: empty.

pidfile
    Filename to store pid, required when daemonizing.
    Default: empty.

base_connstr
    Connect string without dbname=
    Default: empty.

initial_database
    Startup db to query other databases.
    Default: template1

database_list
    Limit ticker to specific databases.
    Default: empty, which means all database.

syslog
    Whether to log into syslog.
    Default: 1

syslog_ident
    Name to use for syslog.
    Default: pgqd

check_period
    How often to check for new databases, in seconds.
    Default: 60.

retry_period
    How often to flush retry queue, in seconds.
    Default: 30

maint_period
    How often to do maintentance, in seconds.
    Default: 120

ticker_period
    How often to run ticker, in seconds.
    Default: 1


Install
=======

pgqd uses autoconf based build system::

    ./configure --prefix=/opt
    make
    make install

Dependencies: libevent, python3-docutils