module Kongkit::Client::Cluster

Public Instance Methods

cluster_status() click to toggle source

Retrieve cluster status

Retrieve the cluster status, returning information for each node in the cluster.

@see getkong.org/docs/0.8.x/admin-api/#retrieve-cluster-status @return [Kongkit::Client::Resource] Cluster status

# File lib/kongkit/client/cluster.rb, line 10
def cluster_status
  get('/cluster')
end
remove_node(name) click to toggle source

Forcibly remove a node

Forcibly remove a node from the cluster.

@see getkong.org/docs/0.8.x/admin-api/#forcibly-remove-a-node @param name [String] Name of the node @return [Boolean] `true` if successfully removed

# File lib/kongkit/client/cluster.rb, line 21
def remove_node(name)
  delete('/cluster', query: { name: name })
end