Adjust local cache settings in the command-line interface

  • Updated

You can adjust and view the LucidLink cache through the command-line interface 'lucid3 cache' and 'lucid3 config' commands. 

The "lucid3 cache" command can be used to see the current cache configuration and turn the cache on or off.

Usage: lucid3 cache [options]

Display cache information as well as control the cache

Options:

    [--info]                 Display cache information
    --on                     Turn the cache on
    --off                    Turn the cache off
    --drop                   Clear all evictable pages from the cache.
    --size size              Size of the cache in MiB

Cache status:

lucid3 cache
State: enabled Backend writes: enabled Page size: 1MiB Pinnable limit: 20GiB Cache limit: 25GiB Current size on disk: 203.20MiB Pinned size on disk: 0B Remaining upload: 0B

Clear all evictable pages from the cache:

lucid3 cache --drop

To change the cache size from the command line you need to use lucid3 config.

usage: lucid3 config --explain [--KEY1 --KEY2 ...]

Key:               DataCache.Size
Description:       Local data cache size. The default is 5GB. 80% of the size is available for pinning.
Value constraints: Min 100MB. Max 10TB. Supported units: MB, GB, TB.
Default value:     5GiB

 

Example: Change the LucidLink cache size to 10GB (applied once there are no remaining uploads):

lucid3 config --set --DataCache.Size 10G

Was this article helpful?

1 out of 1 found this helpful