How to enable only write cache? #1681
-
I have an app that writes about 500G data (to about 10k files) each day. The app only writes (only append to existing files), never reads. It writes in small chunks ranging from 1k to 10m size continuously 24 hours. I am trying to use JuiceFS + aws S3 to store such data. I used this set of parameters in fstab:
I only give 10G cache size since my app do not reads. It worked great at first. However, after the cache is full ( I tried to disable read cache by setting
However, after this there seems to be no write cache either. Directory Because the app is writing in small chunks, I am hoping to buffer the writes and upload them in batches. The read cache seems to be causing a lot of unnecessary IO operations. Is there a way to disable read cache but only enable write cache? Environment: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
When If you want to disable cache for read, please use a small Is swap enabled on your system? Can you check how much memory is used by JuiceFS? We have fixed an issue on memory consumption in writeback mode: #1558 |
Beta Was this translation helpful? Give feedback.
When
upload-delay
is used, JuiceFS writes the data into disk, then read them back and upload them to S3 later. So there will be some read IO on the disk.If you want to disable cache for read, please use a small
cache-size
, for example, 100 , which means 100MB.Is swap enabled on your system? Can you check how much memory is used by JuiceFS? We have fixed an issue on memory consumption in writeback mode: #1558