Skip to content

Latest commit

 

History

History
60 lines (32 loc) · 2.38 KB

README.md

File metadata and controls

60 lines (32 loc) · 2.38 KB

WildFly Clustering Reproducers

This repo contains some recipes and scripts on how to easily and quickly setup some WildFly cluster.

Overview

WildFly nodes running in cluster (started using standalone-ha.xml or standalone-full-ha.xml e.g. WILDFLY_DIRECTORY/bin/standalone.sh --server-config=standalone-ha.xml) can use a distributed cache and share data across nodes:

Archidecture

Reproducers

BASIC

Demonstrates how to run a 4 nodes WildFly cluster using an distributed cache for WARs; a distributable WAR is deployed to the 4 nodes and some HTTP requests are fired at the 4 nodes to check the cache is working.

HOTROD_JDG

Demonstrates how to run a 2 nodes WildFly cluster using an invalidation cache for webapps, backed by a 2 nodes Infinispan Server cluster.

NOTE: Uses the NEW WildFLy HotRod session manager to connect to the remote Infinispan Server cluster.

METRICS

Demonstrates how to run a 4 nodes WildFly cluster producing metrics collected by Prometheus and visualized by Grafana.

INVALIDATION_DB

Demonstrates how to run a 4 nodes WildFly cluster using an invalidation cache for webapps, backed by a relational Database.

INVALIDATION_JDG

Demonstrates how to run a 2 nodes WildFly cluster using an invalidation cache for webapps, backed by a 2 nodes Infinispan Server cluster.

NOTE: Uses the traditional WildFLy Infinispan session manager to connect to the remote Infinispan Server cluster.

JDG-ENCRYPTED

Demonstrates how to run a 2 nodes WildFly cluster using an invalidation cache for webapps, backed by a 2 nodes Infinispan Server cluster. The communication between WildFLy and Infinispan is encrypted.

SHARED SESSIONS

Demonstrates how to run an EAR containing 2 WAR files sharing HTTP sessions, on a 4 nodes WildFly cluster; Some HTTP requests are fired at the 4 nodes to check that session are shared across WAR files and nodes;

SINGLETON DEPLOYMENT

Demonstrates how to run a Singleton Deployment WAR on a 4 nodes WildFly cluster; a Singleton Deployment WAR is deployed to the 4 nodes and some HTTP requests are fired at the 4 nodes to check the service is active on just on node;

SSO

Demonstrates using SSO with an application deployed on 2 nodes cluster

SSO HOTROD JDG

Demonstrates using SSO with an application deployed on 2 nodes cluster; SSO data is offloaded to a remote Infinispan cluster through HotRod;