]> git.8kb.co.uk Git - pgpool-ii/pgpool-ii_2.2.5/blob - pgpool.conf.sample
Attempt to send a proper failure message to frontend when authentication
[pgpool-ii/pgpool-ii_2.2.5] / pgpool.conf.sample
1 #
2 # pgpool-II configuration file sample
3 # $Header: /cvsroot/pgpool/pgpool-II/pgpool.conf.sample,v 1.26 2009/02/15 05:26:28 t-ishii Exp $
4
5 # Host name or IP address to listen on: '*' for all, '' for no TCP/IP
6 # connections
7 listen_addresses = 'localhost'
8
9 # Port number for pgpool
10 port = 9999
11
12 # Port number for pgpool communication manager
13 pcp_port = 9898
14
15 # Unix domain socket path.  (The Debian package defaults to
16 # /var/run/postgresql.)
17 socket_dir = '/tmp'
18
19 # Unix domain socket path for pgpool communication manager.
20 # (Debian package defaults to /var/run/postgresql)
21 pcp_socket_dir = '/tmp'
22
23 # Unix domain socket path for the backend. Debian package defaults to /var/run/postgresql!
24 backend_socket_dir = '/tmp'
25
26 # pgpool communication manager timeout. 0 means no timeout, but strongly not recommended!
27 pcp_timeout = 10
28
29 # number of pre-forked child process
30 num_init_children = 32
31
32 # Number of connection pools allowed for a child process
33 max_pool = 4
34
35 # If idle for this many seconds, child exits.  0 means no timeout.
36 child_life_time = 300
37
38 # If idle for this many seconds, connection to PostgreSQL closes.
39 # 0 means no timeout.
40 connection_life_time = 0
41
42 # If child_max_connections connections were received, child exits.
43 # 0 means no exit.
44 child_max_connections = 0
45
46 # If client_idle_limit is n (n > 0), the client is forced to be
47 # disconnected whenever after n seconds idle (even inside an explicit
48 # transactions!)
49 # 0 means no disconnect.
50 client_idle_limit = 0
51
52 # Maximum time in seconds to complete client authentication.
53 # 0 means no timeout.
54 authentication_timeout = 60
55
56 # Logging directory
57 logdir = '/tmp'
58
59 # pid file name
60 pid_file_name = '/var/run/pgpool/pgpool.pid'
61
62 # Replication mode
63 replication_mode = false
64
65 # Load balancing mode, i.e., all SELECTs are load balanced.
66 # This is ignored if replication_mode is false.
67 load_balance_mode = false
68
69 # if there's a data mismatch between master and secondary
70 # start degeneration to stop replication mode
71 replication_stop_on_mismatch = false
72
73 # If true, replicate SELECT statement when load balancing is disabled.
74 # If false, it is only sent to the master node.
75 replicate_select = false
76
77 # Semicolon separated list of queries to be issued at the end of a session
78 reset_query_list = 'ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT'
79 # for 8.3 or newer PostgreSQL versions DISCARD ALL can be used as
80 # follows. However beware that DISCARD ALL holds exclusive lock on
81 # pg_listener so it will be a serious performance problem if there are
82 # lots of concurrent sessions.
83 # reset_query_list = 'ABORT; DISCARD ALL'
84
85 # If true print timestamp on each log line.
86 print_timestamp = true
87
88 # If true, operate in master/slave mode.
89 master_slave_mode = false
90
91 # If true, cache connection pool.
92 connection_cache = true
93
94 # Health check timeout.  0 means no timeout.
95 health_check_timeout = 20
96
97 # Health check period.  0 means no health check.
98 health_check_period = 0
99
100 # Health check user
101 health_check_user = 'nobody'
102
103 # Execute command by failover.
104 # special values:  %d = node id
105 #                  %h = host name
106 #                  %p = port number
107 #                  %D = database cluster path
108 #                  %m = new master node id
109 #                  %M = old master node id
110 #                  %% = '%' character
111 #
112 failover_command = ''
113
114 # Execute command by failback.
115 # special values:  %d = node id
116 #                  %h = host name
117 #                  %p = port number
118 #                  %D = database cluster path
119 #                  %m = new master node id
120 #                  %M = old master node id
121 #                  %% = '%' character
122 #
123 failback_command = ''
124
125 # If true, automatically locks a table with INSERT statements to keep
126 # SERIAL data consistency.  If the data does not have SERIAL data
127 # type, no lock will be issued. An /*INSERT LOCK*/ comment has the
128 # same effect.  A /NO INSERT LOCK*/ comment disables the effect.
129 insert_lock = true
130
131 # If true, ignore leading white spaces of each query while pgpool judges
132 # whether the query is a SELECT so that it can be load balanced.  This
133 # is useful for certain APIs such as DBI/DBD which is known to adding an
134 # extra leading white space.
135 ignore_leading_white_space = true
136
137 # If true, print all statements to the log.  Like the log_statement option
138 # to PostgreSQL, this allows for observing queries without engaging in full
139 # debugging.
140 log_statement = false
141
142 # If true, incoming connections will be printed to the log.
143 log_connections = false
144
145 # If true, hostname will be shown in ps status. Also shown in
146 # connection log if log_connections = true.
147 # Be warned that this feature will add overhead to look up hostname.
148 log_hostname = false
149
150 # if non 0, run in parallel query mode
151 parallel_mode = false
152
153 # if non 0, use query cache
154 enable_query_cache = false
155
156 #set pgpool2 hostname 
157 pgpool2_hostname = ''
158
159 # system DB info
160 system_db_hostname = 'localhost'
161 system_db_port = 5432
162 system_db_dbname = 'pgpool'
163 system_db_schema = 'pgpool_catalog'
164 system_db_user = 'pgpool'
165 system_db_password = ''
166
167 # backend_hostname, backend_port, backend_weight
168 # here are examples
169 #backend_hostname0 = 'host1'
170 #backend_port0 = 5432
171 #backend_weight0 = 1
172 #backend_data_directory0 = '/data'
173 #backend_hostname1 = 'host2'
174 #backend_port1 = 5433
175 #backend_weight1 = 1
176 #backend_data_directory1 = '/data1'
177
178 # - HBA -
179
180 # If true, use pool_hba.conf for client authentication. In pgpool-II
181 # 1.1, the default value is false. The default value will be true in
182 # 1.2.
183 enable_pool_hba = false
184
185 # - online recovery -
186 # online recovery user
187 recovery_user = 'nobody'
188
189 # online recovery password
190 recovery_password = ''
191
192 # execute a command in first stage.
193 recovery_1st_stage_command = ''
194
195 # execute a command in second stage.
196 recovery_2nd_stage_command = ''
197
198 # maximum time in seconds to wait for the recovering node's postmaster
199 # start-up. 0 means no wait.
200 # this is also used as a timer waiting for clients disconnected before
201 # starting 2nd stage
202 recovery_timeout = 90
203
204 # If client_idle_limit_in_recovery is n (n > 0), the client is forced
205 # to be disconnected whenever after n seconds idle (even inside an
206 # explicit transactions!)  0 means no disconnect. This parameter only
207 # takes effect in recovery 2nd stage.
208 client_idle_limit_in_recovery = 0