Uploaded image for project: 'BrownDog'
  1. BrownDog
  2. BD-1600

Clean Polyglot cache folder after upload

XMLWordPrintableJSON

    • Brown Dog - April/May

      After a file is uploaded back to the master server, the softwareserver process should clean up the cache folder. This is especially important for the case where the softwareserver runs as a docker process.

      This caused the avconv containter to grow to 3.2GB and will eventually make the docker machine run out of diskspace.

      Temporary solution scale down to 0, and start new instances every so often.

      e.g.,

      total 28M
      drwxr-xr-x 3 root root 4.0K May  2 17:23 .
      drwxr-xr-x 1 root root 4.0K May  2 16:56 ..
      -rw-r--r-- 1 root root  778 May  2 17:01 .session_1.log
      -rw-r--r-- 1 root root  773 May  2 17:23 .session_2.log
      -rw-r--r-- 1 root root 805K May  2 17:01 1_20217111_ncsa.jpeg
      -rw-r--r-- 1 root root 8.8M May  2 17:01 1_20217111_ncsa.tiff
      -rw-r--r-- 1 root root 8.8M May  2 17:23 2_20217111_ncsa.bmp
      -rw-r--r-- 1 root root 8.8M May  2 17:23 2_20217111_ncsa.tiff
      drwxr-xr-x 2 root root 4.0K May  2 17:23 public
      root@4e0539fc68ec:/home/polyglot/polyglot/tmp/SoftwareServer/Cache# 

              bing Bing Zhang
              kooper Rob Kooper
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 2 hours Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d