How to build a cluster in Ubuntu - Linux and run a Programs Parallel algorithms
Description : weblogic troubleshooting
Description : weblogic dycript
Description : Tutorial Weblogic, creacion de un ejercicio desde cero, ideal para principiantes en weblogic. instalacion, ejemplos, introduccion, despliegue, seguridad, clustering. configuracion
Description : WebLogic 12.1.3 Install and Config Workshop v1.0
Deskripsi lengkap
Full description
cluster headacheDeskripsi lengkap
Descripción completa
Cluster Headache
Full description
Manual Oracle WebLogic Server 12cDescripción completa
HSEQ FORUMFull description
Inspection, Testing and TracebilityDeskripsi lengkap
Full description
Full description
Integrating and Configuring LTEFull description
Share
0
More
Next Blog»
Create Blog
Sign In
The Leading Independent In dependent Middleware Experts Home
About
C2B2 Consulting
1 November 2010
Configuring and Testing a WebLogic Cluster Configuring and Testing a WebLogic Cluster: This article describes how to configure and test a cluster cluster of of ser vers v ers usin usin g WebLogic WebLogic 10.3 and Apache 2.2. The cluster will use in memory HTTP session replication and demonstrate how server fail ures can can be transparent transp arent to end users. This article is based on the C2B2 WebLogic 10 10 System Adm inistrator training please contact co ntact us f or o r furth furth er inf ormation. o rmation.
Subscribe To Our Blog
Posts Comments
View Related Posts
1. Introduct Introduction ion High availability and load balancing underpin most Java Enterprise architectures and deliver the performance, reliability and scalability that businesses requ require ire to maintain c ompetiv ompetiveness eness and meet c ustomer expectations. Moder Modern n application servers servers s uch as WebLogic 10 have the capability to automatically migrate services between nodes, monitor their own health and guard against server overload.These advanced ad vanced features are all under underpinned pinned by clustes which we will examine in this article. 2. Architecture Overview A typic al WebLogic architecture to deliver deliver web based services services is shown below. below.
java jav a
(31)
jboss
(22)
middleware (20) JEE (19) oracle (17) data grids (16) glassfish (16) weblogic (14) Infinispan (9) Apache (8) JBoss EAP 6 (8) coherence (8) big data (6) Application server (5) Tomcat (5) HornetQ (4) Active MQ (3) Camel (3) WildFly (3) Drools (2) EAP 6 (2)
Popular Popular Posts
JBoss EAP 6 as light as Ras pberry PI? PI? JBoss EAP 6 JEE != Heavy! There has been a lot of debate about JEE application servers being "heavy-weight" . However I...
We c an see the demilitarized z one (DMZ) (DMZ) employed to add additional perimeter security als o containing the Apache load balancing plugin. The WebLogic WebLogic c luster is located behind a second firewall firewall typically configur configured ed to carefully restrict inbound traffic traffic t o certain source and
Configuring and Testing a WebLogic Cluster Configuring and Testing a WebLogic Cluster: This article describes how to configure configure and test a cluster of servers using WebLogic 10.3 and A.. A....
In this article we will focus on configuring Apache and WebLogic and the diagram below shows the design we will be building.
and EAP 6 Introduction Intr oduction This is part four four in a series of blogs looking at JBoss EAP 5 and 6. In Part One of this series on JBoss (ava (available ilable here : h... A Smartphone as a JEE Server: Server: Glass fish 4 on Ubuntu Touch Last year, following the release of the much anticipated Raspberry Pi, Steve Steve couldn’t res ist getting JBoss EAP 6 to run on it, which he mana...
It comprises:
Basic clustering with Weblogic 12c and Apache Web Server The aim of this post is to demons trat trate e Weblogic’s clustering capabilities and to use the Weblogic Apache plugin to us e the Apache Web Ser ver.. ver....
2 x mana ged servers servers called Server Server1 1 and Server Server2 2 1 x WebLogic machines called VM1 1 x Apache mod_wl plug-in
C2B2 C2B2 Tw itter
1 x cluster called exampl e-cluster
Tweets by @c2b2consulting
1 x domain called base_domain
The software we will use is: Centos 5.5 WebLogic 10.3.3 Apac he 2.2 C2B2 ClusterTest ClusterTest applica tion
If you would like to build this environment yourself see the resources at the end for links to available software. We assume that you have already: 1.
Installed Inst alled WebLogic to /hom e/weblogic on RHEL 5 32bit or similar (e.g. Centos 5)
2.
Installed Apache
3.
Created an a dministration server on http://wlstrain:7001 http://wlstrain:7001
4.
Created a managed server server called Server1 on machi ne VM1
Configure Apache to proxy requests requests to the WebLogic cluster
2.
Create a managed server call ed Server2 and assign it to mach ine VM2
3.
Create a cluster call ed examples-cluster
4.
Configuring Apache
3. Configuration Procedure 3.1 Install t he WebLogic Apache Plug-in and configure basic proxying Before Befor e getting into the configuration configuration you mi ght find the following directory directory l ocations useful. Directory
Description
/e tc/ h ttp d / m o d u le s
Ap a ch e M o d ule s
/ v a r / l o g / h tt p d /
R o o t o f lo g f i le s
/e tc/ h ttp d
R o o t o f co n fig u ra tio n file s
1. Log in as root 2. Install the Apache HTTP Server Plug-In module by copying the mod_wl_22.so file to the Apache modules directory cd
cp mod_wl_22.so /etc/httpd/modules cd /etc/httpd/modules chmod 755 mod_wl_22.so ls –al (check all the pe rmissions on m od_wl_22 od_wl_22.so .so m atch the other .so files)
3. Edit the httpd.conf file Add at the end of the other other module definitions: definitions: LoadModule weblogic_module modules/mod_wl_22.so
apache config 1
Get your ow n Widget
VISIT OUR WEBSITE
www.c2b2.co.uk
[root@localhost ~]# /usr/sbin/apachectl -t
The views and opinions expressed on
Syntax OK
this blog are those of the authors and do
You should see no errors reported. 5. Start Apache Apache and check you can access the home pag e
/usr/sbin/apachectl start
Go to http://wlstrain http://wlstrain (or localhost if you are accessing locally). locally). You You sho uld see the page below.
6. Check that basic proxying works Make sure the W ebLog ebLogic ic administration server server is runn running ing and point a browser at http:// wlstrain/console. You should see the administration console because Apache is proxying requests from the standard HTTP port of 80 (not shown) to the default WebLogic administration port of 7001.
not necessarily represent the views and opinions of C2B2 Consulting Ltd.
3.2. Configure WebLogic and Create a Cluster Now let's configure WebLogic and create a cluster with two servers: the existing Server1 and a new one called Server2 which we will create. 1. Login to the Administ ration console at http://wlst rain:700 rain:7001/console/ 1/console/ 2. Create a new managed server and cluster Go to Environment --> Servers --> Click New and create a new server using: Server Name=Server2 Listen Port=8002 Cluster Name=examples-cluster
Make sure you select 'Yes, create create a new cluster for this server'
Name the cluster example-cluster.
Click Click Finish and view the ne wly created Server2 as part of example-cl example-cluster. uster.
to finish off the cluster we need to add Server2 to machine machine VM1 and Server1 to example-cluster. example-cluster. Let's Let's update the machine first. 4. Updated Machine VM1 configuration configuration and add Server2. Go to Environment --> Machines
Select machine machine VM1 then the Servers tab.
Click Click on Add and se lect Server2 Server2 as below .
Click Next.
3. Add Server1 to example-cluster. Go to Environment --> Cluste rs
Click on examplecluster then on the Servers tab. You should see the page below.
Click Click Add and se lect Server1 Server1 as below .
Click Click Next to complete complete and view the configuration.
Go to Environment -> Clusters to check.
3.2. Configure Apache to Proxy all JSP Requests and Test We have proved that the proxy configuration configur ation c an pass throug through h requests to a single IP address or a all requests we now need to update this to proxy all JSP requests to our newly created cluster. 1. Update the httpd.conf Edit httpd.c onf and remove (or comment out) the previous configuration. Add the configuration below. It must be placed below the modules definition.
apache config 2
2. Start both managed servers : Server1 and Server2. You can either use Node Manager or sta rtup scripts. 3. Install ClusterTest.war ClusterTest.war a nd target example-cl example-cluster uster as below. install cluster cluster te st
4. Te st sting ing We now have two servers in a cluster proxied through Apache. Let's test and see what happens when one of the servers fails. First directly to the ClusterTest application on Server 1 at http:// wlstrain:8001 wlstrain:8001/ClusterT /ClusterTest/Sess est/Sess ion.jsp.
server test 1
Then w e can try Server2 at http://wlstrain: http://wlstrain:8002/ClusterT 8002/ClusterTest/Session.j est/Session.jsp sp server test 2
N ow ow w e ca ca n tr tr t he he A a ch ch e r ox ox a dd dd re re ss ss a t h tt tt : w ls ls tr tr ai ain C lu lu st st er erTe st st Se ss ss io io n. n. s .
.
.
cluster test
We can now add values into the HTTP Session using the Cluster Test applicaton and watch them being replicated to all servers in the cluster.We c an also stop s erv ervers ers and see how that simulated failure is completely t ranspar ransparent ent to the user. 5. Conclusion In this artic le we stepped through the configuration configuration of WebLogic and Apache to create a basic cluster which demonstrated how a service can transparently failover from one server to another. However, we have only scratched the surface of the configuration required to build a fast and reliable application infrastructure. Understanding how clusters operate for EJB clients, how to a configure JDBC multi data source, the pros and cons of in memory versus JDBC state replication and cluster tuning best practices are all aspects which s hould be considered. considered.
Posted by C2B2 at 00:47
Recommend this on Google
Labels: Apache Labels: Apache 2.2. , Configuring a WebLogic Cluster , Testing a WebLogic Cluster , w eblogic , WebLogic 10.3 , w eblogic cluster
2 comments : Leo 26 December 2012 11:12 The httpd.conf ?? Reply
hmm this is an old post and som e of the images seem to have have disappeared from blogger. Try this post which is newer http://blog.c2b2.co.uk/2012/10/basic-clustering-with-weblogic-12c-and.html Reply
Enter your comment...
Comment as: Select profile... Publish
Preview
Newer Pos t
Home
Ol der Pos t
Subscribe to: Post Comm ents ( Atom Atom )
C2B2 on LinkedIn
12 C2B2 Co nsulting Limited Limited employees on LinkedIn
Login with LinkedIn
See how your LinkedIn network network connects you to C2B 2 Consul Co nsulting ting Limited. Limi ted.