You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual Behaviour
Below logs show that ShmSize picks up the value 268435456 (256MB), however, further down the logs testcontainers select default value of 128MB.
Hi @TieyanFu, the shared memory size is correctly being set by Docker, however I believe that Postgres also needs to be configured to use shared buffers which is currently outside the scope of Testcontainers.
Expected Behaviour
We are trying to set shared_buffers parameter with following codes
Actual Behaviour
Below logs show that ShmSize picks up the value 268435456 (256MB), however, further down the logs testcontainers select default value of 128MB.
Testcontainer Logs
testcontainers:containers [9ebe0f3e24e2] fixing permissions on existing directory /var/lib/postgresql/data ... ok +0ms
testcontainers:containers [9ebe0f3e24e2] creating subdirectories ... ok +1ms
testcontainers:containers [9ebe0f3e24e2] selecting dynamic shared memory implementation ... posix +0ms
testcontainers:containers [9ebe0f3e24e2] selecting default max_connections ... 100 +17ms
testcontainers:containers [9ebe0f3e24e2] selecting default shared_buffers ... 128MB +22ms
testcontainers:containers [9ebe0f3e24e2] selecting default time zone ... Etc/UTC +17ms
testcontainers:containers [9ebe0f3e24e2] creating configuration files ... ok +1ms
testcontainers [DEBUG] [9ebe0f3e24e2] Inspecting container... +102ms
testcontainers [DEBUG] [9ebe0f3e24e2] Inspected container +4ms
Steps to Reproduce
Environment Information
The text was updated successfully, but these errors were encountered: