3 Replies Latest reply on May 25, 2009 4:04 AM by jaikiran

    Default VFS caching locations

    jaikiran

      This is related to the VFS caching configuration that was added to avoid the disk consumption of tmp files, issue. The issue is fixed, however recently one user brought this topic up http://www.jboss.org/index.html?module=bb&op=viewtopic&t=153004&start=20#4232093

      The user had configured his own "deploy" folder (through the profile.xml). By default, the VFS cache configuration just caches the jboss server's deploy folder and will not cache other user configured deploy folders unless the user edits that vfs.xml.

      Would it be possible for VFS Cache to "infer" these deploy folders by querying the profile, instead of the user having to edit 2 files to add the custom deploy folder? Most of the times the user is going to forget about updating the vfs.xml, until he runs into the growing disk space usage issue.

      Ideally, the user would just edit the profile.xml to add a custom deploy folder and would not worry about anything related to the internal VFS cache. Is this possible?

        • 1. Re: Default VFS caching locations
          alesj

          It's doable, but it have doubts over if it's soon enough.

          I can check if the PS has some nice/transparent way of adding this to VFSCache's permanent roots.

          The issue also might be that the actual cache impl might not be the one that has permanent roots.

          Or if the newly/additionally added "deploy" folder is not high volume,
          does it still make sense to permanently cache it?

          I guess something that is scanned by PS,
          should be able to define which kind of vfs cache it would like to use,
          then it's up to the actual impl if it can provide that.

          The problem that I see with this is that the vfs cache should be user transparent,
          but perhaps not at that level, only higher up, e.g. when dealing with URLs, VirtualFiles, etc

          • 2. Re: Default VFS caching locations
            jason.greene

             

            "alesj" wrote:

            Or if the newly/additionally added "deploy" folder is not high volume,
            does it still make sense to permanently cache it?


            The problem is that the current deployers & VFS design is *very* dependent on permanent caching of VFS roots, per the discussion here:

            http://lists.jboss.org/pipermail/jboss-development/2009-April/014187.html

            So, anything which doesn't use it will eventually fail (unless they aren't using temps).



            • 3. Re: Default VFS caching locations
              jaikiran

               

              "jason.greene@jboss.com" wrote:
              (unless they aren't using temps).



              And from what i remember, every deployment irrespective of how its packaged will be temped.