我一直在尝试配置PgPool来接受约150的请求。Postgres服务器被配置为只接受100个连接。超过100的任何东西都需要被PgPool汇集。我似乎不明白。我只需要PgPool排队请求,我目前的配置不这样做。从我的JMeter测试中,当我尝试连接超过100时,postgres给我一个错误,说PSQL错误:sorry, too many clients
。一个很好的PgPool II配置
我只已配置PGPool使用以下参数:
listen_address = 'localhost'
port = 9999
backend_hostname0 = 'localhost'
backend_port0 = 5432
num_init_children = 100
max_pool = 4
child_life_time =120
child_max_connections = 0
connections_life_tome = 120
client_idle_limit = 0
由于我只需要PgPool到队列的额外连接的请求,在上述配置是否正确? 请告知正确的配置。
您是否在应用程序中定位了pgpool实例,而不是直接连接到Postgresql? – 2012-04-28 09:09:25
我通过PGPool端口9999连接到postgres服务器'jdbc:postgresql:// localhost:9999/dbname?user = username&password = passwordofuser' – 2012-04-28 09:45:56