Re: Does test-write ever get expunged?

2008-04-13 Thread mike
Would it be an option to create my own cronjob to remove them?

It seems to PUT and then GET. So technically they don't need to stick
around, do they?

How many get put there before it cycles over itself and starts
overwriting the old ones?

On 4/13/08, dormando [EMAIL PROTECTED] wrote:
 They don't, they get overwritten eventually.

 It's goofy, we know :)


Re: Does test-write ever get expunged?

2008-04-13 Thread mike
Seems to me a somewhat trivial process.

1) issue a delete after a successful GET
2) have the server periodically do garbage collection (which might be
the 10k files you're talking about, but why not set it to say, 50
files or something much lower? Why grow a directory index so large
with unneeded files?)

On 4/13/08, dormando [EMAIL PROTECTED] wrote:
 You can safely ignore them... They'll create about ten thousand :)

 They don't take any space, it's just an artifact of developing with it.

 There was a patch sent to the list (sorry, I never followed up) which issued
 a delete, but it also removed the 10,000 limitation which I didn't like. You
 could apply that, keep the 10,000 file max (in case deletes fail), and it
 should just keep the dir clean.


Re: Does test-write ever get expunged?

2008-04-13 Thread dormando
1) yes, that's the patch I'm referring to. except you can't _count_ on 
the delete working, so you can't just pick a random filename.

2) because it doesn't matter?

mike wrote:

Seems to me a somewhat trivial process.

1) issue a delete after a successful GET
2) have the server periodically do garbage collection (which might be
the 10k files you're talking about, but why not set it to say, 50
files or something much lower? Why grow a directory index so large
with unneeded files?)

On 4/13/08, dormando [EMAIL PROTECTED] wrote:

You can safely ignore them... They'll create about ten thousand :)

They don't take any space, it's just an artifact of developing with it.

There was a patch sent to the list (sorry, I never followed up) which issued
a delete, but it also removed the 10,000 limitation which I didn't like. You
could apply that, keep the 10,000 file max (in case deletes fail), and it
should just keep the dir clean.




Re: Does test-write ever get expunged?

2008-04-13 Thread Brad Fitzpatrick
Who cares?

10,000 files is noise on any reasonably-sized MogileFS installation.


On Sun, Apr 13, 2008 at 1:02 AM, mike [EMAIL PROTECTED] wrote:

 Seems to me a somewhat trivial process.

 1) issue a delete after a successful GET
 2) have the server periodically do garbage collection (which might be
 the 10k files you're talking about, but why not set it to say, 50
 files or something much lower? Why grow a directory index so large
 with unneeded files?)

 On 4/13/08, dormando [EMAIL PROTECTED] wrote:
  You can safely ignore them... They'll create about ten thousand :)
 
  They don't take any space, it's just an artifact of developing with it.
 
  There was a patch sent to the list (sorry, I never followed up) which
 issued
  a delete, but it also removed the 10,000 limitation which I didn't like.
 You
  could apply that, keep the 10,000 file max (in case deletes fail), and
 it
  should just keep the dir clean.