Cloudify Cluster Manager

Cloudify Cluster Manager

The purpose of the Cloudify Cluster Manager package is to automate the procedure of installing a Cloudify cluster on existing VMs. The following article will guide you through the different steps of easily installing a Cloudify cluster on either three or nine VMs.

Installation

Choosing a cluster configuration

Before using the Cloudify Cluster Manager package you must prepare a set of VMs for your cluster. The Cloudify Cluster Manager package supports all cloud providers and the following configurations:

Please follow the prerequisites and sizing guidelines on Cloudify documentation and generate the required number of VMs according to the mentioned spec. You should also prepare a load balancer to distribute the load over the managers.


NOTE

  1. The Cloudify Cluster Manager package is currently supported over CentOS or RHEL OS.
  2. A load-balancer is required for load distribution over the managers. The setup will expect a load balancer address. The Cloudify Cluster Manager package does not install the load balancer.

Installing the Cloudify Cluster Manager package

You can run the Cloudify Cluster Manager package from one of the cluster’s VMs, or from a different host in the cluster network. You can install the package either by using an RPM or by using pip install:

Installing using an RPM

Run the following command:

sudo yum install -y http://repository.cloudifysource.org/cloudify/cloudify-cluster-manager/1.0.2/ga-release/cloudify-cluster-manager-1.0.2-ga.el7.x86_64.rpm

# Installing haveged to avoid hanging executions
sudo yum install -y epel-release
sudo yum install -y haveged 
sudo systemctl start haveged

Installing using pip install

pip install cloudify-cluster-manager

# Installing haveged to avoid hanging executions
sudo yum install -y epel-release
sudo yum install -y haveged 
sudo systemctl start haveged

 

Using the Cloudify Cluster Manager package

Once the VMs are ready, using the Cloudify Cluster Manager package to build the cluster consists of three steps:

  1. Generating a cluster configuration file template based on the cluster topology you wish to deploy.
  2. Filling in the generated file with the relevant information.
  3. Running the cluster installation based on the completed configuration file.

Generating a configuration file

Generating the configuration file is done using the command:

cfy_cluster_manager generate-config [OPTIONS]

Options

NOTE: --three-nodes or --nine-nodes must be specified, and they cannot be specified together.

Filling in the configuration file

General Note

Fill in the information according to the comments in the file itself. NOTE! Do not delete anything from the file.

Load-balancer

As mentioned before, a load-balancer is not installed as part of the cluster installation. The load_balancer_ip value is used in the different config.yaml files for the instances’ connection.

Certificates

config.yaml files

Credentials

Installing a Cloudify cluster

Now that the configuration file is completed, we can move on to the cluster installation using the following command:

cfy_cluster_manager install [OPTIONS]

Options

Removing a Cloudify cluster

The created Cloudify cluster can be removed using the following command:

cfy_cluster_manager remove [OPTIONS]

Options

 

Fault tolerance mechanisms

The Cloudify Cluster Manager package has a few mechanisms to handle errors: