Discussion:
max. numbers of subordinate databases
Dieter Klünter
2012-10-29 17:50:23 UTC
Permalink
Hello,
I have a strange requirement to setup a Server with as much as possible
subordinate databases. In a test environment I could create any number
of databases, but a one level search presents the results of 27
databases and after this an internal error is reported.
(thread_pool_setkey failed err (12)) I did this tests with back-hdb and
back-mdb.
Is there any way to increase the number of subordinate databases?

-Dieter
--
Dieter Klünter | Systemberatung
http://dkluenter.de
GPG Key ID:DA147B05
53°37'09,95"N
10°08'02,42"E
Howard Chu
2012-10-29 18:25:24 UTC
Permalink
Post by Dieter Klünter
Hello,
I have a strange requirement to setup a Server with as much as possible
subordinate databases. In a test environment I could create any number
of databases, but a one level search presents the results of 27
databases and after this an internal error is reported.
(thread_pool_setkey failed err (12)) I did this tests with back-hdb and
back-mdb.
Is there any way to increase the number of subordinate databases?
There is no limit on the number of subordinate databases. (You could, e.g.,
define 10000 back-ldap instances if you really wanted to. Probably, if you
actually wanted to do this, you're doing something wrong...)

Your error is due to hitting a limit on the number of thread-specific keys
defined in libldap_r, which is arbitrarily defined as 32. Change tpool.c
MAXKEYS to whatever number you need it to be. Note that increasing this number
will also consume more memory in each thread's local stack; setting this to
thousands would probably be a bad idea.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
Loading...