Toggle table of contents sidebar
pool
– Pool module for use with a MongoDB client.¶
Read only connection pool options for an AsyncMongoClient/MongoClient.
Should not be instantiated directly by application developers. Access a client’s pool options via pool_options
instead:
pool_opts = client.options.pool_options pool_opts.max_pool_size pool_opts.min_pool_size
max_pool_size (int)
min_pool_size (int)
max_idle_time_seconds (Optional[int])
connect_timeout (Optional[float])
socket_timeout (Optional[float])
wait_queue_timeout (Optional[int])
ssl_context (Optional[SSLContext])
tls_allow_invalid_hostnames (bool)
event_listeners (Optional[_EventListeners])
appname (Optional[str])
driver (Optional[DriverInfo])
compression_settings (Optional[CompressionSettings])
max_connecting (int)
pause_enabled (bool)
server_api (Optional[ServerApi])
load_balanced (Optional[bool])
credentials (Optional[MongoCredential])
is_sync (Optional[bool])
The application name, for sending with hello in server handshake.
How long a connection can take to be opened before timing out.
Driver name and version, for sending with hello in handshake.
True if this Pool is configured in load balanced mode.
The maximum number of concurrent connection creation attempts per pool. Defaults to 2.
The maximum number of seconds that a connection can remain idle in the pool before being removed and replaced. Defaults to None (no limit).
The maximum allowable number of concurrent connections to each connected server. Requests to a server will block if there are maxPoolSize outstanding connections to the requested server. Defaults to 100. Cannot be 0.
When a server’s pool has reached max_pool_size, operations for that server block waiting for a socket to be returned to the pool. If waitQueueTimeoutMS
is set, a blocked operation will raise ConnectionFailure
after a timeout. By default waitQueueTimeoutMS
is not set.
A dict of metadata about the application, driver, os, and platform.
The minimum required number of concurrent connections that the pool will maintain to each connected server. Default is 0.
The non-default options this pool was created with.
Added for CMAP’s PoolCreatedEvent
.
A pymongo.server_api.ServerApi or None.
How long a send or receive on a socket can take before timing out.
If True skip ssl.match_hostname.
How long a thread will wait for a socket from the pool if the pool has no free sockets.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4