Clustering
A Cluster is a group of WebLogic Server instances.
A WebLogic Server cluster consists of multiple WebLogic Server server instances running simultaneously and working together to provide increased scalability and reliability.
Benefits of Cluster
- High availability: WebLogic Clustering provides high availability features for the application. When you create a cluster and deploy application on cluster, it continues to serve the incoming requests even when one of the server instance of a cluster goes down because the other server instance can continue to serve the application processing.
- Scalability: Scalability allows you to add and remove servers without disrupting current services.
Key Capabilities of Cluster
Failover:
a) Application Failover
Failover means that when an application component (typically referred to as an "object" in the following sections) doing a particular "job" some set of processing tasks becomes unavailable for any reason, a copy of the failed object finishes the job.
For the new object to be able to take over for the failed object:
- There must be a copy of the failed object available to take over the job.
- There must be information, available to other objects and the program that manages failover, defining the location and operational status of all objects so that it can be determined that the first object failed before finishing its job.
- There must be information, available to other objects and the program that manages failover, about the progress of jobs in process so that an object taking over an interrupted job knows how much of the job was completed before the first object failed, for example, what data has been changed, and what steps in the process were completed.
WebLogic Server uses standards-based communication techniques and facilities including IP sockets and the Java Naming and Directory Interface (JNDI) to share and maintain information about the availability of objects in a cluster. These techniques allow WebLogic Server to determine that an object stopped before finishing its job, and where there is a copy of the object to complete the job that was interrupted.
b) Site Failover
When all the services and applications in a single site fail they can switch to a separate site and continue processing.
c) Server Migration
When the server fails, pinned services can be migrated to another server in a cluster.
Load Balancing:
Load Balancing is an even distribution of the task and communication across multiple servers.
For load balancing to occur:
- There must be multiple copies of an object that can do a particular job.
- Information about the location and operational status of all objects must be available.
WebLogic Server allows objects to be clustered—deployed on multiple server instances—so that there are alternative objects to do the same job. WebLogic Server shares and maintains the availability and location of deployed objects using unicast, IP sockets, and JNDI.
What Types of Objects Can Be Clustered?
- Servlets
- JSPs
- EJBs
- Remote Method Invocation (RMI) objects
- Java Messaging Service (JMS) destinations
- Accessing non-clustered objects deployed to another clustered server instance on a different machine.
- Replicating HTTP session states and stateful session EJB states between a primary and secondary server instance.
- Accessing clustered objects that reside on a remote server instance. ( In a multi-tier cluster architecture ). Multi-tier clusters will require more IP Sockets than a combined-tier Cluster; One socket for replicating session states. One socket for each WebLogic Server in the EJB cluster, for accessing remote objects.
- WebLogic Server divides the server instances in a cluster into a fixed number of groups.
- Each group includes one server instance that also functions as the group leader. If the group leader fails, the group elects another group leader.
- To send and receive cluster messages, each server instance in a group makes a TCP/IP socket connection only to the group leader. The group leader connects to all its group members and all other group leaders in the cluster.
- When a group leader receives a cluster message from a server instance in its group, it retransmits the message to all other members in the group and also to every other group leader in the cluster. The other group leaders then retransmit the message to all their group members. This enables each server instance to receive every message in a cluster without requiring that server to establish a connection to every other server instance in the cluster.
Cluster Architecture
- Web Tier
- Presentation Tier
- Business or object Tier
- Basic Cluster Architecture
- Multi Tier Architecture
- Easy Administration
- Flexible load balancing
- Robust security
- Can't load balance EJB method calls
- Load Balancing across the tiers may become unbalanced
- Load Balancing for method class to clustered EJBs.
- Flexibility for load balancing between server that provide HTTP content and servers that provide clustered objects.
- High availability ( few single point of failure )
- More flexible security
- Improved load balancing
- load balancing of EJB methods
- Higher availability
- Improved security options
- Can create a bottleneck when presentation tier makes frequent calls to the business logic
- increased licensing cost
- Added firewall configuration complexity
- Internal to WebLogic Servlet. (WebLogic Server can act as a proxy server for WebLogic Cluster)
- Third Party applications: Apache webserver, IIS etc.
- Typically a physical load balancer. Example: Big IP F5 load balancer.
1 comment:
Devops Proxy Support, Aws Interview Support, Azure Interview Support, Devops Interview Support,, Devops Proxy Support, Aws Proxy Support, Devops Proxy Interview Support Provides DevOps Online Job Support From India and AWS DevOps, Azure DevOps Proxy.
Post a Comment