저는 최소 사양 서버(2vCPU / 1GB / 40GB)에 Discourse를 설치하려고 하고 있습니다. (활용도가 높지 않을 것으로 예상되며, 비용을 절감하기 위함입니다)
이전에는 이러한 인스턴스에 Discourse를 설치할 수 있었지만, 오늘 다음과 같은 오류가 발생하고 있습니다. 포럼을 검색해 보았지만 다른 사람이 이 문제를 보고한 내용은 찾을 수 없었습니다.
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
...
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
스크립트의 권장 사항에 따라 discourse-doctor를 실행해 보았으며, Discourse가 실행되지 않는 것을 감지하여 재빌드(rebuild)를 시작했지만 결과는 동일합니다.
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 1117 exit 1>
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]}
553da25c117d42161ef95845c6876a32810feaa4b5e651ac8118981884933982
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
==================== END REBUILD LOG ====================
Failed to rebuild app.
저는 gCloud e2-micro인스턴스를 사용하고 있습니다 (0.25 vCPU와 1GB의 메모리를 갖춘 마이크로 머신 타입으로, 공유 물리 코어 기반)
수정: 왜 이런 일을 하는지 궁금한 분이 계신다면, 크롤러로부터 오는 트래픽이 사용자보다 많기 때문입니다. 우리는 소아 뇌졸중 환자의 가족과 생존자들에게 더 많은 접점을 제공하려 노력하고 있습니다. 최초 로드나 저장 시 약간 느리다는 점은 아무도 신경 쓰지 않으며, 무료 티어 Google Cloud에서 제공하는 가치는 도움이 됩니다.