April 20, 2020
Estimated Post Reading Time ~

Index Statistics in AEM

Index Statistics in AEM is tooling can now be used by Support and the System Administrator to determine quickly which indexes are corrupt and then reindex them.

Use Case 2 - Index Statistics
For diagnosing some of the cases around query performance Adobe often required existing index definition, index related statistics from the customer setup. So far this information was scattered across multiple resources. To make troubleshooting easier, Adobe has created tooling that will:
  • Dump all index definition present on the system in a signle JSON file;
  • Dump important statistics from existing indexes;
  • Dump index contents for offline analysis;
  • Will be usable even if AEM is not accessible
The above operations can now be done via the following operation index commands:
  • --index-info - Collects and dumps various statistics related to the indexes
  • --index-definitions - Collects and dumps index definitions
  • --index-dump - Dumps index content
See below an example of how the commands work in practice:

java -jar oak-run*.jar index --fds-path=/path/to/datastore /path/to/segmentstore/ --index-info --index-definitions --index-dump
The reports would be generated in indexing-result/index-info.txt and indexing-result/index-definitions.json

In addition same details are provided via the Web Console and would be part of the configuration dump zip. They can be accessed at the following location:
http://localhost:4502/system/console/status-oak-index-defn

Benefits
This tooling enables the gathering of all required details related to indexing or query issues quickly and reduce the time spent in extracting this information.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.