[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Monitoring back-mdb's olcDbMaxSize



Hi,

On Thu, 19 Dec 2013, Michael StrÃder wrote:

HI!

Using back-mdb there's one thing which could cause trouble:
One has to configure olcDbMaxSize which cannot be changed later.

So when monitoring OpenLDAP with back-mdb it would be interesting to see how
much space of configured olcDbMaxSize is already occupied.

Does it make sense to compare the real file size shown by du -h
/path/to/data.mdb to configured olcDbMaxSize?

something like mdb_stat:

[ldaptest1]# mdb_stat -e /var/lib/ldap
Environment Info
  Map address: (nil)
  Map size: 1073741824
  Page size: 4096
  Max pages: 262144
  Number of pages used: 2604
  Last transaction ID: 125386
  Max readers: 126
  Number of readers used: 9
Status of Main DB
  Tree depth: 1
  Branch pages: 0
  Leaf pages: 1
  Overflow pages: 0
  Entries: 17
[ldaptest1]#

Although I am not 100% sure what would be the best values to monitor.

Propably Number of pages used and max pages.

Greetings
Christian

--
Christian Kratzer                      CK Software GmbH
Email:   ck@cksoft.de                  Wildberger Weg 24/2
Phone:   +49 7032 893 997 - 0          D-71126 Gaeufelden
Fax:     +49 7032 893 997 - 9          HRB 245288, Amtsgericht Stuttgart
Web:     http://www.cksoft.de/         Geschaeftsfuehrer: Christian Kratzer