Managing Database Session Reuse in privacyIDEA 3.4.1 with PostgreSQL

Hello,

I’m currently using privacyIDEA 3.4.1 deployed in containers, and we’re experiencing high response times when executing /token. Our database backend is PostgreSQL.

We suspect that the session management or connection pooling might not be optimized. Could anyone provide insights or best practices on managing database session reuse in this setup? Any advice on configurations that might help reduce these response times would be greatly appreciated.

Thank you!