Repository navigation
docs: size shared memory for your own PostgreSQL container - #45
Conversation
The bundled postgres service raises /dev/shm through POSTGRES_SHM_SIZE, but a PostgreSQL container the admin runs themselves keeps Docker's 64 MB default. Parallel catalog queries can then fail with SQLSTATE 53100 while the server stays up and the disk has room, and the error names neither Docker nor shared memory. Add the symptom and the fix to the External PostgreSQL and Redis section, moved here from Silo-Server/silo-server#1513. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
Thanks for porting this from silo-server#1513! I pushed |
|
Preview removed after this pull request was closed. |
Problem
Related issue: N/A — narrow fix
An admin who runs PostgreSQL in their own Docker container can hit shared memory errors that the manual doesn't mention. The bundled
postgresservice raises/dev/shmthroughPOSTGRES_SHM_SIZE, but a container the admin creates keeps Docker's 64 MB default. Parallel catalog queries then fail withSQLSTATE 53100while Silo keeps running and the disk has free space, and the error names neither Docker nor shared memory.Approach
Add a subsection to External PostgreSQL and Redis, which the Docker page links to for external databases. It shows the error, the Compose and
docker runsettings, and what to check when PostgreSQL runs directly on a host.The text comes from Silo-Server/silo-server#1513, including the maintainer's corrections there. That PR was closed so operator guides could move to the manual.
Validation
Source reviewed. At the manual's baseline revision
cb0b8b75, silo-server'sdocker-compose.ymlsetsshm_size: ${POSTGRES_SHM_SIZE:-8gb}on the bundledpostgresservice, and.env.examplesetsPOSTGRES_SHM_SIZE=8gb. The error text was taken from a self-hosted server whose PostgreSQL container ran with Docker's default/dev/shm.Checked the rendered section with
astro previewat 375 px: the page doesn't scroll horizontally, the error block scrolls inside its own box like the page's other code blocks, and the new#shared-memory-for-your-own-postgresql-containeranchor resolves.Risks
None identified. Documentation only.
Checklist
AI Disclosure
Note
Document
/dev/shmsizing for user-managed PostgreSQL containersAdds a section to the PostgreSQL configuration docs covering shared memory sizing. It includes Docker Compose and
docker runexamples for setting/dev/shm, documents the bundled service'sPOSTGRES_SHM_SIZEdefault, and explains the difference between a tmpfs limit and startup allocation, plus the PostgreSQL error that appears when the limit is too small. See configuration.md.Macroscope summarized cb78184.