포럼에서 이 메시지가 계속 표시되고 있습니다. (대략 3~4시간마다 발생합니다.) CPU 16코어와 32GB RAM을 갖추고 있습니다. 리소스가 문제라고 생각하지는 않습니다.
Oops
The software powering this discussion forum encountered an unexpected problem. We apologize for the inconvenience.
Detailed information about the error was logged, and an automatic notification generated. We'll take a look at it.
No further action is necessary. However, if the error condition persists, you can provide additional detail, including steps to reproduce the error, by posting a discussion topic in the site's feedback category.
프로덕션 로그에는 다음과 같이 표시됩니다.
app/models/user_auth_token.rb:125:in `lookup'
lib/auth/default_current_user_provider.rb:131:in `current_user'
lib/current_user.rb:35:in `current_user'
app/controllers/application_controller.rb:1047:in `rate_limit_crawlers'
lib/middleware/omniauth_bypass_middleware.rb:64:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:393:in `call'
lib/middleware/csp_script_nonce_injector.rb:12:in `call'
config/initializers/008-rack-cors.rb:14:in `call'
config/initializers/100-silence_logger.rb:27:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
lib/middleware/request_tracker.rb:236:in `call'
Unexpected error in Message Bus : ActiveRecord::ConnectionNotEstablished : connection to server at "172.17.0.2", port 5432 failed: FATAL: remaining connection slots are reserved for non-replication superuser connections
Unexpected error in Message Bus : ActiveRecord::ConnectionNotEstablished : connection to server at "172.17.0.2", port 5432 failed: FATAL: remaining connection slots are reserved for non-replication superuser connections
Unexpected error in Message Bus : ActiveRecord::ConnectionNotEstablished : connection to server at "172.17.0.2", port 5432 failed: FATAL: remaining connection slots are reserved for non-replication superuser connections
Unexpected error in Message Bus : ActiveRecord::ConnectionNotEstablished : connection to server at "172.17.0.2", port 5432 failed: FATAL: remaining connection slots are reserved for non-replication superuser connections
다음과 같은 설정을 적용했습니다.
UNICORN_WORKERS: 32
UNICORN_SIDEKIQS: 2
그리고 psql의 경우
db_shared_buffers: "4096MB"
서버가 충돌하지 않도록 설정을 개선하고 안정성을 확보하기 위해 추가로 할 수 있는 일이 있다면 알려주세요.
