Opened at 2008-04-25T00:09:22Z
Last modified at 2015-08-16T15:23:00Z
#395 new task
why are so many helper files being abandoned?
Reported by: | warner | Owned by: | somebody |
---|---|---|---|
Priority: | major | Milestone: | eventually |
Component: | operational | Version: | 1.0.0 |
Keywords: | upload-helper space-efficiency | Cc: | |
Launchpad Bug: |
Description (last modified by zooko)
Our prodnet munin graphs show that our helper is receiving ciphertext for a lot of files which are then abandoned, either part-way through the ciphertext fetch phase, or during the encode+push phase. The clients then never try again.
- add code (or admin tools) to delete old files from the helper's directory after a while. We have something like 38GB of files in there right now
- figure out where these are coming from. It must be the windows FUSE plugin (that's the only deployment we have on prodnet that uses the helper), but what sorts of files are so large and then abandoned? It's possible that encode+push takes so long that the application gives up and tries again (with a new and different file).
Change History (4)
comment:1 Changed at 2008-06-01T20:18:01Z by warner
comment:2 Changed at 2008-06-01T20:48:17Z by warner
- Milestone changed from eventually to undecided
comment:3 Changed at 2013-03-17T17:14:48Z by davidsarah
- Keywords space-efficiency added
- Milestone changed from undecided to eventually
According to git/docs/helper.rst#setting-up-a-helper, "future versions of tahoe" are supposed to delete abandoned upload files on the helper:
If a client disconnects while the ciphertext is being fetched, the partial ciphertext will remain in CHK_incoming/ until they reconnect and finish sending it. If a client disconnects while the ciphertext is being encoded, the data will remain in CHK_encoding/ until they reconnect and encoding is finished. For long-running and busy helpers, it may be a good idea to delete files in these directories that have not been modified for a week or two. Future versions of tahoe will try to self-manage these files a bit better.
comment:4 Changed at 2015-08-16T15:23:00Z by zooko
- Description modified (diff)
- Keywords upload-helper added; helper removed
Note: See
TracTickets for help on using
tickets.
I added cron jobs to delete files from CHK_encoding/ after one week, and from CHK_incoming/ after two weeks.