nuauth_number_loggers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

nuauth_number_loggers

Glen Ogilvie-2
Hi,

I've been wondering about changing the values for
nuauth_number_loggers and nuauth_number_session_loggers

I have nuauth_log_users_sync=1 in my configuration.  If I increase
the number of loggers, will they be used when nuauth_log_users_sync
is set to 1?

In I increase nuauth_number_loggers, if i understand right, it will
increase the connections to the database server.  Would 20 be a reasonable
number from anyones experience?

Regards
--
Glen Ogilvie
Open Systems Specialists
Level 1, 162 Grafton Road
http://www.oss.co.nz/

Ph: +64 9 984 3000
Mobile: +64 21 684 146
GPG Key: ACED9C17


_______________________________________________
Nufw-users mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/nufw-users
Reply | Threaded
Open this post in threaded view
|

Re: nuauth_number_loggers

Eric Leblond-2
Hello,

Le vendredi 05 mars 2010 à 12:12 +1300, Glen Ogilvie a écrit :
> Hi,
>
> I've been wondering about changing the values for
> nuauth_number_loggers and nuauth_number_session_loggers
>
> I have nuauth_log_users_sync=1 in my configuration.  If I increase
> the number of loggers, will they be used when nuauth_log_users_sync
> is set to 1?

Hmmm good question :) I've just realized this point is not clear. The
response is yes but to a certain limit.

If you use log_users_sync mode, this will create a pool of threads
dedicated to decision making. The maximum number of threads is equal to
the number of threads for logging set by nuauth_number_loggers.
There is then two cases:
      * OPEN packets are logged in decision making threads (which do
        also logging)
      * Other packets are logged by logger pools.
The result is that you can have at 2 * nuauth_number_loggers connections
to the database server.

> In I increase nuauth_number_loggers, if i understand right, it will
> increase the connections to the database server.  Would 20 be a reasonable
> number from anyones experience?

It could be too much for your database. If I remember well I've set the
number to 5 to avoid stressing the database too much. But it can depends
on your setup.

BR,
--
Eric Leblond <[hidden email]>
NuFW, Now User Filtering Works : http://www.nufw.org

_______________________________________________
Nufw-users mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/nufw-users

signature.asc (196 bytes) Download Attachment