Skip to content

Commit f3011ac

Browse files
committed
Increase max connections for postgres container as it runs out of connections during intergation tests, also use half of the default pool size to prevent exhausting the connections
1 parent 7b6966b commit f3011ac

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

build/ci/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ services:
2424
postgres:
2525
container_name: postgres
2626
image: postgis/postgis:18-3.6
27+
command: -c 'max_connections=200'
2728
environment:
2829
TZ: Europe/Amsterdam
2930
POSTGRES_USER: tailormap

src/test/resources/application-postgresql.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ tailormap-api.prometheus-api-appmetrics-layer-switched-on-updated=time()-max_ove
2424
spring.datasource.url=jdbc:postgresql:tailormap
2525
spring.datasource.username=tailormap
2626
spring.datasource.password=tailormap
27+
# half of the default value of 10, to prevent too many connections in integration tests
28+
spring.datasource.hikari.maximum-pool-size=5
2729
spring.jpa.open-in-view=false
2830
spring.jpa.properties.hibernate.use_sql_comments=true
2931

0 commit comments

Comments
 (0)