Skip to content

Add pgBouncer into Docker image #236

@rustprooflabs

Description

@rustprooflabs

Details

Using osm2pgsql for PgOSM Flex creates a relatively large number of connections to Postgres based on the number of tables created by the Flex output. This was discovered here (#226 (comment)) and answered on the osm2pgsql discussion here. Now documented on osm2pgsql.org: https://osm2pgsql.org/doc/manual.html#number-of-connections

It is unlikely this behavior will change in osm2pgsql so the plan is to bake pgBouncer into the Docker image, example standalone pgbouncer image here. Until this is in place, running --append mode will require upping the max_connections to at least 210, preferably 300 to give headroom.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DockerDocker image and/or related script(s)enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions