Configuring postgres database system settings
khaidarkairbek
PROOP

2 years ago

Hey,
My app keeps shutting down due to the following error:
7:22:46 PM WARN database Database error while running getLogEvents, retrying after 400 milliseconds. Error: could not resize shared memory segment "/PostgreSQL.3692931842" to 1048576 bytes: No space left on device
How to properly define system settings such as "shm-size" in railway deployment?

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

1 Replies

brody
EMPLOYEE

2 years ago

Railway does not provide a way to modify the shm size, instead, you would need to tune Postgres to not use too much shared memory, you can try updating your Postgres start command with this command -

/usr/local/bin/docker-entrypoint.sh postgres --port=5432 -c 'sharedbuffers=32MB' -c 'maintenancework_mem=32MB'


Loading...