Back

Ways to reduce the size that appwrite takes

  • 1
  • Self Hosted
  • Databases
  • Android
jesus
12 Sep, 2024, 18:48

Hi,

Forgive me for the strange question because I'm not an expert.

I have an appwrite selfhosted instance with 200 milion+ docs, the disk usage is 120+ gb

Is there a way to reduce the size of the db?

TL;DR
Developers discuss ways to reduce the size of Appwrite. Some suggestions include using Hetzner for cheaper and higher cloud storage, trying Mariadb myrocks engine for better compression, and saving database tables in an external volume. Other tips include clearing cache and increasing database compression if CPU usage is low.
D5
12 Sep, 2024, 18:59

Are you sure that the DB is really using more than 120GB?

D5
12 Sep, 2024, 18:59

Docker stats are showing that?

jesus
12 Sep, 2024, 19:00

Yes the docker volume is now at 120gb

D5
12 Sep, 2024, 19:00

The database volume?

jesus
12 Sep, 2024, 19:10

Ok I'm gonna test this....

D5
12 Sep, 2024, 19:13

@jesus Also, you could try a different engine such as myrocks that has a better compression: https://mariadb.com/kb/en/about-myrocks-for-mariadb/

D5
12 Sep, 2024, 19:13

However the DB could behave differently and unstable

D5
12 Sep, 2024, 19:13

But you could try

D5
12 Sep, 2024, 19:35

Aso, @jesus Do you have document level permissions

jesus
12 Sep, 2024, 19:36

No

D5
28 Oct, 2024, 18:04

@jesus Did it work? ๐Ÿ™‚

jesus
29 Oct, 2024, 21:14

No ๐Ÿ˜ญ

jesus
29 Oct, 2024, 21:17

I just did this... created 1 tb cloud storage in vultr.

jesus
29 Oct, 2024, 21:20

It's cheaper than upgrading the whole server.

D5
29 Oct, 2024, 21:29

You were not able to migrate? ๐Ÿ˜…

D5
29 Oct, 2024, 21:29

I see. What about Hetzner?

jesus
29 Oct, 2024, 21:30

My account got blocked the next second it was created๐Ÿ˜… contacted them, no answer, no explanation, nothing

jesus
29 Oct, 2024, 21:30

Contabo is sh*t

jesus
29 Oct, 2024, 21:31

Linode servers are not stable, i get abnormal crashes with them

D5
29 Oct, 2024, 21:56

You can't use a Gmail account I think

D5
29 Oct, 2024, 21:56

Weird. Never heard about it and they are not precisely cheap I think

jesus
29 Oct, 2024, 21:58

They are cheaper than vultr on the cloud storage, and they offer up to 100tb on a single instance, vultr the max is 10tb

D5
29 Oct, 2024, 21:59

Interesting. I'm going to try Hetzner soon and move from Ionos. Hope they don't delete my production data or similar ๐Ÿ˜†

Joshi
29 Oct, 2024, 22:00

He failed fraud check

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