Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One thing I don’t fully understand is whether data is cached locally or whether I would have to handle that myself (for example if I have to read a configuration file)? And if it is cached, how can I control how often it refreshes?


It uses FUSE and there's three types of Kernel cache you could use with FUSE (although, it seems like gcsfuse is exposing only one):

1. Cache of file attributes in the Kernel (this is controlled by "stat-cache-ttl" value - https://github.com/GoogleCloudPlatform/gcsfuse/blob/7dc5c7ff...) 2. Cache of directory listings 3. Cache of file contents

It should be possible to use (2) and (3) for a better performance but might need changes to the underlying fuse library they use to expose those options.


Thanks so much - this sort of info absolutely should be in the docs (and easy to find)


I don't think it is, instead each operation makes a request. You can use something like catfs https://github.com/kahing/catfs


gcsfuse has controllable built-in caching of _metadata_ but not contents: https://cloud.google.com/storage/docs/gcsfuse-performance-an...

You'd have to use your own cache otherwise. IME the OS-level page cache is actually quite effective at caching reads and seems to work out of the box with gcsfuse.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: