Skip to content

Commit eb84277

Browse files
committed
Increase kernel connection queue size for CGImap
1 parent 9fb3257 commit eb84277

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docker-compose.deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# This file is only used by the CI/CD pipeline to deploy images to the environment's VM.
33
#
4-
# For any local dev work, see docker-compose.yml and *overrides.yml.
4+
# For any local dev work, see docker-compose.yml and *overrides.yml.
55
#
66

77
################################################################################
@@ -142,6 +142,8 @@ services:
142142
depends_on:
143143
- osm-rails
144144
- osm-cgimap
145+
sysctls:
146+
net.core.somaxconn: 4096
145147
labels:
146148
- traefik.enable=true
147149
- traefik.http.routers.osm-web.rule=Host(`${WS_OSM_HOST}`)
@@ -160,6 +162,9 @@ services:
160162
osm-cgimap:
161163
image: ${WS_DOCKER_REGISTRY}/workspaces-osm-cgimap:${WS_DOCKER_TAG}
162164
restart: always
165+
sysctls:
166+
net.core.somaxconn: 4096
167+
net.ipv4.tcp_max_syn_backlog: 4096
163168
environment:
164169
CGIMAP_INSTANCES: ${WS_CGIMAP_INSTANCES}
165170
CGIMAP_HOST: ${WS_OSM_DB_HOST}

docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ services:
117117
depends_on:
118118
- osm-rails
119119
- osm-cgimap
120+
sysctls:
121+
net.core.somaxconn: 4096
120122
volumes:
121123
- ./osm-web/nginx.conf:/etc/nginx/conf.d/default.conf:ro
122124
- ./osm-rails/public:/usr/share/nginx/html:ro
@@ -140,6 +142,9 @@ services:
140142
build:
141143
context: osm-cgimap
142144
dockerfile: docker/ubuntu/Dockerfile2404
145+
sysctls:
146+
net.core.somaxconn: 4096
147+
net.ipv4.tcp_max_syn_backlog: 4096
143148
environment:
144149
CGIMAP_INSTANCES: ${WS_CGIMAP_INSTANCES}
145150
CGIMAP_HOST: ${WS_OSM_DB_HOST}

0 commit comments

Comments
 (0)