feat: increase shm size for postgres in docker compose#5541
Merged
Conversation
|
Thank you @Amaimersion for contributing this PR. |
atzoum
approved these changes
Feb 25, 2025
This was referenced Mar 3, 2025
Merged
itsmihir
pushed a commit
that referenced
this pull request
Mar 3, 2025
🤖 I have created a release *beep* *boop* --- ## [1.44.0-rc.1](v1.43.0...v1.44.0-rc.1) (2025-03-03) ### Features * add OAuth authentication support for Databricks destination ([#5554](#5554)) ([67775ab](67775ab)) * gRPC API to expire the warehouse schema of a destination ([#5508](#5508)) ([f365c7c](f365c7c)) * increase shm size for postgres in docker compose ([#5541](#5541)) ([58e5a17](58e5a17)) * isolate server ut communication ([#5430](#5430)) ([63505f6](63505f6)) * make json library configurable and introduce sonnet as an option ([#5513](#5513)) ([f3e5d1a](f3e5d1a)) ### Bug Fixes * error handling for async destinations ([#5542](#5542)) ([5e63145](5e63145)) * handle schema change for unsafe quotes ([#5519](#5519)) ([4527b82](4527b82)) * refreshing of datalake expired schemas causing inifinite loop ([#5530](#5530)) ([0f11362](0f11362)) * retry sending reporting metrics for 4xx status code ([#5537](#5537)) ([2cbda67](2cbda67)) * snowpipe backoff missing for validation error ([#5504](#5504)) ([e889a4f](e889a4f)) * unmarshaller json configuration not respected ([#5526](#5526)) ([9f8d6ad](9f8d6ad)) ### Miscellaneous * add stats for warehouse process API ([#5543](#5543)) ([80890cf](80890cf)) * additional logs for schema fetching and deltalake ([#5551](#5551)) ([49b5238](49b5238)) * **deps:** bump github.com/docker/docker from 27.5.1+incompatible to 28.0.0+incompatible ([#5536](#5536)) ([277ec25](277ec25)) * **deps:** bump github.com/go-jose/go-jose/v4 from 4.0.4 to 4.0.5 in the go_modules group ([#5544](#5544)) ([adfb33c](adfb33c)) * **deps:** bump the go-deps group across 1 directory with 2 updates ([#5531](#5531)) ([98abb11](98abb11)) * **deps:** bump the go-deps group across 1 directory with 2 updates ([#5553](#5553)) ([99167ca](99167ca)) * **deps:** bump the go-deps group with 2 updates ([#5540](#5540)) ([63ae5ac](63ae5ac)) * drop unused columns ([#5546](#5546)) ([9acd978](9acd978)) * mssql and azure synapse cleanup and enable integration tests ([#5556](#5556)) ([a1b19ba](a1b19ba)) * skip previously failed tables ([#5533](#5533)) ([08e2936](08e2936)) * update event delivery time buckets ([#5548](#5548)) ([85b457a](85b457a)) * varchar handling for mssql and azure synapse ([#5557](#5557)) ([4309aa9](4309aa9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
itsmihir
pushed a commit
that referenced
this pull request
Mar 4, 2025
🤖 I have created a release *beep* *boop* --- ## [1.44.0](v1.43.0...v1.44.0) (2025-03-03) ### Features * add OAuth authentication support for Databricks destination ([#5554](#5554)) ([67775ab](67775ab)) * gRPC API to expire the warehouse schema of a destination ([#5508](#5508)) ([f365c7c](f365c7c)) * increase shm size for postgres in docker compose ([#5541](#5541)) ([58e5a17](58e5a17)) * isolate server ut communication ([#5430](#5430)) ([63505f6](63505f6)) * make json library configurable and introduce sonnet as an option ([#5513](#5513)) ([f3e5d1a](f3e5d1a)) ### Bug Fixes * error handling for async destinations ([#5542](#5542)) ([5e63145](5e63145)) * handle schema change for unsafe quotes ([#5519](#5519)) ([4527b82](4527b82)) * refreshing of datalake expired schemas causing inifinite loop ([#5530](#5530)) ([0f11362](0f11362)) * retry sending reporting metrics for 4xx status code ([#5537](#5537)) ([2cbda67](2cbda67)) * snowpipe backoff missing for validation error ([#5504](#5504)) ([e889a4f](e889a4f)) * unmarshaller json configuration not respected ([#5526](#5526)) ([9f8d6ad](9f8d6ad)) ### Miscellaneous * add stats for warehouse process API ([#5543](#5543)) ([80890cf](80890cf)) * additional logs for schema fetching and deltalake ([#5551](#5551)) ([49b5238](49b5238)) * **deps:** bump github.com/docker/docker from 27.5.1+incompatible to 28.0.0+incompatible ([#5536](#5536)) ([277ec25](277ec25)) * **deps:** bump github.com/go-jose/go-jose/v4 from 4.0.4 to 4.0.5 in the go_modules group ([#5544](#5544)) ([adfb33c](adfb33c)) * **deps:** bump the go-deps group across 1 directory with 2 updates ([#5531](#5531)) ([98abb11](98abb11)) * **deps:** bump the go-deps group across 1 directory with 2 updates ([#5553](#5553)) ([99167ca](99167ca)) * **deps:** bump the go-deps group with 2 updates ([#5540](#5540)) ([63ae5ac](63ae5ac)) * drop unused columns ([#5546](#5546)) ([9acd978](9acd978)) * mssql and azure synapse cleanup and enable integration tests ([#5556](#5556)) ([a1b19ba](a1b19ba)) * skip previously failed tables ([#5533](#5533)) ([08e2936](08e2936)) * update event delivery time buckets ([#5548](#5548)) ([85b457a](85b457a)) * varchar handling for mssql and azure synapse ([#5557](#5557)) ([4309aa9](4309aa9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Self-hosted Docker version of RudderStack sometimes may crash with the following stack trace:
The problem is in
pq: could not resize shared memory segment. No space left on device. It occurs when there is no space left in/dev/shmwhich is used for shared memory.By default Docker sets it to 64 MB using
--shm-size, which is quite low for modern systems or high load environments. For example official Postgres Docker image setsshm_sizeto 128 MB.This PR increases
/dev/shmsize of Postgres container for production Docker Compose config (rudder-docker.yml) from 64 MB to 128 MB. Setting it explicitly also highlights an ability to increase it, which may be the case for some users who expect high load. All uses who will set up their self-hosted version using this documentation will use explicitly setshm_size.This PR also increases default
shm_sizeofdocker-compose.ymlto match the production config. Though I didn't touch test configurations:warehouse/integrations/postgres/testdata/docker-compose.postgres.yml,warehouse/integrations/postgres/testdata/docker-compose.replication.yml,warehouse/integrations/testdata/docker-compose.jobsdb.yml. Tell me if they also should be tweaked.Linear Ticket
There is no Linear Ticket, but here is related GitHub discussion - #5468
Security