/
What is connection pooling?

What is connection pooling?

The connection pool stores open, previously used connections for reuse so your client does not have to negotiate opening a socket for every request.

If the number of threads is fewer than 10, the upper bound should be set to R * N, where R = maximum number of simultaneous requests a client can execute and N = number of nodes in the cluster.

As the number of simultaneously executing threads increases, so does the likelihood that Secondary Access Nodes (SANs) will be distributed evenly across the cluster. The connection pool can never usefully store more than T * N open connections because no more than T requests can be executing in a client at once However, that is not a practical limit because of other factors including the client operating system's limits on open file descriptors.

For clients with a large number of threads or nodes (R

> 100, N

> 200, or R * N

> 1000), DataCore recommends a stored connection limit of 5 * T. In the SDK documentation, the recommendation is T * N with the caveat that for installations with a large number of nodes and a high thread count (approximately 100 or more), you should limit the value to 5 times the number of threads to avoid reaching the client operating system's limits on open file descriptors.

Following is a list of the client parameters that control connection pooling:

  • C#: maxStoredConnections
  • C++: maxStoredConnections
  • Java: maxConnectionPoolSize
  • Python: maxSavedConnections

Related content

Swarm and HTTPS/SSL?
Swarm and HTTPS/SSL?
Read with this
What are the file descriptor/connection messages in syslog
What are the file descriptor/connection messages in syslog
More like this
How is a node chosen in a Swarm cluster when Read/ Write requests are sent from the application?
How is a node chosen in a Swarm cluster when Read/ Write requests are sent from the application?
More like this
Managing and Optimizing Feeds
Managing and Optimizing Feeds
More like this
Connecting to a Swarm Cluster
Connecting to a Swarm Cluster
More like this
Cluster Capacity Monitoring
Cluster Capacity Monitoring
More like this

© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.