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

HTTP load balancing and session clustering


Karaf directly leverages Pax Web to provide a complete WebContainer service.

With the installation of the war feature using the following command, Karaf gets full support from the web bundle thanks to the Jetty web container and Pax Web:

karaf@root> features:install war

It's now possible to deploy a web application containing servlet for instance.

Karaf WebConsole is a web application. You can install the webconsole feature with the following command:

karaf@root> features:install webconsole

With webconsole, you have the Karaf WebConsole available on http://localhost:8181/system/console.

Cellar deals with the HTTP layer to provide load balancing and session clustering.

Load balancing

Due to the Cellar cluster provisioning, a web bundle will be deployed on different nodes.

For instance, a web bundle binds and exposes an HTTP servlet on /service, which is related to the HTTP service local to each node.

This means we have:

  • For node A, the servlet available...

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}