Closed mohsen-eng74 closed 9 months ago
On 16/12/2023 14:34, Mohsen Rahmati wrote:
Hello, Does |MaxPoolSize| limit the total connection that can be opened simultaneously? I've configured the |/etc/odbcinst.ini| as follows, But whenever I create a connection simultaneously (using asyncio or multithreading) the total number of opened connections (checked via |lsof -ai -p "PID"|) goes over the limit I've set for |MaxPoolSize| to the created number of threads or tasks.
No, it limits the number of connections that can be held in the pool waiting to be reused.
On 16/12/2023 14:34, Mohsen Rahmati wrote: Hello, Does |MaxPoolSize| limit the total connection that can be opened simultaneously? I've configured the |/etc/odbcinst.ini| as follows, But whenever I create a connection simultaneously (using asyncio or multithreading) the total number of opened connections (checked via |lsof -ai -p "PID"|) goes over the limit I've set for |MaxPoolSize| to the created number of threads or tasks. No, it limits the number of connections that can be held in the pool waiting to be reused.
Thanks.
Then, would you guide what the PoolWaitTimeout
parameter does?
If I understood correctly, the CPTimeout
parameter sets the maximum age of an idle connection in the pool, and if MaxPoolSize
does not limit the total number of connections, then I don't know what PoolWaitTimeout
configures.
On 18/12/2023 03:25, Mohsen Rahmati wrote:
On 16/12/2023 14:34, Mohsen Rahmati wrote: Hello, Does |MaxPoolSize| limit the total connection that can be opened simultaneously? I've configured the |/etc/odbcinst.ini| as follows, But whenever I create a connection simultaneously (using asyncio or multithreading) the total number of opened connections (checked via |lsof -ai -p "PID"|) goes over the limit I've set for |MaxPoolSize| to the created number of threads or tasks. No, it limits the number of connections that can be held in the pool waiting to be reused.
Thanks. Then, would you guide what the |Pool Wait_Timeout| parameter does?
The number of seconds a connection is left waiting in the pool list when inactive (not attached to an application).
Hello, Does
MaxPoolSize
limit the total number of connections that can be opened simultaneously? I've configured the/etc/odbcinst.ini
as follows, But whenever I create connections simultaneously (using asyncio or multithreading) the total number of opened connections (checked vialsof -ai -p "PID"
) goes over the limit I've set forMaxPoolSize
to the created number of threads or tasks.Environment:
Best Regards, Mohsen