Run Crawl Jobs

Your Cloud Connector for 3DSpace On-premises Data installation comes with a command-line interface named er-crawler-manager-cli, located in $CLOUD_CONNECTOR_INSTALL_DIR/$ARCH/code/command/er-crawler-manager-cli.sh|bat.

This interface allows you to manage the status of your crawl and to start maintenance operations.

This task shows you how to:

Run a Custom and Unmanaged Crawl Job

You can use the er-crawler-manager-cli script to run a custom crawl job. This job is unmanaged, which means that it runs in parallel of the crawl operations managed and already executed by the Crawler Manager. Examples are generated during the installation in $CLOUD_CONNECTOR_INSTALL_DIR/$ARCH/er-crawler/examples/crawl/.

For example, run the following command to recrawl all access lists:
  • On Linux:
    er-crawler-manager-cli.sh crawl --strategy $CLOUD_CONNECTOR_INSTALL_DIR/$ARCH/er-crawler/examples/crawl/acl_maintenance_crawl_strategy.json
  • On Windows:
    er-crawler-manager-cli.bat crawl --strategy %CLOUD_CONNECTOR_INSTALL_DIR%\$ARCH\er-crawler\examples\crawl\acl_maintenance_crawl_strategy.json

Start a Full Recrawl

You can use a command to reset the crawl state and start a full recrawl. It does not clear any existing data, but reapplies the Data Model (for example, it can add missing classes), and recrawls and reindexes all data.

Run the following command:
  • On Linux: er-crawler-manager-cli.sh recrawl
  • On Windows: er-crawler-manager-cli.bat recrawl

Advanced Tuning - Configuring the Crawler

The first start of the er-crawler-service-webapp creates the crawler configuration in the $CLOUD_CONNECTOR_INSTALL_DIR/$ARCH/er-crawler/config/er-crawler-service_config.json file.

Context: This .json file exposes the crawler internal parameters. The following parameters are the most important:

Parameter Description
nbDataLoaderThreads (number) Specifies the number of threads used to load data from the ENOVIA DB.
disabledSelectables (array of strings) Allows you to disable costly selectables globally (for all types). For example, history.
nbCrawlEndPointThreads (number) Specifies the number of threads used to push data during the initial crawl or the maintenance crawl.

Configuration example:

{
  "computeTenantStats" : true,
  "enable" : true,
  "enableOwnershipVectorsUpdaterService" : true,
  "incrementalCrawlIntervalInMilli" : 5000,
  "maxCompletedCrawlJobStatuses" : 1024,
  "maxEventsPerTransaction" : 512,
  "maxQueuedCrawlJobs" : 1024,
  "nbDataLoaderThreads" : 4,
  "nbCrawlEndPointThreads": 1,
  "nbParallelCrawlJobs" : 2,
  "disabledSelectables" : [ "history", "history.description", "history.event", "history.state", "history.time", "history.user" ]
}