On 03/10/2016 04:39 AM, Yaroslav Halchenko wrote:
> On Wed, 09 Mar 2016, Sander Hoentjen wrote:
>
>> Hi list,
>> What would be the advantage of using dbfile = :memory:? It is documented
>> in fail2ban.conf as an option, but I don't see what benefit this would have.
> I guess speed and absent persistence across restarts (if that is desired)
>
Hmm reading back my message I should be more clear:
I mean the difference between dbfile = :memory: and dbfile = None
One doesn't keep a dbfile at all (with None) and the other keeps one in
memory. Neither has persistence across reboots if I am not mistaken.

A cooler option for me would be a hybrid one I guess. One that keeps the
dbfile in memory, but saves to disk on stop of fail2ban, and loads it on
start, but then keeps in memory again.
This has a downside of slower stop, and no persistence on crash, but
better performance and persistance across restarts most of the time.


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to