← Back to team overview

launchpad-dev team mailing list archive

Re: Number of Librarian (or twisted) database connections

 

On Thu, Sep 1, 2011 at 4:13 PM, Stuart Bishop
<stuart.bishop@xxxxxxxxxxxxx> wrote:
> Can anyone tell me how many database connections the Librarian will
> open up, and where this is configured?
>
> Assuming there is a limit n, if I issue n requests will I have tested
> every open database connection?
>

I don't know the librarian code well, but it's probably the 'min' and
'max' attributes of a ConnectionPool object, passed in as cp_min and
cp_max in the ConnectionPool constructor.

See <http://twistedmatrix.com/documents/current/api/twisted.enterprise.adbapi.ConnectionPool.html>

jml


References