Skip to content

C.4. Indexer configuration

Jimmy Bourque edited this page Nov 30, 2026 · 1 revision

Français

Configuration Documentation

All supported settings for the Indexer project JbtiEvolution.OraklLearn.Indexer are in the appsettings.json file.

ApplicationInsights

Key Type Description Default
ApplicationInsights.ConnectionString string A string containing all the information required to initialize Azure Application Insights monitoring. <ConnectionString>

Example

"ApplicationInsights": {
  "ConnectionString": "<APPLICATION_INSIGHTS_CONNECTION_STRING>"
}

Logging

LogLevel

Key Type Description Default
Logging.LogLevel.Default string .Net logging Information
Logging.LogLevel.Microsoft string .Net logging Warning
Logging.LogLevel.Azure string Azure Resources Warning

Example

"Logging": {
  "LogLevel": {
    "Default": "Information",
    "Microsoft": "Warning",
    "Azure": "Warning"
  }
}

Storage

All contents, traces and other data are stored in a dedicated Azure Blob Storage container. This section contains the configuration required to connect to the storage.

Key Type Description Default
Storage.AccountName string The storage account name.
Storage.AccountKey string The access key retrieved from the Azure Storage Account resource.
Storage.CatalogContainer string The blob container name for storing books and exams, including multimedia content. Note that multimedia content files are stored in the root folder, while index files are stored in the /indexes path.
Storage.ProfileContainer string The blob container name for storing user profiles.
Storage.IndexerContainer string The name of the blob container where integrity task logs and catalog files deleted by the data integrity task are stored.

It is recommended to configure a blob lifecycle policy for deleted files. These files are retained in case the data integrity task malfunctions, including files in the recycle bin. A 30-day retention period is generally appropriate; otherwise, choose a duration that best suits your needs.

Be careful to configure the policy for the correct paths: /archives is used for deleted files, while /reports contains the logs generated after a data integrity task has completed.

Example

"Storage": {
  "AccountName": "orakllearn",
  "AccountKey": "<STORAGE_ACCOUNT_KEY>",
  "CatalogContainer": "catalog",
  "ProfileContainer": "profile",
  "IndexerContainer": "indexer"
}

ServiceBus

The queue defined in Azure Service Bus used to receive messages for managing the global catalog.

Key Type Description Default
ServiceBus.
DataIntegrityAllowedMinutes
int Maximum time, in minutes, that a message may wait for the data-integrity mutex. After this delay, the message will be processed later. 5
ServiceBus.QueueName string The name of the queue that the index listens to for event-driven messages.

The indexer service receives messages and can send additional messages when needed to maintain data integrity. For example, when a book is unpublished, access must be revoked for all profiles linked to that book.
indexing
ServiceBus.ConnectionString string Connection string having listen and send rights.

Example

"ServiceBus": {
  "DataIntegrityAllowedMinutes": 5,
  "ConnectionString": "<SERVICEBUS_CONNECTION_STRING>",
  "QueueName": "indexing"
}

Indexer

Settings related to the indexer mechanism.

Key Type Description Default
Indexer.BookIndexBlobName string The name of index file for books. indexes/book-index.json
Indexer.ExamIndexBlobName string The name of index file for exams. indexes/exam-index.json

Example

"Indexer": {
  "BookIndexBlobName": "indexes/book-index.json",
  "ExamIndexBlobName": "indexes/exam-index.json"
}

Mutex

Please refer to the data-integrity documentation for details on the settings.

Integrity

The data integrity task uses a schedule to determine when an integrity check runs. Before the check starts, the mutex described above must be in the locked state so that all active instances are aware of the lock and can apply the required restrictions.

Task

Scheduling settings for the data integrity background task.

Key Type Description Default
Integrity.Task.Schedules array The list of schedules used to run the data integrity task automatically. Each schedule name must be unique. Duplicate names are rejected during application startup.

Task.Schedules

Each item in Integrity.Task.Schedules defines one execution schedule.

Key Type Description Default
Integrity.Task.Schedules[].Name string A unique schedule name used to identify the schedule. Comparisons are case-insensitive.
Integrity.Task.Schedules[].Enabled bool Indicates whether the schedule is active. Disabled schedules are ignored. true
Integrity.Task.Schedules[].Kind string The schedule type. Supported values are Daily, Weekly, and Monthly.
Integrity.Task.Schedules[].Time string The local execution time in HH:mm:ss format. 00:00:00
Integrity.Task.Schedules[].TimeZone string The time zone identifier used to interpret Time. Examples: UTC, America/Montreal, Europe/Paris. UTC
Integrity.Task.Schedules[].DaysOfWeek string[] The days of the week on which the task runs when Kind is set to Weekly. Supported values are Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
Integrity.Task.Schedules[].DayOfMonth int The day of the month on which the task runs when Kind is set to Monthly. Supported values are from 1 to 31.
Integrity.Task.Schedules[].UseLastDayIfMonthShorter bool When Kind is set to Monthly, indicates whether the task should run on the last day of the month if DayOfMonth does not exist in that month. true

Task Scheduling Rules

  • Daily schedules use Time and TimeZone.
  • Weekly schedules use Time, TimeZone, and DaysOfWeek.
  • Monthly schedules use Time, TimeZone, DayOfMonth, and optionally UseLastDayIfMonthShorter.
  • Schedule names must be unique across all entries in Integrity.Task.Schedules.

Example

"Integrity": {
  "CheckMinuteInterval": 1,
  "Task": {
    "Schedules": [
      {
        "Name": "DataIntegrityDaily",
        "Enabled": true,
        "Kind": "Daily",
        "Time": "17:58:00",
        "TimeZone": "America/Montreal"
      },
      {
        "Name": "DataIntegrityMonthlyFirstDay",
        "Enabled": true,
        "Kind": "Monthly",
        "Time": "04:00:00",
        "TimeZone": "America/Montreal",
        "DayOfMonth": 1,
        "UseLastDayIfMonthShorter": true
      },
      {
        "Name": "disabled",
        "Enabled": false,
        "Kind": "Monthly",
        "Time": "04:00:00",
        "TimeZone": "America/Montreal",
        "DayOfMonth": 1,
        "UseLastDayIfMonthShorter": true
      },
      {
        "Name": "DataIntegrityWeekly",
        "Enabled": true,
        "Kind": "Weekly",
        "Time": "03:30:00",
        "TimeZone": "America/Montreal",
        "DaysOfWeek": [ "Monday", "Wednesday", "Friday" ]
      }
    ]
  }
}

Clone this wiki locally