I followed this instruction discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub
If you are using a 1 GB instance, set UNICORN_WORKERS to 2 and db_shared_buffers to 128MB so you have more memory room.
if I use 2GB instance, should I increase UNICORN_WORKERS to 4 and db_shared_buffers to 256MB?