Support Article
Search Index file directory changes on restart
Summary
Search index file directory location sets to default location after application restart.
Error Messages
Not Applicable
Steps to Reproduce
- Set the search index to a custom value.
- Restart the application.
- The search index is reset to the default location.
Root Cause
A defect or configuration issue in the operating environment
Intentional clean-up of the runtime node configuration in the database In Pega 7.2.2 and later releases, any nodes that are expected to permanently host indexes must have the index directory specified through a JVM argument.
Resolution
Add the following JVM setting:
- For permanent index host nodes: -Dindex.directory=/your_index_directory
- For nodes that are never expected to host indexes, add the JVM argument, but do not specify any directory (leave the value empty).
Make sure that the backward-compatibility DSS setting indexing/explicitindexdir is not specified.
After making the changes, it is a best practice to restart PRPC nodes to include the changes.
You can avoid the restart by specifying the same index directory path on the Search landing page. If you do this, verify that both settings (in the JVM argument and on the Search landing page) are identical.
Published October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.