michael at stroeder.com
Sun Mar 11 11:19:25 CET 2007
Chaos Eternal wrote:
> hello there,
> Since your script is run by cron every one minute, i wonder that do
> you have any lock mechanisms to prevent more than one instance of your
> script to start? some buggy or mis-configured ldapserver can not work
> properly when large amounts of write operations come simultaneously.
Very unlikely. This would be a really brain-dead LDAP server.
> What I suggest is carefully re-design your script. use some lock
> mechanisms and some queue technologies.
LDAP add and modify operations are atomic. The LDAP server takes care of
database locking. And python-ldap takes care of locks for using a LDAP
connection in several threads.
More information about the python-ldap