Book Image

Learning Karaf Cellar

By : Jean Baptiste Onofre, Jean-Baptiste Onofré
Book Image

Learning Karaf Cellar

By: Jean Baptiste Onofre, Jean-Baptiste Onofré

Overview of this book

Table of Contents (16 chapters)

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...