Hey <@U01S16ZCUQM>! You can configure the amount o...
# help
y
Hey @Nick Hryhoriev(AF)! You can configure the amount of space lakeFS uses for cache. I'll look it up in the docs, one sec please
n
ANd by default it’s do not have limit?
y
The default value is 1GB. You can change the value using the
committed.local_cache.size_bytes
configuration.
For example, if you're using a yaml configuration file to configure lakeFS, add the following to limit the cache to 256MB:
Copy code
committed:
  local_cache:
    size_bytes: 268435456
o
we should probably open an issue on this: it’s a good idea to validate that the cache size doesn’t exceed the size of the target device (and perhaps warn if current free space < cache size?)
n
hm… BUt I definetly have more than 1 gb
o
any idea what the current size of the cache directory is? are you running inside a container? if so, the limit would be the volume used by e.g. docker when spinning up the container
n
I am running on ec2 instance and the value is default on
y
Thanks @Nick Hryhoriev(AF). Can you check how much space the
/home/lakefs/data/lakefs/cache/
directory takes? (
du -sh /home/lakefs/data/lakefs/cache/
)
n
Yep, give me some time.
I am sorry I can’t. Something wrong with my SSM config
Copy code
Your session has been terminated for the following reasons: Plugin with name Standard_Stream not found. Step name: Standard_Stream
I will recreate instance with correct config or my ssh keys and come back to you, later.
y
Thanks for the update, @Nick Hryhoriev(AF). Looking forward to your update
b
In case you are running using docker inside ec2 -
docker ps --size
should give you how much size the container takes. Alt. will be
docker system df
to understand how much we use from the host.