Module: Kongkit::Client::Cluster
- Included in:
- Kongkit::Client
- Defined in:
- lib/kongkit/client/cluster.rb
Instance Method Summary collapse
-
#cluster_status ⇒ Kongkit::Client::Resource
Retrieve cluster status.
-
#remove_node(name) ⇒ Boolean
Forcibly remove a node.
Instance Method Details
#cluster_status ⇒ Kongkit::Client::Resource
Retrieve cluster status
Retrieve the cluster status, returning information for each node in the cluster.
10 11 12 |
# File 'lib/kongkit/client/cluster.rb', line 10 def cluster_status get('/cluster') end |
#remove_node(name) ⇒ Boolean
Forcibly remove a node
Forcibly remove a node from the cluster.
21 22 23 |
# File 'lib/kongkit/client/cluster.rb', line 21 def remove_node(name) delete('/cluster', query: { name: name }) end |