Back

Appwrite taking too much space

  • 1
  • Self Hosted
  • Databases
  • Storage
Amberon
25 Oct, 2024, 05:42

hi, i have a self hosted instance of appwrite on a vps. my appwrite db has around 50k documents in total but appwrite is taking up more then 120+GB. i doubt the database or any other file in media storage is taking up this much space

TL;DR
Developers struggling with Appwrite taking up too much space on VPS hosting. Suggested steps include backing up and deleting unused images, checking Docker volumes with `sudo du -sh /var/lib/docker/volumes/*`, and reviewing storage usage with `docker system df -v`. The issue likely stems from unused images and not from the database itself.
D5
25 Oct, 2024, 05:49

What's the result of docker system df -v

Amberon
25 Oct, 2024, 05:50
Amberon
25 Oct, 2024, 05:50

40GB cache💀

D5
25 Oct, 2024, 05:51

That's not cache

D5
25 Oct, 2024, 05:51

That's images

Amberon
25 Oct, 2024, 05:51

you mean the build cache?

D5
25 Oct, 2024, 05:51

Run it again the command with the -v to see the storage used by the images

D5
25 Oct, 2024, 05:52

docker system df -v

Amberon
25 Oct, 2024, 05:53
TypeScript
Joshi
25 Oct, 2024, 05:53

Do sudo du -sh /var/lib/docker/volumes/*

Amberon
25 Oct, 2024, 05:53

quite a long response

Joshi
25 Oct, 2024, 05:54

Only the volume are of interest for us

Amberon
25 Oct, 2024, 05:54

got it

Amberon
25 Oct, 2024, 05:55
D5
25 Oct, 2024, 05:55

Isn't that affecting volumes?

Joshi
25 Oct, 2024, 05:55

Affecting in what way?

D5
25 Oct, 2024, 05:55

Nevermind. Anyways the issue seems to be unused images

D5
25 Oct, 2024, 05:56

Do you still need those <none> images?

Amberon
25 Oct, 2024, 05:56

no

Amberon
25 Oct, 2024, 05:57

didnt touch them

Amberon
25 Oct, 2024, 05:57

thought appwrite might have something to do with them

D5
25 Oct, 2024, 05:58

Seems not. I recommend doing a copy or backup of them just in case, then removing them if they're not being used or you don't want them. Then if everything is still working fine you can delete the copy

Amberon
25 Oct, 2024, 05:59

ok, will do

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