virt.virt_test_utils: run_autotest - 'tar' needs relative paths to strip the leading '/'
[autotest-zwu.git] / client / tests / dbt2 / pgpool.conf
blobd5b2f07c4942e90c4b016c84a8ef7ee8a0dcd131
2 # pgpool configuration file sample
3 # $Header: /cvsroot/pgpool/pgpool-II/pgpool.conf.sample,v 1.1.1.1 2006/09/08 03:36:04 t-ishii Exp $
5 # Host name or IP address to listen on: '*' for all, '' for no TCP/IP
6 # connections
7 listen_addresses = 'localhost'
9 # Port number for pgpool
10 port = 9999
12 # Port number for pgpool communication manager
13 pcp_port = 9898
15 # Unix domain socket path.  (The Debian package defaults to
16 # /var/run/postgresql.)
17 socket_dir = '/tmp'
19 # Unix domain socket path for pgpool communication manager.
20 # (Debian package default to /var/run/postgresql)
21 pcp_socket_dir = '/tmp'
23 # Unix domain socket path for the backend. Debian package default to /var/run/postgresql!
24 backend_socket_dir = '/tmp'
26 # pgpool communication manager timeout. 0 means no timeout, but strongly not recommended!
27 pcp_timeout = 10
29 # number of pre-forked child process
30 num_init_children = 32
32 # Number of connection pools allowed for a child process
33 max_pool = 4
35 # If idle for this many seconds, child exits.  0 means no timeout.
36 child_life_time = 300
38 # If idle for this many seconds, connection to PostgreSQL closes.
39 # 0 means no timeout.
40 connection_life_time = 0
42 # If child_max_connections connections were received, child exits.
43 # 0 means no exit.
44 child_max_connections = 0
46 # Logging directory
47 logdir = '/tmp'
49 # Replication mode
50 #replication_mode = false
52 # Set this to true if you want to avoid deadlock situations when
53 # replication is enabled.  There will, however, be a noticable performance
54 # degration.  A workaround is to set this to false and insert a /*STRICT*/
55 # comment at the beginning of the SQL command.
56 #replication_strict = true
58 # When replication_strict is set to false, there will be a chance for
59 # deadlocks.  Set this to nonzero (in milliseconds) to detect this
60 # situation and resolve the deadlock by aborting current session.
61 #replication_timeout = 5000
63 # Load balancing mode, i.e., all SELECTs except in a transaction block
64 # are load balanced.  This is ignored if replication_mode is false.
65 #load_balance_mode = false
67 # if there's a data mismatch between master and secondary
68 # start degenration to stop replication mode
69 #replication_stop_on_mismatch = false
71 # Semicolon separated list of queries to be issued at the end of a session
72 reset_query_list = 'ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT'
74 # If true print time stamp on each log line.
75 print_timestamp = true
77 # If true, operate in master/slave mode.
78 #master_slave_mode = false
80 # If true, cache connection pool.
81 connection_cache = true
83 # Health check timeout.  0 means no timeout.
84 health_check_timeout = 20
86 # Health check period.  0 means no health check.
87 health_check_period = 0
89 # Health check user
90 health_check_user = 'nobody'
92 # If true, automatically lock table with INSERT statements to keep SERIAL
93 # data consistency.  An /*INSERT LOCK*/ comment has the same effect.  A
94 # /NO INSERT LOCK*/ comment disables the effect.
95 insert_lock = false
97 # If true, ignore leading white spaces of each query while pgpool judges
98 # whether the query is a SELECT so that it can be load balanced.  This
99 # is useful for certain APIs such as DBI/DBD which is known to adding an
100 # extra leading white space.
101 ignore_leading_white_space = false
103 # If true, print all statements to the log.  Like the log_statement option
104 # to PostgreSQL, this allows for observing queries without engaging in full
105 # debugging.
106 log_statement = true
108 # if non 0, run in parallel query mode
109 #parallel_mode = false
111 # if non 0, use query cache
112 #enable_query_cache = false
114 #set pgpool2 hostname 
115 #pgpool2_hostname = ''
117 # system DB info
118 #system_db_hostname = 'localhost'
119 #system_db_port = 5432
120 #system_db_dbname = 'pgpool'
121 #system_db_schema = 'pgpool_catalog'
122 #system_db_user = 'pgpool'
123 #system_db_password = ''
125 # backend_hostname, backend_port, backend_weight
126 # here are examples
127 backend_hostname0 = 'localhost'
128 backend_port0 = 5432
129 backend_weight0 = 1
130 #backend_hostname0 = 'host1'
131 #backend_port0 = 5432
132 #backend_weight0 = 1
133 #backend_hostname1 = 'host2'
134 #backend_port1 = 5433
135 #backend_weight1 = 1