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

Managing cluster groups

By default, all nodes are members of the default cluster group. This default cluster group is used as a template for the creation of new cluster groups.

You can create a cluster group using the cluster:group-create <group-name> command:

karaf@root> cluster:group-create book

Here, we created a new cluster group called book. We can see this new cluster group in the cluster groups' list with the cluster:group-list command:

karaf@root> cluster:group-list

   Group                Members
* [default           ] [vostro.local:5701* ]
  [book              ] []

For now, our book cluster group doesn't have any members.

A node can join a cluster group using the cluster:group-join command:

karaf@root>  cluster:group-join book
   Group                Members
* [default           ] [vostro.local:5701* ]
* [book              ] [vostro.local:5701* ]

The cluster:group-join command takes the following two arguments:

  • The cluster group's name (in our example...
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 €18.99/month. Cancel anytime