From f97e085e80cc1d054de875fd9863331104fd38a2 Mon Sep 17 00:00:00 2001 From: "Ciro S. Costa" Date: Mon, 23 Mar 2020 14:30:20 -0400 Subject: [PATCH] docker-compose: bump db's shm_size it seems like postgres by default might need to resize the amount of shared memory that it uses for performing parallel work. i've hit this when making 100's of concurrent requests to certain api endpoints: could not resize shared memory segment "/PostgreSQL.<..>" to $N bytes: No space left on device after applying the change (which makes docker go from 64MB to 1GB), , I can then execute those requests w/ no problems. Signed-off-by: Ciro S. Costa --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 400598ee0..9c3bd28a0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,7 @@ version: '3' services: db: image: postgres + shm_size: 1gb ports: - 6543:5432 environment: