MongoDB의 Connection Pool은 MongoDB Java Driver에서 지원된다.

connection string에서 option 있는데 maxPoolSize option 통해서 pool size 지정할수 있음


connection pool 관련 uri option은 아래와 같다.

 Connection pool configuration:

  • maxPoolSize=n: The maximum number of connections in the connection pool.
  • waitQueueMultiple=n : this multiplier, multiplied with the maxPoolSize setting, gives the maximum number of threads that may be waiting for a connection to become available from the pool. All further threads will get an exception right away.
  • waitQueueTimeoutMS=ms: The maximum wait time in milliseconds that a thread may wait for a connection to become available.

전문은 아래 참조

'Development > Database' 카테고리의 다른 글

MongoDB 기본 명령어  (0) 2019.10.19
MongoDB Ubuntu에 설치하기  (0) 2017.02.10
MongoDB 에서 admin 만들기  (2) 2017.02.10

+ Recent posts