I’d like to compare the performance of the Discourse docker container on different servers.
I’ve seen that there is a bench.rb script which is mentioned in Benchmarking Discourse locally.
However, I’m not completely sure how to use it correctly.
I’ve installed apache2-utils inside the container and tried running the script as user root and as user discourse (with
sudo -u discourse -i). As expected it doesn’t work as root. The user discourse worked quite well after granting it enough permissions in PostgreSQL (
ALTER USER discourse SUPERUSER;). During the benchmark were a few exceptions and at the end I’ve got a permission denied… I guess I’m on the right track, but not quite there yet. Any hints what I’ve done wrong?
BTW: I guess I should stop the running instance of Discourse during the benchmark, shouldn’t I? What’s the best way to stop all it’s components or at least the ones that shouldn’t be running during the benchmark?