23.3 Journal Event Caching

eDirectory has an event system where event consumers can register for events and consume them when they occur. An event handler can be registered as Worker, Inline, or Journal. The Journal Event queue is expected to report the events in the same order as they occur. With the current Journal Event system, the journal event queue is maintained in memory. If the consumers of the events are slow, or the rate at which events occur is more than the rate at which they can be processed, the Journal queue starts growing. This results in the memory growth of the ndsd process.

The Journal Event system is modified to allow you to use a combination of memory and disk to maintain events in a queue. This reduces the drastic growth in memory of the ndsd process.

Some instances where the events can cause memory growth are: ndstrace enabled or auditing enabled. You can control memory growth by enabling Event system caching.

Configuring Event System Caching

You must set the following environment variables for event system caching:

NOTE:Ensure that there is sufficient disk space available in the caching directory because ndsd/dhost can quickly consume several GBs of disk space.