Openflow is taking too much space in long run

Hello @Allan_Zimmermann Docker container sizes for open flow is consuming too much space and openflow is crashing when there is no storage left in the server

Try cleaning up in docker

Make sure to update your installation once in a while ( docker compose pull )

Hi @yashshah

One of the thing I like to do to manage my docker is use “Portainer” (lightweight service used to manage Docker containers).
This will help you better check logs and manage docker in this situations.

Hope this helps!

    image: 'portainer/portainer-ce:latest'
    command: -H unix:///var/run/docker.sock
    restart: always
      - '/etc/localtime:/etc/localtime:ro'
      - '/var/run/docker.sock:/var/run/docker.sock'
      - "traefik.enable=true"
      - "traefik.http.routers.portainer.rule=Host(`url-here`) || (Host(`url-here`) && PathPrefix(`/api`))"
      - "traefik.http.routers.portainer.entrypoints=websecure"
      - "traefik.http.routers.portainer.tls.certresolver=myresolver"
      - ""
      - '8000:8000'
      - '9000:9000'
1 Like

@yashshah Did you found what is causing taking so much space?
It would be great to have that problem solved by the application itself.

@kowts Did you have the same problem also? And how did you solved it?

the api instances, should not be using any data on disk, at all.
before 1.5 ( and maybe a few versions into 1.5 ? not sure ) it would cache all module paths on disk, but this should still only be a few Kilobytes,
MAYBE one of the modules openflow is using, could be caching something on disk ( my thoughts go toward multer-gridfs-storage that handles file uploads )
If that is the case, the only way to “cleanup” is to recycle the instance.
simply do a

docker compose down && docker compose up

or better yet, use it as an excuse to upgrade and do

docker compose pull && docker compose up

for agents ( like the ones with Node-RED ) it all depends on what modules you install.
there is NO WAY of me to handle cleanup in that case, you just need to recycle it once in a while.

1 Like

Understood. I was afraid maybe that something vital is causing that, but no. The newest version doesn’t have that problem as I understand, great!

I’m going to test the agents today! So excited to see them in work! :hugs:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.