Skip to content

Requests stall for several seconds in authenticators' SQL connection pool #102

@zuk

Description

@zuk

Reported by another user:

We're using RubyCAS server 1.0.1 with RubyCAS Client 2.3.8 and several
Rails apps.
It's working correctly, but we're often seeing stalls of several
seconds when directly authenticating to the server,
or obtaining, or using proxy tickets.

It happens virtually every time in test and development, under no
other load eg locally.

Here is the log, starting at when the browser hit is made. The stall
is 5 seconds between the first two localization logs.
This happens on the first request, and any other request (ie, the
rubycas server is not "warming up").

Additional info:

If I set the number of connections to 10, then hit it with 11 fast
requests, the last hangs.
The connections are not being returned to the pool in a timely manner.

Changing the "timeout" config param appears to make no difference.

More connections is not a prod fix though... Can you replicate the
issue?
We see it with the above version, with Ruby 1.9.2 and 1.9.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions