기술지원 문의

DBPOOL관련 설정법과 파라메터에 대한 설정법에 대해 알려주세요
김남건 / 2004-03-09 20:30

질의 응답을 읽다보니. DBPOOL관련 설정법과 파라메터에 대한 설정법이 있는데, 
연결설정은 설명이 되어 있는데, resin.conf에서 설정되는 파라메터에 대한 설명이 좀 있으면 좋겠습니다. 
http://www.caucho.com/resin-3.0/db/config.xtp#database 에 보면 파라메터에 대한 설명이 있는데, 
 그파라메터들에 대한 설명을 좀 해주셨으면 합니다. 
max-connections Pooling parameter - maximum number of allowed connections 20  
max-idle-time Pooling parameter - maximum time an idle connection is kept in the pool 30 sec  
max-active-time Pooling parameter - maximum time a connection allowed to be active  6 hours  
max-pool-time Pooling parameter - maximum time a connection is kept in the pool 24 hours  
connection-wait-time Pooling parameter - how long to wait for an idle connection (Resin 1.2.3) 10 minutes  
max-overflow-connections Pooling parameter - how many \"overflow\" connection are allowed if the connection wait times out. 0  
ping-table Reliability parameter - The database table used to \"ping\", checking that the connection is still live. n/a  
ping Reliability parameter - test for live connections before allocating them from the pool. false  
ping-interval Reliability parameter - how often to ping for ping-on-idle 60s  
prepared-statement-cache-size A cache that holds prepared statements, a reused prepared statement avoids the overhead of the driver making the prepared statement 0  
spy A debugging aid, if true, generate info level log events that reveal the SQL that is used with the connections. false  

[Re]DBPOOL관련 설정법과 파라메터에 대한 설정법에 대해 알려주세요
관리자 / 2004-03-12 10:33

영문으로 되어 있는 부분이 dbpool설명의 전부이며, 참고로 덧붙인다면..

max-connections Pooling parameter - pool에 놓일 최대 connetion 수. 디폴트로 20
                                                           (최대 connection수를 체크해서 바꾸시면 됩니다. 보통 디폴트로 사용해도 문제 없습니다.)
max-idle-time Pooling parameter - connection을 사용하고 반납되었지만, pool에 그대로 위치할 시간. 디폴트로 30초
                                                      (재사용성을 위해. 시간을 필요이상으로 늘이면 오히려 포퍼먼스에 역효과가 날 수 있습니다.)
max-active-time Pooling parameter - connection이 active된 최대 시간 설정. 디폴트로 6시간
                                                          (사용후 connection이 제대로 반납이 이루어지지 않을 경우 시간을 줄여 강제로 끊어 줄 수 있습니다)
max-pool-time Pooling parameter - pool을 유지할 최대시간. 디폴트로 24시간
                                                          (conection이 필요 이상 계속해서 늘어난다면 이 부분도 튜닝을 고려해야 합니다)
connection-wait-time Pooling parameter - 사용하지 않는 connection이 pool에서 기다릴 시간. 디폴트로 10분.
max-overflow-connections Pooling parameter - connection이 time out되었을때 얼마나 conection을 overflow할지 선택합니다. 디폴트로 0
이정도가 connection parameter 설정에 필요한 것들입니다.

그리고, ping에 관련된 paramter들은 db와 연결이 되어 있는지 확인하는 부분입니다.

마지막으로
spy parameter는 디폴트로 false로 되어 있지만, true로 한다면 info level log에 sql문이 프린트 됩니다.