Directory Proxy Server Documentation Index
Command-Line Tool Reference Home

global-index-size

Description
Examples
Arguments

Description

Estimates the size in memory of one or more global indexes from the actual number of keys, the configured number of keys and the average key size. The estimate could be slightly higher or lower than the actual size. An estimate can be provided for more than one index in one invocation by providing multiple sets of options.

Examples

Estimate the size of an index for the given number of keys and average key size. The configured number of keys is assumed equal to the actual number of keys:
global-index-size --numKeys 10000000 --averageKeySize 10


Estimate the size of multiple indexes for differing number of keys and average key size. The configured number of keys is assumed equal to the actual number of keys:
global-index-size --numKeys 10000000 --averageKeySize 10 --numKeys 20000000 \
     --averageKeySize 20


Estimate the size of multiple indexes for differing actual number of keys, configured number of keys and average key size:
global-index-size --numKeys 10000000 --configuredNumKeys 100000000 \
     --averageKeySize 10 --numKeys 20000000 --configuredNumKeys 100000000 \
     --averageKeySize 20

Arguments

-V
--version

Description Display Directory Proxy Server version information

-H
--help

Description Display general usage information

--help-debug

Description Display help for using debug options
Advanced Yes

-n {actualNumKeys}
--numKeys {actualNumKeys}

Description The actual number of keys stored in the index
Lower Bound 1
Required Yes
Multi-Valued Yes

-a {numBytes}
--averageKeySize {numBytes}

Description The average size of a key in bytes. For attribute indexes the key is simply the attribute value. For the built-in RDN index, the key is the RDN directly below the balancing base DN (so uid=user.0,dc=example,dc=com for example is a 10 byte key when the balancing base DN is dc=example,dc=com). Non-ASCII characters are the size of their UTF-8 encoding
Lower Bound 1
Required Yes
Multi-Valued Yes

-c {configuredNumKeys}
--configuredNumKeys {configuredNumKeys}

Description The configured number of keys (the value provided to the index-size configuration property)
Lower Bound 1
Required No
Multi-Valued Yes

--script-friendly

Description Use script-friendly mode