artifactory OSS (non pro) way to determine data/filestore to URL mapping

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

artifactory OSS (non pro) way to determine data/filestore to URL mapping

Nestor Urquiza
Hi,

I found out several unique files consuming over 100MB in our artifactory server. For example:

/opt/artifactory/data/filestore/0c/0c709dc1f3c33049f1647c8360d3c0616a1b50de

The question is how do I know which file is that really if I stick to artifactory non pro version? The two apis related to finding out the size of a file seem to be supported only in the pro version (api/storage/repo/path?list and api/search/checksum)

On a side note I noticed derby database is IMO kind of big. Is there any way to make sure the db uses less space? See below:

-rw-r--r-- 1 admin admin 56M 2013-06-17 11:22 /opt/artifactory/data/derby/seg0/c701.dat
-rw-r--r-- 1 admin admin 23M 2013-06-17 11:05 /opt/artifactory/data/derby/seg0/ca20.dat
-rw-r--r-- 1 admin admin 62M 2013-06-17 11:22 /opt/artifactory/data/derby/seg0/c6f1.dat
-rw-r--r-- 1 admin admin 66M 2013-06-17 11:05 /opt/artifactory/data/derby/seg0/c8f0.dat
-rw-r--r-- 1 admin admin 103M 2013-06-17 11:22 /opt/artifactory/data/derby/seg0/c6d1.dat
-rw-r--r-- 1 admin admin 67M 2013-06-17 11:22 /opt/artifactory/data/derby/seg0/c6c0.dat
-rw-r--r-- 1 admin admin 36M 2013-06-17 11:22 /opt/artifactory/data/derby/seg0/c6e1.dat

Thanks!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: artifactory OSS (non pro) way to determine data/filestore to URL mapping

jbaruch
Administrator
Hi Nestor,

Just use the checksum search from the UI.
The filename you see on the disk is sh1 checksum.

HTH

Baruch.

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



On Mon, Jun 17, 2013 at 9:32 PM, Nestor Urquiza <[hidden email]> wrote:
Hi,

I found out several unique files consuming over 100MB in our artifactory
server. For example:

/opt/artifactory/data/filestore/0c/0c709dc1f3c33049f1647c8360d3c0616a1b50de

The question is how do I know which file is that really if I stick to
artifactory non pro version? The two apis related to finding out the size of
a file seem to be supported only in the pro version
(api/storage/repo/path?list and api/search/checksum)

On a side note I noticed derby database is IMO kind of big. Is there any way
to make sure the db uses less space? See below:

-rw-r--r-- 1 admin admin 56M 2013-06-17 11:22
/opt/artifactory/data/derby/seg0/c701.dat
-rw-r--r-- 1 admin admin 23M 2013-06-17 11:05
/opt/artifactory/data/derby/seg0/ca20.dat
-rw-r--r-- 1 admin admin 62M 2013-06-17 11:22
/opt/artifactory/data/derby/seg0/c6f1.dat
-rw-r--r-- 1 admin admin 66M 2013-06-17 11:05
/opt/artifactory/data/derby/seg0/c8f0.dat
-rw-r--r-- 1 admin admin 103M 2013-06-17 11:22
/opt/artifactory/data/derby/seg0/c6d1.dat
-rw-r--r-- 1 admin admin 67M 2013-06-17 11:22
/opt/artifactory/data/derby/seg0/c6c0.dat
-rw-r--r-- 1 admin admin 36M 2013-06-17 11:22
/opt/artifactory/data/derby/seg0/c6e1.dat

Thanks!



--
View this message in context: http://forums.jfrog.org/artifactory-OSS-non-pro-way-to-determine-data-filestore-to-URL-mapping-tp7578893.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: artifactory OSS (non pro) way to determine data/filestore to URL mapping

Nestor Urquiza
Hi Baruch,

Thanks a lot for the heads up however that API is also available *only* in Artifactory pro:

Checksum Search

Description: Artifact search by checksum (md5 or sha1)
Searches return file info uris. Can limit search to specific repositories (local or caches).
Notes: Requires Artifactory Pro


Any other option?

Thanks!

- Nestor



On Mon, Jun 17, 2013 at 8:36 PM, JBaruch <[hidden email]> wrote:
Hi Nestor,

Just use the checksum search from the UI.
The filename you see on the disk is sh1 checksum.

HTH

Baruch.

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



On Mon, Jun 17, 2013 at 9:32 PM, Nestor Urquiza <[hidden email]> wrote:
Hi,

I found out several unique files consuming over 100MB in our artifactory
server. For example:

/opt/artifactory/data/filestore/0c/0c709dc1f3c33049f1647c8360d3c0616a1b50de

The question is how do I know which file is that really if I stick to
artifactory non pro version? The two apis related to finding out the size of
a file seem to be supported only in the pro version
(api/storage/repo/path?list and api/search/checksum)

On a side note I noticed derby database is IMO kind of big. Is there any way
to make sure the db uses less space? See below:

-rw-r--r-- 1 admin admin 56M 2013-06-17 11:22
/opt/artifactory/data/derby/seg0/c701.dat
-rw-r--r-- 1 admin admin 23M 2013-06-17 11:05
/opt/artifactory/data/derby/seg0/ca20.dat
-rw-r--r-- 1 admin admin 62M 2013-06-17 11:22
/opt/artifactory/data/derby/seg0/c6f1.dat
-rw-r--r-- 1 admin admin 66M 2013-06-17 11:05
/opt/artifactory/data/derby/seg0/c8f0.dat
-rw-r--r-- 1 admin admin 103M 2013-06-17 11:22
/opt/artifactory/data/derby/seg0/c6d1.dat
-rw-r--r-- 1 admin admin 67M 2013-06-17 11:22
/opt/artifactory/data/derby/seg0/c6c0.dat
-rw-r--r-- 1 admin admin 36M 2013-06-17 11:22
/opt/artifactory/data/derby/seg0/c6e1.dat

Thanks!



--
View this message in context: http://forums.jfrog.org/artifactory-OSS-non-pro-way-to-determine-data-filestore-to-URL-mapping-tp7578893.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: artifactory OSS (non pro) way to determine data/filestore to URL mapping

Nestor Urquiza
In reply to this post by Nestor Urquiza
Just in case someone else wonders how to cleanup artifactory OSS I ended up involving the team in a collaborative way to delete everything we did not needed: http://thinkinginsoftware.blogspot.com/2013/06/cleaning-up-artifactory-oss.html

This removed all big files and more. I am now in the process of shrinking the derby DB for which I have opened a different thread.

Thanks,
- Nestor
Loading...