Connection pools

Every HTTP connection an agent server opens goes through a connection pool: the calls to Search2o Cloud, the LLM calls, and the calls made by api commands and API profiles. Each of those can name its own pool. Pools are defined on the Connection pools page in the GUI, by administrators, and the pool named default is used wherever no pool is named. A changed pool reaches every agent server before the server's next run, and the old pool stays open until the last agent using the old pool finishes.

FieldTypeDefaultDescription
poolsobject of profile name → ApiConnectionPoolModelThe connection pools available to the whole system, keyed by name. The pool named 'default' cannot be deleted.

A pool

FieldTypeDefaultDescription
maxConnectionsinteger20The most connections this pool opens at once.
maxKeepaliveConnectionsinteger10The most idle connections kept open for reuse.
keepaliveExpiryinteger60How long an idle connection is kept before it is closed.
timeoutTimeoutModelThe connect, read, write and pool timeouts for calls made through this pool.
caCertFilestringPEM file containing the certificate authority or chain this pool trusts. It REPLACES the authorities trusted by default rather than adding to them, so it must contain every authority this pool needs to reach its endpoint.
clientCertFilestringPEM file containing the client certificate and its chain.
privateKeyFilestringPEM file containing the private key. May be omitted when the private key is included in clientCertFile.
privateKeyPasswordSecretstringName of the secret that holds the password for the encrypted private key, if required.

Timeouts

FieldTypeDefaultDescription
connectnumber10.0How long to wait to establish the TCP/TLS connection.
readnumber300.0How long to wait for response bytes.
writenumber30.0How long to wait while sending the request body.
poolnumber10.0How long to wait for a free connection from the pool.