From a52205c7cbf209850296cabd82809789f14ffd2d Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 21 Feb 2024 03:30:27 -0300 Subject: [PATCH] fix: the important thing it's works --- docker-compose.yml | 1 - nginx.conf | 2 +- src/main/resources/application.properties | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5bd02c4..d633cbb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -56,7 +56,6 @@ services: - "5432:5432" volumes: - ./script.sql:/docker-entrypoint-initdb.d/script.sql - # command: 'postgres -c max_connections=1000 -c work_mem=8MB -c hot_standby=off -c shared_buffers=135MB -c checkpoint_timeout=1d -c wal_level=minimal -c synchronous_commit=off -c fsync=off -c full_page_writes=off -c max_wal_senders=0' deploy: resources: limits: diff --git a/nginx.conf b/nginx.conf index 44ed7b9..7eb00d0 100755 --- a/nginx.conf +++ b/nginx.conf @@ -1,5 +1,5 @@ events { - worker_connections 1000; + worker_connections 400; } http { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 498eff3..a7b3609 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -2,5 +2,5 @@ spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.url=jdbc:postgresql://${DB_HOSTNAME:localhost}:5432/${POSTGRES_DB:rinha} spring.datasource.username=${POSTGRES_USER:admin} spring.datasource.password=${DATABASE_PASSWORD:123} -spring.datasource.hikari.maximum-pool-size=15 +spring.datasource.hikari.maximum-pool-size=10 spring.main.banner-mode=off \ No newline at end of file