Re: limiting disk usage

"Florian Fischer" <[email protected]>
Newsgroups gmane.comp.web.polipo.user
Message-ID <[email protected]>
I'm not sure if a real solution exists.
But a possible workaround may be to run "polipo -x" in regular intervals (e.g. using a
cron job). 

>From the man page: 

-x
    Purge the on-disk cache and exit.

"Purging" the cache means that expired files are deleted, so this will free some amount of
disk space.

I remember reading in the manual that it's not necessary to stop the polipo daemon while
doing this. 

Regards,
  Florian 

> -----Ursprüngliche Nachricht-----
> Von: Kamil Paral [mailto:[email protected]]
> Gesendet: Freitag, 16. Dezember 2011 13:25
> An: [email protected]
> Betreff: Re: [Polipo-users] limiting disk usage
> 
> > Moreover, what will happen if Polipo runs out of available disk
> > space?
> 
> I tested this use case, the worst scenario occurs: All existing connections hangs, no
new
> connections are accepted, and polipo is stuck in an infinite loop writing "Couldn't
write
> headers: No space left on device" into /var/log/polipo several times per second.
> 
> It means this is deadly. I can't (probably) set limits on disk usage. I can't use other
> approaches (quotas, separate disk partition), because then polipo hangs. For my purposes
> polipo is much better then e.g. squid, but this is a showstopper, I have no idea how to
work
> around that. On a server I can't just _hope_ that the disk usage won't get out of reach.
> 
> Any ideas?
> 
> ------------------------------------------------------------------------------
> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
> Microsoft is holding a special Learn Windows Azure training event for
> developers. It will provide a great way to learn Windows Azure and what it
> provides. You can attend the event by watching it streamed LIVE online.
> Learn more at http://p.sf.net/sfu/ms-windowsazure
> _______________________________________________
> Polipo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/polipo-users


------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.