Professional Documents
Culture Documents
UNPLANNED DOWNTIME
Failures & Solutions
WAN Clusters
Clusters
Disaster Recovery
Node Manager
Cluster wide JNDI
Service Migration
Clusters Replica aware Stubs
Hardware Server Migration
Failure Clusterware Integration
WLS High Availability
Configuration
Changes
Upgrades
PLANNED DOWNTIME
Rolling
Operations & Solutions
cluster upgrade
•Online Configuration
Changes and warnings
•Batching
changes/Deferred
Activation
reliability
• Scalability: through parallelism
• Reliability/Availability: through
replication and redundancy
Concept Description
6
Session State Replication
JSPs and Servlets
#1 #2 A
B
B
ACB
Browser
C
Web
Servers
Servlet
Engines
Web Cluster
WebServer with proxy plug-in
Cluster
WLS instance
WebServer
•iPlanet/SunOne
•Apache
•IIS
•WLS with HttpCLusterServlet
Web Cluster
External Load Balancer
Cluster
WLS instance
WLS instance
•BigIP from F5
•Alteon from Nortel
•Cisco
OHS as Proxy Web Server
• HttpClusterServlet:
• Is deployed in the default
Web application of the domain
proxy server
machine machine
• Delivers client requests
in round-robin style to server
servers in the cluster Admin
Server
cluster
server
client
WLS Proxy
client Internet server
Server
HttpClusterServlet server
client
HTTP Session Failover
Cluster
Primary Secondary
Configuring In-Memory Replication
Cluster
Server
Database
Proxy Server
Server
Configuring JDBC Replication
...
<session-descriptor>
<persistent-store-type>jdbc</persistent-store-type>
<persistent-store-pool>MyDataSource</persistent-store-pool>
</session-descriptor>
...
HTTP Session Replication Using File
Cluster
Server
File system
Proxy Server
Server
Configuring File Replication
...
<session-descriptor>
<persistent-store-type>file</persistent-store-type>
<persistent-store-dir>/mnt/wls_share</persistent-store-dir>
</session-descriptor>
...
Replication Groups
• Replication groups:
• Represent a subset of servers within a cluster
• Help to determine the placement of secondary sessions (for
example, avoid replicating within the same room)
• Are not explicitly defined in the console-like machines and
clusters
• WLS attempts to:
• Send secondary sessions to servers that are assigned to the
preferred secondary replication group of the primary server
• Avoid sending secondary sessions to servers that are
assigned to the same replication group as the primary server
HA with WebLogic Clustered JNDI
Surviving a Failed WebLogic Server
Object X Object X
A C A C
IP Unicast
Managed WLS 1
Managed WLS 1
Object X
Object X
A C
A C
EJB/RMI Object Cluster
EJB invocations
Cluster
Server
EJB
Client Server
Stub EJB
Server
EJB
Clustering EJB Objects: Replica-Aware
Stub
• Failover and load-balancing of EJBs is done with replica-aware
stubs.
• Replica-aware stubs are generated at compile time for
clusterable EJBs.
R1
Replica-aware Server 1
Stub
Replica R1
handler R2
<stateless-bean-load-algorithm>random
</stateless-bean-load-algorithm>
...
</stateless-clustering>
...
Load-Balancing Clustered EJB Objects
destinations DQ1
DQ1_Q1 DQ1_Q2
• Messages are persisted
(file or database storage) CF 1 CF 2
• Solutions:
• Restart the server
• Restart the server in another location (Whole Server Migration)
• Restart the JMS service in another location (Service Migration)
Automatic Service Migration
JMS Server 1
Other servers poll the
JMS Server 2 Queue1_1
Queue2_1
Queue2_2
lease master and
FileStore2
compete Queue1_2
for the lease to
host a migratable target.
The leaseFileStore1
master grants a
leasea to
When the most
server becomes
appropriate
unhealthy host.it loses
or fails,
JMS Server 3
Queue3_1
JMS Server 4
Queue4_1
it’s lease to host the
Itmigratable target.
Queue3_2 Queue4_2
FileStore3 FileStore4
all starts with
Migratable Targets –
groups of deployed
objects that migrate
together as a unit
Automatic Service Migration Configuration
• Cluster Setup
• Leasing Configuration
• Migratable Target configuration
• Migration Polices
• Shared Access to the Persistent Store
• File Store - SAN, Dual ported SCSI disks
• JDBC Store – JDBC Multipool connection
Whole Server Migration
WebLogic High Availability
Spare capacity
• Excess RAM and CPU on existing server host machines,
or redundant 'idling' hardware
Node Manager
• Starts servers during migration
• Migrates floating IP addresses to new physical network devices,
• Mounts and unmounts shared disks
Servers send
heartbeats to the This host fails
cluster master to and then loses its
renew their leases, lease to run
and the cluster Server 4.
Server 3 Server 4
master sends
lease table data toNM NM
other servers in
the cluster.
Cluster Master
Not a Single Point of Failure
• Automatic retirement –
graceful or timeout
Internal Client
Connections