Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Karaf Cellar

You're reading from   Learning Karaf Cellar Build and implement a complete clustering solution for the Apache Karaf OSGi container

Arrow left icon
Product type Paperback
Published in Jul 2014
Publisher
ISBN-13 9781783984602
Length 124 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Jean Baptiste Onofre Jean Baptiste Onofre
Author Profile Icon Jean Baptiste Onofre
Jean Baptiste Onofre
Jean-Baptiste Onofré Jean-Baptiste Onofré
Author Profile Icon Jean-Baptiste Onofré
Jean-Baptiste Onofré
Arrow right icon
View More author details
Toc

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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime