13.07.2015 Views

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

nisplus<strong>LDAP</strong>databaseIdMappingnisplus<strong>LDAP</strong>databaseIdMappingrpc_table:rpc.org_dirrpc:rpc.org_dirdefines the database ids rpc_table <strong>and</strong> rpc as aliases for the rpc.org_dir table.Later definitions will make it clear that rpc_table is used for the rpc.org_dirtable object, <strong>and</strong> rpc for the entries in that table.nisplus<strong>LDAP</strong>entryTtl AttributeSince the rpc.nisd daemon’s local database (in memory <strong>and</strong> on disk) functions as acache for <strong>LDAP</strong> data, the nisplus<strong>LDAP</strong>entryTtl attribute allows you to set thetime-to-live (TTL) values of entries in that cache. There are three TTLs for eachdatabase ID. The first two control the initial TTL when the rpc.nisd first loads thecorresponding <strong>NIS</strong>+ object data from disk, <strong>and</strong> the third TTL is assigned to an objectwhen it is read or refreshed from <strong>LDAP</strong>.For example the following results in the rpc.org_dir table object getting an initialTTL r<strong>and</strong>omly selected in the range 21600 to 43200 seconds.nisplus<strong>LDAP</strong>entryTtlrpc_table:21600:43200:43200When that initial TTL expires <strong>and</strong> the table object is refreshed from <strong>LDAP</strong>, the TTL willbe set to 43200 seconds.Similarly the following will assign an initial TTL between 1800 <strong>and</strong> 3600 seconds tothe entries in the rpc.org_dir table when it is first loaded.nisplus<strong>LDAP</strong>entryTtlrpc:1800:3600:3600Each entry gets its own r<strong>and</strong>omly selected TTL in the range specified. When a tableentry expires <strong>and</strong> is refreshed, the TTL is set to 3600 seconds.When selecting TTL values, consider the trade-off between performance <strong>and</strong>consistency. If the TTLs used for <strong>LDAP</strong> data cached by the rpc.nisd are very long,performance is the same as if rpc.nisd was not mapping data from <strong>LDAP</strong> at all.However, if the <strong>LDAP</strong> data is changed (by some entity other than rpc.nisd), it canalso take a very long time before that change is visible in <strong>NIS</strong>+.Conversely, selecting a very short (or even zero) TTL means that changes to <strong>LDAP</strong>data are quickly visible in <strong>NIS</strong>+, but can also impose a significant performancepenalty. Typically, an <strong>NIS</strong>+ operation that also reads data from or writes data to <strong>LDAP</strong>will take at least two to three times longer (plus the <strong>LDAP</strong> lookup overhead) than thesame operation without <strong>LDAP</strong> communication. Although performance can varygreatly depending on the hardware resources, scanning a large (tens of thous<strong>and</strong>s orhundreds of thous<strong>and</strong>s of entries) <strong>LDAP</strong> container to identify <strong>NIS</strong>+ entries that shouldbe refreshed can take a long time. The rpc.nisddaemon performs this scan in thebackground, continuing to serve possibly stale data while it is running, but thebackground scan still consumes CPU <strong>and</strong> memory on the <strong>NIS</strong>+ server.260 System Administration Guide: <strong>Naming</strong> <strong>and</strong> <strong>Directory</strong> <strong>Services</strong> (<strong>DNS</strong>, <strong>NIS</strong>, <strong>and</strong> <strong>LDAP</strong>) • January 2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!