로그에 이 메시지가 지속적으로 출력되고 있습니다. 값은 약 10만에서 약 135만 사이를 오가지만, 10만 근처의 값이 꽤 자주 나타나는 것 같습니다:
Your Redis network connection is performing extremely poorly. Last RTT readings were [97069, 103986, 98459, 100762, 381617], ideally these should be < 1000. Ensure Redis is running in the same AZ or datacenter as Sidekiq. If these values are close to 100,000, that means your Sidekiq process may be CPU-saturated; reduce your concurrency and/or see https://github.com/mperham/sidekiq/discussions/5039
이것은 Redis가 충분한 CPU를 사용하지 못하고 있다는 것을 시사할 수 있습니다. 하지만 서버 자체에는 CPU와 RAM에 여유가 충분한 것으로 보입니다.
또한: Sidekiq is consuming too much memory (using: 3570.19M) for 'www.example.com', restarting
이는 Discourse stable 3.3.2의 올인원 app.yml을 사용하고 있습니다.
To follow up with this, I’m having this same issue with Jobs::PostAlert:
With those jobs often going up to 15 minutes when using 4 sidekiqs with 5 (default) threads with current testing. Seems like the jobs per second speed for Sidekiq is mostly dependent on how many of those jobs are being ran simultaneously and how many threads are free for the other jobs.
Increasing Sidekiqs to 6 or higher (5 threads) will increase the queue clearing speed, but postgres will crash fairly regularly (I am guessing from too many Jobs::PostAlert jobs being ran simultaneously.
This is on Stable 3.3.2. The changes and fixes from the linked thread seem to be already be implemented in 3.3.2, if I am not mistaken.
질문자님의 게시글 히스토리를 다시 살펴보니, 매우 느린 Sidekiq 문제 … 대량의 읽지 않은 사용자 알림에서 32코어 128GB 서버를 매우 크고 활발한 사용자 기반과 함께 운영하고 계셨다는 것을 확인했습니다. 그런 맥락에서는 34GB가 그리 큰 수치가 아니라는 이유를 이해할 수 있습니다. 다만 맥락을 제공하기 위해, 설정의 규모를 아는 것이 도움이 될 수 있고(재미있을 수도 있습니다) - 여기에서 또는 심지어 프로필에서 그렇게 할 수 있을까요? (일일 및 월간 활성 사용자 수, 데이터베이스 백업 크기, RAM, 스왑, 디스크, CPU의 서버 구성 등.) 심지어 우리가 모두 통계 - 크고 작은 것들을 공유하는 스레드도 만들 수 있을지 모릅니다.