Book Image

Learning Karaf Cellar

By : Jean Baptiste Onofre, Jean-Baptiste Onofré
Book Image

Learning Karaf Cellar

By: Jean Baptiste Onofre, Jean-Baptiste Onofré

Overview of this book

Table of Contents (16 chapters)

Targeting provisioning


Once you have created your cluster groups and assigned nodes to the different cluster groups, you can target the deployment of the resources on a given cluster group. For this, Cellar provides the cluster-aware commands of the regular Karaf commands.

For instance, Karaf provides a features:install <feature_name> command to install a Karaf feature in the container. Additionally, Cellar provides cluster:feature-install <group_name> <feature_name>, which is similar to the features:install command. The features:install command will install the feature locally to the Karaf container, whereas the cluster:feature-install command will install the feature on the cluster in the given cluster group.

At the end of this chapter, you will find a table that introduces Cellar's cluster:* commands which correspond to the regular Karaf commands.

Features

In order to deploy a feature to a given cluster group, we can use the cluster:feature-install command:

karaf@root&gt...