_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

GlassFish clustering — high availability

19. 12. 2011 1 min read CORE SYSTEMSdata

A single server is a single point of failure. For clients requiring 99.9% uptime we need a cluster. GlassFish 3.1 has clustering built in.

Architecture

2× GlassFish instances on separate servers, 1× DAS for central management, Apache HTTP with mod_jk as load balancer, Oracle database.

Session replication

In-memory replication via GMS for transparent failover. All objects in the HTTP session must implement Serializable — otherwise replication silently fails.

Load balancing

mod_jk with sticky_session=1. The user is routed to the same node. Replication is a safety net in case of node failure.

Failover testing

We test: graceful shutdown, kill -9, network partition. Each scenario behaves differently. A cluster without testing is worthless.

Conclusion

GlassFish clustering works, but requires careful configuration and thorough testing. With a cluster you have more components that can fail.

glassfishclusteringhajava ee
Share:

CORE SYSTEMS

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.

Need help with implementation?

Our experts can help with design, implementation, and operations. From architecture to production.

Contact us