-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make writes more reliable through cache #1936
Comments
|
Actually it's either The temporary upload storage is doing the same thing as cache-writes. Reading is done directly from it too so there's not much point in the complexity of keeping 2 cached datas in sync (which will turn in bad performance) But I do see your point. I actually thought about this when starting this feature and I partially agreed that caching the data even when it is in temporary storage would be ok but dropped it. I'll give it some more thought and maybe leave it open for a discussion here. |
|
It's an interesting one! It seems a shame to 'loose' the data held in the upload cache once the upload has completed, especially if I'm actively saying `--cache-writes'. To me, at the point the upload cache item is removed it should be transferred to the cache backend. Ideally there would be no performance detraction because any changes would be managed by the upload cache until the cut over. I can, however, see a problem with performance during the cutover as I suspect (sorry, I haven't read the code to understand the mechanism) you'd have to convert the upload cached item into chunks to match the cache backend format.
What I noticed with the beta v99 was that when I specified both it was only the backend cache directory that was filling and nothing was going into the upload cache. I might have been looking at it boz eyed so I'll double check. |
|
Instead of opening a new issue I thought I'd ask here: Is it functioning correctly that the upload cache deletes the local file in the upload cache directory but leaving the empty directory tree behind? After weeks of cached writes the directory tree is quite big now full of empty dirs, I'm running a cron for |
|
Yes, I’m seeing the same thing. I’m not worried about the empty directories, but maybe is should clean itself up after it’s uploaded.
… On 2 Mar 2018, at 6:13 am, Daniel Loader ***@***.***> wrote:
Instead of opening a new issue I thought I'd ask here:
Is it functioning correctly that the upload cache deletes the local file in the upload cache directory but leaving the empty directory tree behind? After weeks of cached writes the directory tree is quite big now full of empty dirs, I'm running a cron for find /path/to/uploadcahce -type d -empty -delete but was wondering if this is the best way to do it or if it's meant to be done via the cache itself.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#1936 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AApfuIGJZAO_f3HLoFSWTZ0k9TsI5Qneks5taSlTgaJpZM4RK8Xo>.
|
|
I wouldn't say I'm worried but when I'm running a |
|
Yep, that is annoying I know. Especially in their encrypted form, if I want to check a file, it's damn near impossible to locate it. It should be fairly fast and easy to clean up empty folders after a file is uploaded. I'll check it out after I finish this round of changes I have in the line. |
|
Just want to say you're doing great work and it's obviously a low urgency issue. I tried wrapping the cacheupload dir with the crypt mount so I could see what's being uploaded but it was spotty at best. |
|
I'm closing this issue for 1.4 The dir cleanup will be done as part of a new issue after 1.4 gets released |
This is to track future work on cache to make uploads and general writes through
cachemore fault tolerant.Ideas I have so far:
A couple of things I can think of:
The text was updated successfully, but these errors were encountered: