Info: This feature requires Assets Server 6.107 or higher.
After starting up an Assets Server cluster, a reindex might be triggered. This happens when a new index revision is available and an old revision is still present and not empty.
This is indicated in the log file as follows:
WARN com.ds.util.elasticsearch.IndexManager - Old non-empty index found: asset-r23. Starting re-index process
In scenarios in which such a reindexing during startup is not required, this process can be disabled.
Example: With large elasticsearch clusters, the reindex process can take a very long time to complete. If needed, the reindex process can be prevented from being performed during startup, and instead triggered manually later at a more convenient time.
When this is done, the log file will state the following:
WARN com.ds.util.elasticsearch.IndexManager - Old non-empty index found: asset-r23. Requires to trigger re-index manually.
How to disable automatic reindexing during startup is explained in this article.
Note: When automatic reindexing is disabled, a manual reindex needs to be triggered for each of the reported indices. Not performing a manual reindex might lead to an incorrect functioning Assets installation.
Configuration
Disabling the automatic reindexing during startup is done by setting the disableAutomaticReindex
setting to true
.
Note: By default, this setting is set to false, meaning that an automatic reindexing is performed during startup.
Step 1. Access the Cluster properties page in the Management Console of Assets Server.
Step 2. Search for the disableAutomaticReindex setting and set it to true.
Step 3. Click Save.
Step 4. Restart Assets Server.
Performing a manual reindex
When the log file indicates that a manual reindexing is required, update the index as described in Updating the file index of Assets Server.
Comment
Do you have corrections or additional information about this article? Leave a comment! Do you have a question about what is described in this article? Please contact Support.
0 comments
Please sign in to leave a comment.