Module: Kongkit::Client::Cluster

Included in:
Kongkit::Client
Defined in:
lib/kongkit/client/cluster.rb

Instance Method Summary collapse

Instance Method Details

#cluster_statusKongkit::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.

Parameters:

  • name (String)

    Name of the node

Returns:

  • (Boolean)

    `true` if successfully removed

See Also:


21
22
23
# File 'lib/kongkit/client/cluster.rb', line 21

def remove_node(name)
  delete('/cluster', query: { name: name })
end