Skip to content

Connection pooling settings are misleading when running uWSGI with >1 process #171

@stevenbal

Description

@stevenbal

Product versie / Product version

latest

Omschrijf het probleem / Describe the bug

Taiga reference: Utrecht 334

The configuration for connection pooling (min_size, max_size, etc.) is misleading when running uWSGI with more than 1 process (we run 4 by default), because each process will instantiate its own connectionpool with these parameters.

In practice this would mean that your value for the max_size envvar should be multiplied by the number of processes uwsgi is running.

TODO:

Refer to OAF docs from all components with intersphinx (https://open-api-framework.readthedocs.io/en/latest/connection_pooling.html)

  • Open Zaak
  • Open Notificaties
  • Objects API
  • Open Klant
  • Referentielijsten
  • Open Product

Stappen om te reproduceren / Steps to reproduce

No response

Verwacht gedrag / Expected behavior

I think this should at least be documented, I'm not sure if there is a way to enfore the min_size and max_size as passed via envvar, because we don't know the number of replicas for example

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions