High-CPU / High memory on fresh discourse install

Rafael, you and @boredomdenied were correct. After setting my worker and shared_buffers values to what was recommended, everything is working perfectly. Thank you all for your help. I am marking @boredom’s reply as the solution.