Le vendredi 05 mars 2010 à 12:12 +1300, Glen Ogilvie a écrit :
> 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
* 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.