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

Distributed cluster resource states

Cellar uses Hazelcast to maintain and store the states of the different resources in the cluster (bundles, features, configuration, OBR, eventadmin, DOSGi, and so on). To do so, Cellar uses Hazelcast's distributed data structures. Thanks to this, the cluster data is distributed across all the nodes in the cluster. Each Cellar node stores a portion of the data (and eventually the replicas/backups).

For instance, in Cellar, you have the following three features installed:

  • Feature A
  • Feature B
  • Feature C

The statuses of the features are stored in a distributed map that looks similar to the following statuses:

  • Feature A: Installed
  • Feature B: Uninstalled
  • Feature C: Installed

The partition of the features' distributed map (in the cluster) can be as follows:

  • Feature A's status on node1
  • Feature B's status on node2
  • Feature C's status on node1

If a node goes down or leaves the cluster, Hazelcast redistributes the data (including the replica) on the remaining...

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 $19.99/month. Cancel anytime