나는 약 150의 요청을 받아들이도록 PgPool을 설정하려고 시도 해왔다. Postgres 서버는 단지 100 개의 연결만을 허용하도록 설정되었다. 100을 넘는 모든 것이 PgPool에 의해 풀링 될 필요가 있습니다. 나는 그것을 얻는 것 같지 않습니다. PgPool에 요청 대기열 만 있으면됩니다. 현재 구성에서는 그렇게하지 않습니다. 내 JMeter 테스트에서 100을 넘어서 연결을 시도 할 때 postgres에서 PSQL 오류 : sorry, too many clients
을 말하는 오류가 발생합니다.좋은 PgPool II 설정
는 다음 매개 변수 PGPool를 구성한 I :
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 여분의 연결 요청을 대기열에 필요하기 때문에, 위의 구성이 정확한지? 올바른 구성을 알려주십시오.
Postgresql에 직접 연결하는 대신 응용 프로그램에서 pgpool 인스턴스를 대상으로합니까? –
PGPool 포트 9999를 통해 postgres 서버에 연결합니다. 'jdbc : postgresql : // localhost : 9999/dbname? user = username & password = passwordofuser' –