Files
qdrant/openapi/openapi-cluster.ytt.yaml
Roman Titov cf04b1a92b Add /cluster/recover API endpoint (#1451)
- Add required internal `raft::raw_node::RawNode::report_snapshot` calls
- Add methods to propagate `raft::raw_node::RawNode::request_snapshot` call to the consensus thread
- Add `/cluster/recover` API endpooint
- Add `test_collection_recovery.py` integration test (disabled on CI; documents current, incorrect behavior)
2023-02-15 04:19:11 +10:00

41 lines
1.2 KiB
YAML

#@ load("openapi.lib.yml", "response", "reference", "type", "array")
paths:
/cluster:
get:
tags:
- cluster
summary: Get cluster status info
description: Get information about the current state and composition of the cluster
operationId: cluster_status
responses: #@ response(reference("ClusterStatus"))
/cluster/recover:
post:
tags:
- cluster
summary: Tries to recover current peer Raft state.
operationId: recover_current_peer
responses: #@ response(type("boolean"))
/cluster/peer/{peer_id}:
delete:
tags:
- cluster
summary: Remove peer from the cluster
description: Tries to remove peer from the cluster. Will return an error if peer has shards on it.
operationId: remove_peer
parameters:
- name: peer_id
in: path
description: Id of the peer
required: true
schema:
type: integer
- name: force
in: query
description: If true - removes peer even if it has shards/replicas on it.
schema:
type: boolean
default: false
responses: #@ response(type("boolean"))