Class: Qdrant::Clusters
Constant Summary collapse
- PATH =
"cluster"
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#info ⇒ Object
Get information about the current state and composition of the cluster.
-
#recover ⇒ Object
Tries to recover current peer Raft state.
-
#remove_peer(peer_id:, force: nil) ⇒ Object
Remove peer from the cluster.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Qdrant::Base
Instance Method Details
#info ⇒ Object
Get information about the current state and composition of the cluster
8 9 10 11 |
# File 'lib/qdrant/clusters.rb', line 8 def info response = client.connection.get(PATH) response.body end |
#recover ⇒ Object
Tries to recover current peer Raft state.
14 15 16 17 |
# File 'lib/qdrant/clusters.rb', line 14 def recover response = client.connection.post("#{PATH}/recover") response.body end |
#remove_peer(peer_id:, force: nil) ⇒ Object
Remove peer from the cluster
20 21 22 23 24 25 26 27 28 |
# File 'lib/qdrant/clusters.rb', line 20 def remove_peer( peer_id:, force: nil ) response = client.connection.post("#{PATH}/recover") do |req| req.params["force"] = force if force end response.body end |