Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-05-24 12:29:45 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-05-30 12:36:22 +0300
commita326bfb395f7835ee68e6d24d3e2e90ce9e62cb1 (patch)
treea7eea76e043ca2b21ddc95ab8dc5bb1590f139ff
parenta6c5964bb455f77a0c79898f0b99c4c7df3aee3a (diff)
ci: Increase connection limit for Postgrespks-postgres-with-praefect-flakiness
We regularly get CI failures when running with Praefect, which is most likely caused by an exhaustion of the database's connection pool. Increase the limit so that we can hopefully get to a more stable state. Note that we cannot set `PGOPTIONS` here as that causes the Postgres services to not come up. Instead, we work around this by manually adding the configuration to the executed command.
-rw-r--r--.gitlab-ci.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c4c75e7e8..de8f216a3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -77,7 +77,9 @@ include:
- *cache_gems_configuration
- *cache_go_configuration
services:
- - postgres:${POSTGRES_VERSION}
+ - name: postgres:${POSTGRES_VERSION}
+ alias: postgres
+ command: ["postgres", "-c", "max_connections=500"]
variables: &postgres_variables
PGHOST: postgres
PGPORT: 5432
@@ -198,7 +200,9 @@ test:coverage:
test:pgbouncer:
<<: *test_definition
services:
- - postgres:${POSTGRES_VERSION}
+ - name: postgres:${POSTGRES_VERSION}
+ alias: postgres
+ command: ["postgres", "-c", "max_connections=500"]
- name: bitnami/pgbouncer:${PGBOUNCER_VERSION}
alias: pgbouncer
variables: