Artifactory 3 -- deleting index, freeing disk space

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Artifactory 3 -- deleting index, freeing disk space

jm_in_pgh
Hi, I would like to delete the artifact index, but all instructions I have found for this (for example, http://www.jfrog.com/confluence/display/RTF2X/Dealing+with+Broken+Index) apply only to version 2, and I have version 3. The directory $ARTIFACTORY_HOME/data/index does not seem to exist for version 3, as far as I can tell. How can I delete the index?

Here's what I'm really trying to achieve, though: When I delete an artifact from Artifactory using the UI or API, the space is not freed on disk until a long time later, by what mechanism I am not sure. And we have a disk space shortage on the near horizon. I'm thinking that rebuilding the index will help address this; am I on the right track?

Thanks,
-- Jerry
Reply | Threaded
Open this post in threaded view
|

Re: Artifactory 3 -- deleting index, freeing disk space

jbaruch
Administrator
Hi Jerry,

Version 3 does not have a standalone index you could delete.
Upon the deletion the space does not freed because of deduplicated storage. Since the same physical file might refer to multiple paths, deleting one of them shouldn't trigger the deletion of the real file (since other paths might still exist). The actuall file deletion happens during the next garbage collection, which runs by default every 4 hours. You can change the schedule and run it manually in the maintenance page of the admin tab.

Hope that helps.

Baruch.

--
JFrog Developer Advocate 
www.jfrog.com
+972544954353
@jbaruch
http://linkd.in/jbaruch





On Fri, Feb 7, 2014 at 6:02 PM, jm_in_pgh [via Artifactory] <[hidden email]> wrote:
Hi, I would like to delete the artifact index, but all instructions I have found for this (for example, http://www.jfrog.com/confluence/display/RTF2X/Dealing+with+Broken+Index) apply only to version 2, and I have version 3. The directory $ARTIFACTORY_HOME/data/index does not seem to exist for version 3, as far as I can tell. How can I delete the index?

Here's what I'm really trying to achieve, though: When I delete an artifact from Artifactory using the UI or API, the space is not freed on disk until a long time later, by what mechanism I am not sure. And we have a disk space shortage on the near horizon. I'm thinking that rebuilding the index will help address this; am I on the right track?

Thanks,
-- Jerry


If you reply to this email, your message will be added to the discussion below:
http://forums.jfrog.org/Artifactory-3-deleting-index-freeing-disk-space-tp7579600.html
To start a new topic under Artifactory - Users, email [hidden email]
To unsubscribe from Artifactory - Users, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Artifactory 3 -- deleting index, freeing disk space

jm_in_pgh
Thanks, Baruch! I ran the garbage collection but didn't see a lot of space savings. I'll look at it again in a few hours.

-- Jerry
Reply | Threaded
Open this post in threaded view
|

Re: Artifactory 3 -- deleting index, freeing disk space

jbaruch
Administrator
Maybe some artifacts weren't qualified for garbage collection because they still had references (e.g. copies in other repositories).

Baruch.

--
JFrog Developer Advocate 
www.jfrog.com
+972544954353
@jbaruch
http://linkd.in/jbaruch





On Fri, Feb 7, 2014 at 8:15 PM, jm_in_pgh <[hidden email]> wrote:
Thanks, Baruch! I ran the garbage collection but didn't see a lot of space
savings. I'll look at it again in a few hours.

-- Jerry




--
View this message in context: http://forums.jfrog.org/Artifactory-3-deleting-index-freeing-disk-space-tp7579600p7579604.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users