Documentation

InfluxDB Anti-Entropy API

Note: The Anti-Entropy API is available from the meta nodes and is only available when the Anti-Entropy service is enabled in the data node configuration settings. For information on the configuration settings, see Anti-Entropy settings.

Use the Anti-Entropy service in InfluxDB Enterprise to monitor and repair entropy in data nodes and their shards. To access the Anti-Entropy API and work with this service, use influxd-ctl entropy (also available on meta nodes).

The base URL is:

http://localhost:8086/shard-repair
  • Copy
  • Fill window

GET /status

Description

Lists shards that are in an inconsistent state and in need of repair.

Parameters

NameLocated inDescriptionRequiredType
localqueryLimits status check to local shards on the data node handling this requestNoboolean

Responses

Headers

Header nameValue
Acceptapplication/json

Status codes

CodeDescriptionType
200Successful operationobject

Examples

cURL request

curl -X GET "http://localhost:8086/shard-repair/status?local=true" -H "accept: application/json"
  • Copy
  • Fill window

Request URL

http://localhost:8086/shard-repair/status?local=true
  • Copy
  • Fill window

Responses

Example of server response value:

{
  "shards": [
    {
      "id": "1",
      "database": "ae",
      "retention_policy": "autogen",
      "start_time": "-259200000000000",
      "end_time": "345600000000000",
      "expires": "0",
      "status": "diff"
    },
    {
      "id": "3",
      "database": "ae",
      "retention_policy": "autogen",
      "start_time": "62640000000000000",
      "end_time": "63244800000000000",
      "expires": "0",
      "status": "diff"
    }
  ],
  "queued_shards": [
    "3",
    "5",
    "9"
  ],
  "processing_shards": [
    "3",
    "9"
  ]
}
  • Copy
  • Fill window

POST /repair

Description

Queues the specified shard for repair of the inconsistent state.

Parameters

NameLocated inDescriptionRequiredType
idqueryID of shard to queue for repairYesinteger

Responses

Headers

Header nameValue
Acceptapplication/json

Status codes

CodeDescription
204Successful operation
400Bad request
500Internal server error

Examples

cURL request

curl -X POST "http://localhost:8086/shard-repair/repair?id=1" -H "accept: application/json"
  • Copy
  • Fill window

Request URL

http://localhost:8086/shard-repair/repair?id=1
  • Copy
  • Fill window

POST /cancel-repair

Description

Removes the specified shard from the repair queue on nodes.

Parameters

NameLocated inDescriptionRequiredType
idqueryID of shard to remove from repair queueYesinteger
localqueryOnly remove shard from repair queue on node receiving the requestNoboolean

Responses

Headers

Header nameValue
Acceptapplication/json

Status codes

CodeDescription
204Successful operation
400Bad request
500Internal server error

Examples

cURL request

curl -X POST "http://localhost:8086/shard-repair/cancel-repair?id=1&local=false" -H "accept: application/json"
  • Copy
  • Fill window

Request URL

http://localhost:8086/shard-repair/cancel-repair?id=1&local=false
  • Copy
  • Fill window

Models

ShardStatus

NameTypeRequired
idstringNo
databasestringNo
retention_policystringNo
start_timestringNo
end_timestringNo
expiresstringNo
statusstringNo

Examples

{
  "shards": [
    {
      "id": "1",
      "database": "ae",
      "retention_policy": "autogen",
      "start_time": "-259200000000000",
      "end_time": "345600000000000",
      "expires": "0",
      "status": "diff"
    },
    {
      "id": "3",
      "database": "ae",
      "retention_policy": "autogen",
      "start_time": "62640000000000000",
      "end_time": "63244800000000000",
      "expires": "0",
      "status": "diff"
    }
  ],
  "queued_shards": [
    "3",
    "5",
    "9"
  ],
  "processing_shards": [
    "3",
    "9"
  ]
}
  • Copy
  • Fill window

Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more

Now Generally Available

InfluxDB 3 Core and Enterprise

Start fast. Scale faster.

Get the Updates

InfluxDB 3 Core is an open source, high-speed, recent-data engine that collects and processes data in real-time and persists it to local disk or object storage. InfluxDB 3 Enterprise builds on Core’s foundation, adding high availability, read replicas, enhanced security, and data compaction for faster queries and optimized storage. A free tier of InfluxDB 3 Enterprise is available for non-commercial at-home or hobbyist use.

For more information, check out: