Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Karaf Cellar

You're reading from  Learning Karaf Cellar

Product type Book
Published in Jul 2014
Publisher
ISBN-13 9781783984602
Pages 124 pages
Edition 1st Edition
Languages
Authors (2):
Jean Baptiste Onofre Jean Baptiste Onofre
Profile icon Jean Baptiste Onofre
Jean-Baptiste Onofré Jean-Baptiste Onofré
Profile icon Jean-Baptiste Onofré
View More author details
Toc

Replicas/Backup


By default, distributed maps have one replica to insure failover; when an entry is added or updated in the map, Hazelcast synchronously creates a replica on another node.

Hazelcast manages the replicas with a backup operation; it provides the following two kinds of operations:

  • Sync backup operations

  • Async backup operations

Cellar only uses a sync backup operation to ensure that the replica is complete before it moves forward. You can increase the number of replicas using the backup-count element in the etc/hazelcast.xml file.

By default, the replicas are used only when a node goes down; Hazelcast can reload the data located on the failed node using the replica present on another node.

However, in a real runtime environment, a node has to call the node that stores the data, even if it holds a replica of this data locally.

To increase the read performance, you can allow the nodes to read their local replicas instead of actually calling the nodes that store the data. To do this, you...

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