When to perform Re-Indexing in AEM

Statement : Only cases for Re-indexing

Solution : 

• New or changed index definition
• Bug: Counter index out of sync 
• Bug: Lucene binary is missing or corrupt 
• Bug: Very large transaction + many child nodes 
• Bug: Partial migration using sidegrade


Reference : http://jackrabbit.apache.org/oak/docs/query/indexing.html#reindexing

How to Troubleshoot AEM Replication - Adobe official document

How to perform workflow maintenance in Ain AEM

Statement: Workflow maintenance through JMX

Solution :



  • How to purge active workflows

  • List of maintenance task to be performed on workflows:

Operations
Return Type
Name
int
countStaleWorkflows(java.lang.String model [optional])
returns the count of stale workflows in the system
javax.management.openmbean.TabularData
terminateFailedInstances(boolean restart the instance, boolean dry run, java.lang.String model [optional])
Terminate Failed Instances, with optional restart of instance
javax.management.openmbean.TabularData
retryFailedWorkItems(boolean dry run, java.lang.String model [optional])
Retry Failed WorkItems
javax.management.openmbean.TabularData
listCompletedWorkflowsPerModel()
count the number of completed workflows
javax.management.openmbean.TabularData
returnSystemJobInfo()
retrieve overall workflow and system job queue information
javax.management.openmbean.TabularData
restartStaleWorkflows(java.lang.String model [optional], java.lang.Boolean dry run)
restarts stale workflows in the system
javax.management.openmbean.TabularData
returnWorkflowQueueInfo()
retrieve workflow queue information
javax.management.openmbean.TabularData
returnWorkflowJobTopicInfo()
retrieve workflow job topic information
javax.management.openmbean.TabularData
listRunningWorkflowsPerModel()
count the number of running workflows
int
countCompletedWorkflows(java.lang.String model [optional])
count the number of completed workflows
int
returnFailedWorkflowCount(java.lang.String model [optional])
count number of failed workflows
int
countRunningWorkflows(java.lang.String model [optional])
count the number of running workflows
javax.management.openmbean.TabularData
purgeCompleted(java.lang.String model [optional], java.lang.Integer number of days since workflow has been completed, java.lang.Boolean dry run)
Purge Completed Workflows
javax.management.openmbean.TabularData
purgeActive(java.lang.String model [optional], java.lang.Integer number of days since workflow started, java.lang.Boolean dry run)
Purge Active Workflows
javax.management.openmbean.TabularData
fetchModelList()
get workflow model list
javax.management.openmbean.TabularData
returnFailedWorkflowCountPerModel()
count number of failed workflows per model