Back

What is the recommended minimum specs for Appwrite on a DigitalOcean droplet?

  • 0
  • Self Hosted
ZachHandley
27 Jul, 2023, 00:17

I have Ubuntu 22.04 LTS

TL;DR
The user is asking about the recommended minimum specs for running Appwrite on a DigitalOcean droplet. There is a discussion about the pricing and options of different cloud providers. The user suggests using swap files to optimize RAM usage and provides a script to create a swap file. There is no clear solution provided.
ZachHandley
27 Jul, 2023, 00:18

probably need 4 gigs of RAM and 4 vCPU's?

ZachHandley
27 Jul, 2023, 00:18

seems like the RAM is the issue

Binyamin
27 Jul, 2023, 00:19

Before that

Binyamin
27 Jul, 2023, 00:19

You can try something that will change everything completly

I took it from one of Appwrite's scripts

Run this

TypeScript
fallocate -l 2G /swapfile
ls -lh /swapfile

chmod 600 /swapfile
ls -lh /swapfile

mkswap /swapfile
swapon /swapfile
swapon --show

echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
Binyamin
27 Jul, 2023, 00:19

It will create 2GB swap file on your server

Binyamin
27 Jul, 2023, 00:19

Then reboot

ZachHandley
27 Jul, 2023, 00:20

okay done, rebooting

Binyamin
27 Jul, 2023, 00:20

And check htop again you should see two things

  1. The swap file
  2. The RAM usage will decrease tremendously
Binyamin
27 Jul, 2023, 00:20
Binyamin
27 Jul, 2023, 00:21

Using a swap file gives a complex docker-compose infrastructures like Appwrite being able to run on 1-2gb ram servers.

ZachHandley
27 Jul, 2023, 00:22

amazing, the 4GB of RAM droplet is 48$ a month, not ready for that yet hahahaha

Binyamin
27 Jul, 2023, 00:22

Is it using less RAM now?

ZachHandley
27 Jul, 2023, 00:22

sort of?

Binyamin
27 Jul, 2023, 00:22

Yes, that's a leap

ZachHandley
27 Jul, 2023, 00:22
Binyamin
27 Jul, 2023, 00:22

Maybe it will take some time But I think that should solved it for now

Binyamin
27 Jul, 2023, 00:25

BTW, Also I'm a very old client of Linode and DigitalOcean, recently started to use Hetzner. They have better pricing and a solid Cloud panel so it my be worth to check it https://www.hetzner.com/cloud

Binyamin
27 Jul, 2023, 00:25

They have servers in USA

ZachHandley
27 Jul, 2023, 01:13

ooh interesting

ZachHandley
27 Jul, 2023, 01:13

thank you

hamed
27 Jul, 2023, 01:37

Last time I checked it out, it was $28 for CPU optimization, unless you select another plan.

ZachHandley
27 Jul, 2023, 08:32

RAM not CPU

hamed
27 Jul, 2023, 08:34

Yes with 4Gb ram,

hamed
27 Jul, 2023, 08:41

Putting that aside, I think what byawitz mentioned above is a big deal 😅

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more