cluster

The cfy cluster command is used to manage Cloudify Manager cluster.

Optional flags

These commands support the common CLI flags.

Commands

Status

Usage

cfy cluster status [OPTIONS]

Display the current status of the Cloudify Manager cluster

Example

$ cfy cluster status
HA Cluster nodes
+-------------------------+------------+--------------+------------+---------+--------------+----------------+--------+
|         hostname        | private_ip |  public_ip   |  version   | edition | distribution | distro_release | status |
+-------------------------+------------+--------------+------------+---------+--------------+----------------+--------+
| manager1.openstacklocal | 10.0.0.139 | 10.239.1.160 | 5.0.0      | premium |    centos    |      Core      | Active |
| manager2.openstacklocal | 10.0.0.14  | 10.239.1.130 | 5.0.0      | premium |    centos    |      Core      | Active |
+-------------------------+------------+--------------+------------+---------+--------------+----------------+--------+


HA Cluster brokers
+---------+------+---------------------------+
|   name  | port |          networks         |
+---------+------+---------------------------+
| rabbit1 | 5671 | {"default": "10.0.0.132"} |
| rabbit2 | 5671 | {"default": "10.0.0.133"} |
| rabbit3 | 5671 | {"default": "10.0.0.134"} |
+---------+------+---------------------------+

Update Profile

Usage

cfy cluster update-profile

Fetch the list of cluster nodes and update the current CLI profile.

Use this to update the profile if nodes are added to the cluster from another machine.

Example

$ cfy cluster update-profile
...

Remove Manager Node

Usage

cfy cluster remove [OPTIONS] HOSTNAME

Unregister a node from the cluster.

List Brokers

Usage

cfy cluster brokers list [OPTIONS]

List brokers associated with the cluster.

Example

$ cfy cluster brokers list

Cluster brokers
+---------+------+---------------------------+
|   name  | port |          networks         |
+---------+------+---------------------------+
| rabbit1 | 5671 | {"default": "10.0.0.132"} |
| rabbit2 | 5671 | {"default": "10.0.0.133"} |
| rabbit3 | 5671 | {"default": "10.0.0.134"} |
+---------+------+---------------------------+

Add Broker

Usage

cfy cluster brokers add [OPTIONS] NAME ADDRESS [PORT] [NETWORKS]

Register a broker with the cluster.

Note that this will not create the broker itself. The broker should have been created before running this command.

Example

$ cfy cluster brokers add new_rabbit 10.0.0.22 '{"new_network": "10.0.0.222"}'
...

Get Broker

Usage

cfy cluster brokers get [OPTIONS] NAME

Get full details of a specific broker associated with the cluster.

Remove Broker

Usage

cfy cluster brokers remove [OPTIONS] NAME

Unregister a broker from the cluster.

Note that this will not uninstall the broker itself. The broker should be removed and then disassociated from the broker cluster using cfy_manager after being removed from the cluster.