[RTFACT-12519] Cache-FS Storage summary should show the max cache size Created: 20/Sep/16  Updated: 26/Apr/18  Resolved: 29/Jan/18

Status: Resolved
Project: Artifactory Binary Repository
Component/s: Artifact Storage
Affects Version/s: 4.12.2, 4.14.0, 5.1.3, 5.2.0
Fix Version/s: 5.9.0

Type: Improvement Priority: Normal
Reporter: Arturo Aparicio Assignee: Nadav Yogev
Resolution: Fixed Votes: 4
Labels: None

Attachments: File SortFilter_tree-04.svg     File SortFilter_tree-04.svg     File SortFilter_tree-06.svg     File SortFilter_tree-06.svg     File SortFilter_tree-07.svg     File SortFilter_tree-07.svg     File SortFilter_tree_Artboard 144.svg     File SortFilter_tree_Artboard 144.svg    
Issue Links:
Relationship
is related to RTFACT-16514 Storage Summary slow or fails with ca... Resolved
is related to RTFACT-12838 Storage Summary should better calcula... Open
Assigned QA: Maxim Yurkovsky

 Description   

The Cache-FS Storage summary should show the max cache size.

At the moment it gives no indication of the max cache size, even if it is lower than the disk amount. For example a 4GB cache-fs entry like this:

<provider id="cache-fs" type="cache-fs">
        <cacheProviderDir>/art</cacheProviderDir>
         <maxCacheSize>1000000</maxCacheSize>
</provider>

Will show up in the summary like this:

Cache FS
Directory: /art
Used: 0 / 3.9 GB (0.0%)

Even when it only really has 100000 bytes (~1MB) available.



 Comments   
Comment by Richard Turek [ 06/Mar/17 ]

I'm using Artifactory Version 5.1.0.

Neither the used cache size nor the max size (as per maxCacheSize in binarystore.xml) shows as I would expect in the UI.

The Cache FS section appears to report on the the whole filesystem containing the cache directory.

From the UI:
Cache FS
Directory: /var/opt/jfrog/artifactory/data/cache
Used: 30.3 GB / 147.5 GB (20.5%)

Size of the cache directory on the filesystem
$ /var/opt/jfrog/artifactory/data/cache$ du -sh .
9.3G .

Size of volume that holds the Artifactory cache directory
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 396M 11M 385M 3% /run
/dev/xvda1 148G 31G 112G 22% / <<==== cache dir on this volume
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 396M 0 396M 0% /run/user/1001
tmpfs 396M 0 396M 0% /run/user/1000

Comment by Nadav Yogev [ 30/Nov/17 ]

Changing the "Used: ..." to reflect the real cache size values (used space and total space)

Generated at Sun Aug 25 00:59:28 UTC 2019 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.