Skip to content

Unable to Configure Connection Pool Size in python-keycloak #630

@dawsarjomaa007

Description

@dawsarjomaa007

Context:
I am using the python-keycloak library in a FastAPI-based user management application. Some of the functionalities in my application require parallel processing. During execution, I encountered the following warning:

WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: auth.************.com. Connection pool size: 10

After some investigation, I determined that the KeycloakAdmin class from the python-keycloak library relies on urllib3 under the hood for HTTP requests. However, I couldn't find any documentation or examples showing how to configure the connection pool size for urllib3 when using this library.

Expected Behavior:
I would like to:

  1. Configure the connection pool size for urllib3 to handle the parallel processing requirements in my application.
  2. Understand if there is an existing way to adjust the connection pool size in python-keycloak, or if this functionality needs to be added.

Thank you for your support!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions