How much CPU and memory do I need for community with less than 100 people?

Hi all,
Currently, our community has some 60~ registered users, and sometimes it feels like lagging (just opening a topic takes 10 → 20 seconds). Shall I add more memory? or/and more CPU cores?
It’s running on a DigitalOcean droplet with 2 GB Memory / 60 GB Disk / SGP1 - Ubuntu 20.04 (LTS) x64

Here’s what htop output looks like when I feel the lag:

image

Here’re the droplet stats from the last 7 days:



Here are pageviews from the last 7 days:

The swap is topped out. That’s not good. Does this improve significantly after rebuilding?

I would almost be tempted to stop your container and reboot the VPS:

./launcher stop app
shutdown -r now

One method of decreasing memory use is to reduce the number of Unicorns, but this is set automatically to the recommended number for your VPS out of the box. Have you altered this in app.yml?

You could trying lowering this number:

UNICORN_WORKERS: 4

and rebuilding.

3 Likes