Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning
titlePage in development

This page is in development and as such, its contents may be incorrect

Warning
titleInternal API

This is an internal API used for the communication between nodes and is not expected to be used by others.

The manager node API provides functionality that allows a manager and worker nodes to communicate.

toc
Easy Heading Free
navigationTitleOn this Page
navigationExpandOptionexpand-all-by-default

: 200, 404

Section

Release one or more workers

Reset the status of any in memory batches that were sent to a failed worker but had not been acknowledged, so the they may be sent to another worker, this endpoint need the . This endpoint needs at least the ADMINISTRATOR or MANAGER role to be executed.

Panel
borderColorblack
bgColor#fafafb

PUT /aspire/_api/manager/release/worker/:id

PUT /aspire/_api/manager/release/worker

Path and Request Body Parameters

NameTypeRequiredDescription
idstringRequiredThe identifier(s) of the failed worker node(s) whose batches must be reset

Examples

Release a single worker

Code Block
languagejs
themeRDark
PUT /aspire/_api/manager/release/worker/AAABcID5GBc=

PUT /aspire/_api/manager/release/worker
{
  "id": ["AAABcID5GBc="]
}

Release more workers

Code Block
languagejs
themeRDark
PUT /aspire/_api/manager/release/worker
{
  "id": ["AAABcID5GBc=", "AAABcIueWUc="]
}


Response

Code Block
languagejs
themeRDark
{
  "message": "optional response message"
}

Status

Response codeDescription
200Success
404The given worker id was not found




: 200, 404

Section

Release one or more seeds

Used by the master main manager when pausing or stopping to release all of the items for a seed from unsent batches. The manager will then forward the same to the workers, this endpoint need the . This endpoint needs at least the ADMINISTRATOR or MANAGER role to be executed.

Panel
borderColorblack
bgColor#fafafb

PUT /aspire/_api/manager/release/seed/:id

PUT /aspire/_api/manager/release/seed

Path and Request Body Parameters

NameTypeRequiredDescription
idstringRequiredThe identifier(s) of the seed to be released

Examples

Release a single seed

Code Block
languagejs
{
  "id": "AAABcID5GBc="
}

Release multiple seeds

themeRDark
PUT /aspire/_api/manager/release/seed/AAABcID5GBc=
 
PUT /aspire/_api/manager/release/seed
Code Block
languagejs
[{
  "id": "AAABcID5GBc="
},
{
  "id": ["AAABcIueWUcAAABcID5GBc="]
}]

Release multiple seeds (alternative form)

Code Block
languagejs
themeRDark
PUT /aspire/_api/manager/release/seed
{
  "id": ["AAABcID5GBc=", "AAABcIueWUc="]
}

Response

Code Block
languagejs
themeRDark
{
  "message": "optional response message"
}

Status

Response codeDescription
200Success
404The given seed id was not found




: 200, 406

Section

Fetch one or more batches

Used by the worker to fetch a batch from the manager, this endpoint need the . This endpoint needs at least the ADMINISTRATOR or WORKER role to be executed.

Panel
borderColorblack
bgColor#fafafb

GET /aspire/_api/manager/batch

Path and Request Body Parameters

NameTypeRequiredDescription
workerstringRequiredThe id of the worker asking for the batch
typestringRequired

The type of batch required

  • scan
  • process
tagsstringOptionalThe tags this machine has
batchesitemsnumberOptionalThe number of batches items to fetch (default 1)

Response

Code Block
languagejs
themeRDark
{
  "batch": {
    "id": 0,
    "type": "process",
    "connector": "myConnectorId",
    "entry": [{
      "_id": "item_id_1",
      "url": "item_url_1",
      "type": "com.accenture.aspire.connector.manager.ManagerComponent$FSItemType@filesystem",
      "status": "A",
      "action": "add",
      "timestamp": 1234567890,
      "shouldScan": true,
      "shouldProcess": true,
      "crawlRetries": 0,
      "isCrawlRootItem": false,
      "inCrawlRetries": 0
    }, {
      "_id": "item_id_2",
      "url": "item_url_2",
      "type": "com.accenture.aspire.connector.manager.ManagerComponent$FSItemType@folder",
      "status": "A",
      "action": "update",
      "timestamp": 1234567890,
      "shouldScan": true,
      "shouldProcess": true,
      "crawlRetries": 0,
      "isCrawlRootItem": false,
      "inCrawlRetries": 0
    }]
  },
  "message": "optional response message"
}

Status

Response codeDescription
200Success
406Not acceptable - there was an issue validating the input




Section

Acknowledge one or more batches

Used by the worker node to acknowledge the worker has taken responsibility for the batch(es), this endpoint need the . This endpoint needs at least the ADMINISTRATOR or WORKER role to be executed.

Panel
borderColorblack
bgColor#fafafb

PUT /aspire/_api/manager/batch/ack/:id

PUT /aspire/_api/manager/batch/ack


Query String Parameters

NameTypeRequiredDescription
typestringRequired

The type of the batch

  • scan
  • process


Path and Request Body Parameters

NameTypeRequiredDescription
idstringRequiredThe identifier(s) of the batch(es) to be acknowledged

Examples

Acknowledge a single batch

Code Block
languagejs
themeRDark
PUT /aspire/_api/manager/batch/ack/AAABcID5GBc=?type=scan

PUT /aspire/_api/manager/batch/ack?type=scan
{
  "id": ["AAABcID5GBc="]
}

Acknowledge multiple batches

Code Block
languagejs
themeRDark
PUT /aspire/_api/manager/batch/ack?type=scan
{
  "id": ["AAABcID5GBc=", "AAABcIueWUc="]
}

Response

Code Block
languagejs
themeRDark
{
  "message": "optional response message"
}

Status: 200, 404

Section

Re-balance seed allocation

Allows an administrator to manually re-balance the seed to manage allocation for active crawls. This endpoint needs the ADMINISTRATOR role to be executed

Panel
borderColorblack
bgColor#fafafb

PUT /aspire/_api/main/rebalance


Response

Code Block
Description
200Success
languagejs
themeRDark
{
  "message": "optional response message"
}

Status: 200

Section

Crawl failed action

Allows handling the crawl failed state for the seed. This endpoint needs the ADMINISTRATOR or WORKER role to be executed

Panel
borderColorblack
bgColor#fafafb

PUT /aspire/_api/manager/crawlFailed/:id


Response

Code Block
languagejs
themeRDark
{
  "message": "optional response message"
}

Status: 200, 404

The given batch id was not found

Status: 200, 404


Section

Throttle notification (Aspire 5.3)

Allows handling the throttle event happening in the connector for the seed. This endpoint needs the ADMINISTRATOR or WORKER role to be executed

Panel
borderColorblack
bgColor#fafafb

PUT /aspire/_api/manager/throttle/:seedId/:pauseSeedUntil


Path and Request Body Parameters

NameTypeRequiredDescription
seedIdstringRequiredThe identifier of the throttle seed
pauseSeedUntilnumberRequiredThe time in milliseconds until which the seed must be paused


Response

Code Block
languagejs
themeRDark
{
  "message": "optional response message"
}
404