Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 2.0
Community Wiki and Resources
Download Couchbase Server 2.0
Couchbase Developer Guide 2.0
Client Libraries
Couchbase Server Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
8.7 Managing Clusters
Chapter Sections
Chapters

8.7.12. Setting Maximum Parallel Indexers

You can set the number of parallel indexers that will be used on each node when view indexes are updated. To get the current setting of the number of parallel indexers, use a GET request.

MethodGET /settings/maxParallelIndexers
Request DataNone
Response DataJSON of the global and node-specific parallel indexer configuration
Authentication Requiredno

For example:

HTTP Request
GET http://127.0.0.1:8091/settings/maxParallelIndexers

This returns a JSON structure of the current settings, providing both the globally configured value, and individual node configuration:

JSON
{
   "globalValue" : 4,
   "nodes" : {
      "ns_1@127.0.0.1" : 4
   }
}

To set the value, POST to the URL specifying a URL-encoded value to the globalValue argument.

MethodPOST /settings/maxParallelIndexers
Request DataNone
Response DataJSON of the global and node-specific parallel indexer configuration
Authentication Requiredyes
Payload Arguments 
globalValueRequired parameter. Numeric. Sets the global number of parallel indexers. Minimum of 1, maximum 1024.
Return Codes 
400globalValue not specified or invalid