Managing Index Parameters

Managing Index Parameters

The Index service parameters are retrieved and changed with the GET and POST HTTP methods and the /settings/indexes URI.

Description

The Index service parameters include:

indexerThreads
Number of dedicated threads the indexer uses. On multi-core machines increasing this number increases the amount of CPU available to the indexer. Default: 4
logLevel

The log level for the index service. Valid options are debug, silent, fatal, error, warn, info, verbose, timing and trace. Default: info.

maxRollbackPoints
The maximum number of committed rollback points. Default: 5
memorySnapshotInterval
Specifies the frequency of in-memory snapshots. This determines the earliest possibility of a scan seeing a given KV mutation. Specified in milliseconds (ms). Default: 200
stableSnapshotInterval
Specifies the frequency of persisted snapshots for recovery. Specified in seconds (sec). Default: 30000
storageMode
Specifies the index storage mode to use. Valid options are forestdb and memory_optimized. Default: forestdb

HTTP method and URI

GET /settings/indexes
POST /settings/indexes      

Syntax

Curl request syntax:

curl -X GET http://[localhost]:[port]/settings/indexes -u [admin-name]:[password]

Example

Curl request example:

curl -X GET http://10.3.5.205:8091/settings/indexes -u Administrator:password

Response

Example response:

{
    "indexerThreads": 0,
    "logLevel": "info",
    "maxRollbackPoints": 5,
    "memorySnapshotInterval": 200,
    "stableSnapshotInterval": 5000,
    "storageMode": "forestdb"
}