Oversized Disk Usage
-
@pbischoff OK, so maybe
du -hcs /home/yellowtent/appsdata/*
will tell you which app is taking lots of space . If you put the appid that you get there into the search box of the Dashboard, you will see which app it is./home/yellowtent/box
is just source code. I don't expect this to take much space/home/yellowtent/platformdata
is run time data (logs, databases). In the graph, this is around 180GB or so. -
@girish okay thank you, that helped very much.
I identified a Directus instance that uses almost 500 GB. I think this is database data because of a cron process that fetches data periodically and writes logs for every fetch. How can I identify if it is really the database data or some files?
-
@pbischoff
/home/yellowtent/appsdata/<appid>
only has the files. The database data is under/home/yellowtent/platformdata/postgresql
.One thing, you might want to check is the size of
/home/yellowtent/appsdata/<appid>/postgresqldump
. This is the size of the postgres dump of the app. Other than that, it's all file data.You can open the web terminal for Directus app. And then, inspect
/app/data
there. (this is the same as/home/yellowtent/appsdata/<directus-app-id>/data
on the host). -
-
-
@girish I just wanted to say thank you for your help two weeks ago!
I didn't get Postgres running because of too little storage on the disk, so I had no idea in this short time how to delete the things out of Postgres.
For us this issue was very critical and I had to fix it very fast and so I just deleted the dump file which means the loss of the directus instance data, but that was okay in this case.
Again: thank you very much and best regards!