Overview
Due to issues in IDOL backup, like too many vaults in one cluster and so on, the Daily may become overwhelmed by its indexing queue. Although the situation is quite rare, it will interrupt the indexing and will need some manual actions to be resolved.
NOTE 1: This document is valid for IDOL version 12.x and beyond.
NOTE 2: Using this document requires basic understanding of IDOL components and terminology.
Symptoms - End users
Usually, end-users will notice that edited and new material is not getting indexed.
Symptoms - Daily
Daily's status folder (e.g. in C:\IDOL12\data\PROD1-content-9000\index\status) has tens of thousands, even over million files. The contents of the folder might change, but the issue is on the overall number of files, which still increases.
Daily's index.log might seem to be normal, e.g. times used for different operations are acceptable (DREADD: ~0-5 s and DRESYNC: ~0-15 s).
Conclusion about symptoms
With the symptoms above, Daily is overburdened by its queue and will not be able to process it: new items are coming to the queue faster than old items are getting processed.
There are a couple of possible reasons for the situation. The first is related to IDOL backups. Previously, this was only a problem in M-Files' managed cloud environment, but since IDOL 12.6 it is possible to configure backups to on-premises environments, too. The backup procedure uses IDOL command DREFULSHANDPAUSE to flush all the material from memory to disk before taking the backup. That command must be cancelled by the backup script. If the script fails for any reason, Daily will remain in paused state, i.e., it does not index anything.
Another reason can be the sheer number of vaults connected to the single IDOL cluster. Each vault will generate new material to Daily individually, with each having a 20000 object threshold before starting to index directly into the backend (if there are more than 20K of objects coming from M-Files at once) or flushing material from Daily into the backend. Because vault sizes vary greatly, it is difficult to give any recommendation about the maximum number of vaults per cluster. As a rule of thumb, the recommended maximum would be 10 vaults and absolute maximum would be 15 vaults per one cluster.
Solution
1. The first thing to do is to shut down all MFindexingmanager services on the M-Files server(s). This way they will not continue adding new items to the queue which is already too long on IDOL side.
2. Next, you need to figure out whether the issue is caused by paused indexing due to DREFULSHANDPAUSE command. Run following MFIDOLConsole command on the frontend, against Daily engine:
MFIDOLConsole cfg=config.txt a=indexergetstatus IndexStatus=-16 maxresults=10 > igs.xml
If pause state is not active, the resulting .xml will look like this:
<?xml version="1.0" encoding="UTF-8"?>
<autnresponse xmlns:autn="http://schemas.autonomy.com/aci/">
<action>INDEXERGETSTATUS</action>
<response>SUCCESS</response>
<responsedata>
<timeformat>YYYY/MM/DD HH:NN:SS</timeformat>
<state>Inactive (no jobs)</state>
</responsedata>
</autnresponse>
If Daily is paused, the responsedata section will look like this:
<responsedata>
<timeformat>YYYY/MM/DD HH:NN:SS</timeformat>
<state>Paused (DREFLUSHANDPAUSE)</state>
<item>
<id>1634</id>
…
If Daily is in paused state, get the id of the item from the xml shown above. It might also be a good idea to also check the backend by running the command against DIH.
3. To restart indexing, i.e. resuming the pause state, run the following console command against Daily (and DIH if needed):
MFIDOLConsole cfg=config.txt a=indexergetstatus Index=[id of the item] IndexAction=restart > igs.xml
Instructions for using MFIDOLConsole (previously MFAutonomyConsole):
https://m-files.force.com/s/article/IDOL-MFAutonomyConsole
4. Then, you must decide what to do with the queue. Depending on the length of the queue, there are different methods to resolve it. If the status folder includes a few thousand files or less, we can let Daily process the queue on its own.
If there are tens of thousands of files in the queue, we must clear the queue manually.
- Stop Daily engine. Make sure its content.exe process goes down.
- Remove following contents from Daily's installation folder e.g. C:\IDOL12\data\PROD1-content-9000\index:
- Contents of the status folder.
- Files indexqueue_info.db and indexqueue_info.db from folder indexqueue.
- Start Daily engine and check from its application.log that it goes up.
5. Start all MFindexingmanager services on the M-Files server(s).
