Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure max_pool_connections? #117

Open
ajkessel opened this issue Oct 23, 2024 · 0 comments
Open

How to configure max_pool_connections? #117

ajkessel opened this issue Oct 23, 2024 · 0 comments

Comments

@ajkessel
Copy link

package versions:

matrix-synapse==1.117.0
synapse-s3-storage-provider==1.5.0

storage.yaml:

media_storage_providers:
- module: s3_storage_provider.S3StorageProviderBackend
  store_local: True
  store_remote: True
  store_synchronous: True
  config:
    bucket: [redacted]
    region_name: us-east-1
    endpoint_url: [redacted]
    access_key_id: [redacted]
    secret_access_key: [redacted]
    storage_class: "STANDARD_IA"
    threadpool_size: 60

I frequently see this homeserver error and media fails to retrieve from S3:

2024-10-23 12:04:29,673 - urllib3.connectionpool - 329 - WARNING - GET-2519500 - Connection pool is full, discarding connection: matrix-synapse-the-old-gang.s3.amazonaws.com. Connection pool size: 10

Documentation for this provider covers how to set the thread pool, but not the connection pool.

Is this configurable through the yaml file? If not, should it be?

Or does this suggest there is something else broken with my setup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant