From 2009aec59d3c563b058d88630b497132a218718d Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Mon, 27 Dec 2021 09:36:51 +0100 Subject: [PATCH] itest: increase pg database connection limit --- Makefile | 7 ++++--- docs/release-notes/release-notes-0.14.2.md | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d916aad24..7b7999bde 100644 --- a/Makefile +++ b/Makefile @@ -177,9 +177,10 @@ ifeq ($(dbbackend),postgres) # Remove a previous postgres instance if it exists. docker rm lnd-postgres --force || echo "Starting new postgres container" - # Start a fresh postgres instance. Allow a maximum of 500 connections. - # This is required for the async benchmark to pass. - docker run --name lnd-postgres -e POSTGRES_PASSWORD=postgres -p 6432:5432 -d postgres:13-alpine + # Start a fresh postgres instance. Allow a maximum of 500 connections so + # that multiple lnd instances with a maximum number of connections of 50 + # each can run concurrently. + docker run --name lnd-postgres -e POSTGRES_PASSWORD=postgres -p 6432:5432 -d postgres:13-alpine -N 500 docker logs -f lnd-postgres & # Wait for the instance to be started. diff --git a/docs/release-notes/release-notes-0.14.2.md b/docs/release-notes/release-notes-0.14.2.md index c9e625ddc..775e5edcc 100644 --- a/docs/release-notes/release-notes-0.14.2.md +++ b/docs/release-notes/release-notes-0.14.2.md @@ -50,6 +50,8 @@ led to an already made connection being lost. [This is now fixed so that bootstrapping will always ignore the peers chosen by the persistent connection.](https://github.com/lightningnetwork/lnd/pull/6082) + +* [Fix Postgres itests max connections](https://github.com/lightningnetwork/lnd/pull/6116) ## RPC Server