How to relocate the Identity Connector Cache File: “PersistentDictionary.edb”
Objective
In some environments, especially those with a large number of Users contained within Active Directory, the Identity Connector Cache file: “PersistentDictionary.edb” can store large amounts of data, resulting in the disk space on the Connector Server reaching full capacity.
The PersistentDictionary.edb Connector cache file, is a database file used by the Identity Connector to cache Active Directory-related change data until it is passed to the Cloud. This change data, such as User Objects and Group Membership modifications, can build-up quickly on larger environments and cause errors such as:
“An attempt to write to the file PersistentDictionary.edb … failed … with system: ‘There is not enough space on the disk.’
The write operation will fail with error”
For more information on the PersistentDictionary.edb cache file and instructions on how the cache can be cleared, rather than moved, please see our community article here.
To avoid ongoing errors related to the disk space on the Connector Server reaching full capacity, the PersistentDictionary.edb cache file can be relocated to a different Drive with a larger capacity by creating a new registry key.
Please follow the steps in the below section to relocate the PersistentDictionary.edb cache file to a different drive.
Environment
Identity Connector
Procedure
Key considerations before proceeding:
1 - Moving the PersistentDictionary.edb cache location will require that the connector cache be rebuilt from scratch. This can cause performance delays while the cache rebuilds, as well as delays of replication AD group memberships to the cloud. Most changes, if they need to be made immediately while the cache is rebuilding, can be done by going into the User Object in the Identity Admin Portal and selecting Actions > Reload Rights. Once the cache rebuilds these limitations will subside.
2 - Time to rebuild the cache is variable, and depends on AD replication speed, network, number of users, and complexity of AD hierarchy (nested groups etc.). This can take as little as a few minutes for small environments and could take up to a few days for large enterprise environments.
To relocate the PersistentDictionary.edb cache file to a different Drive:
- Open the ‘Registry Editor’ Windows Application on the affected Identity Connector Server:
- Create a new ‘String Value’ Registry Key within the below Path:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Idaptive\Cloud
Please note, some folder and Registry key data in the below screenshot have been redacted to increase clarity: - Provide the below values for the new Registry Key:
Key Name: MonitorStoreFolderPath
Key Value: X:\NewCacheFolderName (Where X is the desired Drive letter followed by the file path)
For example, if you would like the PersistentDictionary.edb cache file to be relocated to the E Drive, within the folder Program Files (x86), the below values would be used: - Restart the CyberArk Identity Connector Service on the Identity Connector Server.