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 <cscosta@pivotal.io>
This commit is contained in:
Ciro S. Costa 2020-03-23 14:30:20 -04:00
parent 3e7db0548b
commit f97e085e80
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@ version: '3'
services:
db:
image: postgres
shm_size: 1gb
ports:
- 6543:5432
environment: