160GB SSD에 100GB 데이터베이스가 있는 사이트가 있습니다. 이미지는 S3에 저장되어 있습니다.
2시간마다 Postgres가 디스크를 가득 채우는 작업이 수행됩니다. 백업은 아닙니다.
디스크 용량을 200GB로 늘리는 것이 좋을까요?
160GB SSD에 100GB 데이터베이스가 있는 사이트가 있습니다. 이미지는 S3에 저장되어 있습니다.
2시간마다 Postgres가 디스크를 가득 채우는 작업이 수행됩니다. 백업은 아닙니다.
디스크 용량을 200GB로 늘리는 것이 좋을까요?
지금 디스크 용량이 320GB이므로 디스크가 가득 찬 것은 아닐 텐데, 그래도 2시간마다 다음과 같은 오류가 발생합니다:
Job exception: PG::DiskFull: ERROR: could not resize shared memory segment "/PostgreSQL.2431023752" to 134217728 bytes: No space left on device CONTEXT: parallel worker
4:31 am
17
Job exception: Failed to open TCP connection to 84.247.3.95:80 (Connection refused - connect(2) for "84.247.3.95" port 80)
5:56 am
Job exception: PG::DiskFull: ERROR: could not resize shared memory segment "/PostgreSQL.4192722046" to 134217728 bytes: No space left on device CONTEXT: parallel worker
6:26 am
Job exception: PG::DiskFull: ERROR: could not resize shared memory segment "/PostgreSQL.175048658" to 134217728 bytes: No space left on device
8:32 am
3
MD Composer Extras theme/component is throwing errors: TypeError: Cannot read properties of null (reading 'es')
8:36 am
86
Unicorn worker received USR2 signal indicating it is about to timeout, dumping backtrace for main thread config/unicorn.conf.rb:203:in `backtrace' config/unicorn.conf.rb:203:in `block (2 levels) in re
8:50 am
Job exception: PG::DiskFull: ERROR: could not resize shared memory segment "/PostgreSQL.2657529202" to 134217728 bytes: No space left on device CONTEXT: parallel worker
stackoverflow에서 제안하는 바에 따르면
이는 docker가 기본적으로 공유 메모리 크기를
64MB로 제한하기 때문입니다.
docker run명령에서--shm-size옵션을 사용하여 이 기본값을 재정의할 수 있습니다.