bpj
October 28, 2021, 8:00pm
1
Wappler Version : 4.2.0
Operating System : Mac (M1)
Server Model: NodeJS
Database Type: MySQL
Hosting Type: AWS Docker
This may be something specific to my project but I have found my web service coming to a grinding halt because of low disk space. I thought initially that the sudo docker system prune command may resolve it, and to some degree it did but I’m now finding that the space on a 16GB HDD has completely filled
This is a project where the DB is remote (AWS RDS) and the Web Server is only using <500MB
(inc. all uploads folders)
As you can see, the docker folder has grown to 12GB and one specific container is using 10GB of that.
I was wondering if the introduction of real-time logs in a recent update might be filling the container.
How can I resolve this? As I say, the usual prune command has little effect!
bpj
October 28, 2021, 8:20pm
3
OK. Narrowing this down, there is a HUGE log in the web container:
bpj
October 28, 2021, 8:20pm
4
As I said in the original post, I have tried the prune command
George
October 28, 2021, 8:23pm
5
I see, well for the log there are other options.
I have a Docker Droplet with Digital Ocean running a Node App created in Wappler 3.9.9 that runs multiple scheduled server actions, each time i deploy the App, Digital Ocean reports disk space reducing to about 15% (3.75gb) of my 25gb machine, after a single day of running, it is slowly increasing disk space up to around 60% (15gb), and if I leave it for a second day running it eventually runs out of disk space and I have to redeploy to get my space back.
The only thing I can even imagine that …
bpj
October 28, 2021, 8:30pm
6
Thanks George - panic over! Is there a reason why the default docker build doesn’t limit the log size or have an option to choose a desired size?
George
October 28, 2021, 9:11pm
7
Well you should ask the docker makers about that … seems like a bad default choice to me too.
1 Like
bpj
October 28, 2021, 9:34pm
8
If the Docker-compose file is created by Wappler, could you not add the relevant settings to limit logging?
George
October 28, 2021, 10:05pm
9
Yes we plan to do so, there are just so many options.
3 Likes
Teodor
December 2, 2021, 4:38pm
12
A cleanup button has been added to Wappler 4.4.2