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:
parent
3e7db0548b
commit
f97e085e80
|
@ -3,6 +3,7 @@ version: '3'
|
|||
services:
|
||||
db:
|
||||
image: postgres
|
||||
shm_size: 1gb
|
||||
ports:
|
||||
- 6543:5432
|
||||
environment:
|
||||
|
|
Loading…
Reference in New Issue