Hi, My major use of softflowd is for generating pretty pictures with CUFlow. As CUFlow is RRD-based, flows that last a long time show up as spikes on the graph. This is increasingly becoming a problem for a variety of administrative (people admin, not tech admin) reasons. I''d like to have softflowd expire each flow after 300 seconds, and restart with a new flow. Yes, this is rather dumb, I know, but I can reassemble these flows more easily than I can explain problems with the pictures. One thought that comes to mind is to do a softflowctl expire-all every five minutes, but this strikes me as rather brute-force. Is there a cleaner way to do this, or am I just stuck with using an ugly hack to implement my ugly requirements? Thanks, ==ml -- Michael W. Lucas mwlucas at FreeBSD.org, mwlucas at BlackHelicopters.org http://www.BlackHelicopters.org/~mwlucas/ Latest book: PGP & GPG -- http://www.pgpandgpg.com "The cloak of anonymity protects me from the nuisance of caring." -Non Sequitur
On Sun, 24 Sep 2006, Michael W. Lucas wrote:> I''d like to have softflowd expire each flow after 300 seconds, and > restart with a new flow. Yes, this is rather dumb, I know, but I can > reassemble these flows more easily than I can explain problems with > the pictures. > > One thought that comes to mind is to do a softflowctl expire-all every > five minutes, but this strikes me as rather brute-force. Is there a > cleaner way to do this, or am I just stuck with using an ugly hack to > implement my ugly requirements?You can set the "maxlife" timeout to achieve exactly this:> maxlife > This is the maximum lifetime that a flow may exist for. All > flows are forcibly expired when they pass maxlife seconds. To > disable this feature, specify a maxlife of 0.so, "softflowd -tmaxlife=300 ..." should do what you want. -d
On Mon, Sep 25, 2006 at 01:40:33PM +1000, Damien Miller wrote:> On Sun, 24 Sep 2006, Michael W. Lucas wrote: > > > I''d like to have softflowd expire each flow after 300 seconds, and > > restart with a new flow. Yes, this is rather dumb, I know, but I can > > reassemble these flows more easily than I can explain problems with > > the pictures. > > > > One thought that comes to mind is to do a softflowctl expire-all every > > five minutes, but this strikes me as rather brute-force. Is there a > > cleaner way to do this, or am I just stuck with using an ugly hack to > > implement my ugly requirements? > > You can set the "maxlife" timeout to achieve exactly this: > > > maxlife > > This is the maximum lifetime that a flow may exist for. All > > flows are forcibly expired when they pass maxlife seconds. To > > disable this feature, specify a maxlife of 0. > > so, "softflowd -tmaxlife=300 ..." should do what you want.You know, I must be blind. Thank you for reading the man page at me. :-) ==ml -- Michael W. Lucas mwlucas at FreeBSD.org, mwlucas at BlackHelicopters.org http://www.BlackHelicopters.org/~mwlucas/ Latest book: PGP & GPG -- http://www.pgpandgpg.com "The cloak of anonymity protects me from the nuisance of caring." -Non Sequitur