jorgebay commented on a change in pull request #1016: WIP: Add request pipelining and ConnectionPool sizes TINKERPOP-1775 and TINKERPOP-1774 URL: https://github.com/apache/tinkerpop/pull/1016#discussion_r242882072
########## File path: docs/src/reference/gremlin-variants.asciidoc ########## @@ -1008,6 +1008,22 @@ The connection properties for the Gremlin.Net driver can be passed to the `Greml |password |The password to submit on requests that require authentication. |_none_ |========================================================= +==== Connection Pool + +It is also possible to configure the `ConnectionPool` of the Gremlin.Net driver. +These configuration options can be set as properties +on the `ConnectionPoolSettings` instance that can be passed to the `GremlinClient`: + +[width="100%",cols="3,10,^2",options="header"] +|========================================================= +|Key |Description |Default +|MinSize |The minimum size of the connection pool. This determines how many connections are initially created. |2 +|MaxSize |The maximum size of the connection pool. |32 +|MaxInProcessPerConnection |The maximum number of in-flight requests that can occur on a connection. |4 +|========================================================= + +A `NoConnectionAvailableException` is thrown if the `ConnectionPool` reaches the `MaxSize` limit and all connections have reached the `MaxInProcessPerConnection` limit when a new request comes in. Review comment: I like this strict behaviour for throttling. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
