YOUR FEEDBACK
SOA Feature Story: Real-Time SOA Starts with the Messaging Bus!
Gerardo Pardo-Castellote wrote: Regarding the previous comment about "TCP ...
AJAXWorld RIA Conference
$300 Savings Expire July 25
Register Today and SAVE!

SYS-CON.TV
TOP THREE LINKS YOU MUST CLICK ON


WebSphere Portal Server 5.1 Your Guide to Clustering
Your Guide to Portal Clustering

Digg This!

Page 3 of 4   « previous page   next page »

The Second Node
We should now be able to coast the rest of the way toward our cluster. By this point, the heavy lifting has been done and we are ready to add a second Portal on WAS2.

As noted earlier, we'll be installing a secondary node on WAS2. This will install the requisite Portal files but leave out the default portlets since we'll be using the ones already installed on the cell (the ones derived from WAS1).

  1. Execute the installer on WAS2.
  2. When prompted, select Custom.
  3. When prompted, select Secondary node.
  4. The installation program will detect that WebSphere Application Server security is enabled and give you the option of continuing the installation without performing WebSphere Portal configuration. Click Next.
The installation of the secondary node bypasses the installation of the portlets since it'll be using the ones that were installed on WAS1.

Once installation is complete, we have to tell this Portal node that security is enabled by editing the WPS_HOME\config\wpconfig.properties file on WAS2. We want the security-related parameters to match what we configured on WAS1. Refer to the InfoCenter for the list of relevant parameters for this step (there are many of them).

Once we're certain that we have the correct values for security, we want to execute the following task on WAS2:

WPS_HOME\config\WPSconfig.bat secure-portal-ldap

This command will secure the newly installed Portal with the same values used for WAS1 but this time without affecting WebSphere Global Security definitions on the Deployment Manager. Restart the Portal on WAS2 for the security settings to take effect.

We must also tell our new Portal node to talk to the same configuration database that's being used by the Portal on WAS1. To do this, we need to edit the wpconfig.properties file on WAS2. We want the database-related parameters to match what we configured on WAS1. Refer to the InfoCenter for the list of relevant parameters for this step.

Once the database parameters are configured in the wpconfig.properties file, put them into effect by executing:

WPS_HOME\config\WPSconfig.bat connect-database

This command will hook us up so that both Portals are reading the same configuration information.

Now we have two Portals installed, both secured using LDAP, both using the same remote data base to store config data, and both ready to be clustered.

Cluster Time
The Portal cluster is defined by using the Deployment Manager Admin Console. Log into the console and navigate to the Servers -> Clusters section of the navigation tree.

1.  Click New
a.  Define the cluster name
b.  Check the box Prefer local enabled
c.  Check the box Create Replication Domain for this cluster
d.  Check the box for "Select an existing server to add to this cluster" and then choose server WebSphere_Portal on node WAS1 from the list
e.  Check the box Create Replication Entry in this Server
f.  Click Next

2.  Create the second cluster member
a.  Define the name of cluster member (make sure it's different from the name of cluster member 1 above)
b.  Select the node WAS2
c.  Uncheck the box Generate Unique HTTP Ports
d.  Check the box Create Replication Entry in this Server
e.  Click Apply and then click Next to view the summary.

3.  To create the new cluster, click Finish

4.  Save the changes

The cluster is created! See, the actual cluster creation itself is very brief. So easy!

When we create the second cluster member above, the Deployment Manager is actually copying portlets and other configuration files from WAS1 to WAS2. It's synchronizing the nodes so they both contain the same application information. This is why we didn't have to install portlets during the Portal install on WAS2.

You may be asking yourself what the replication entries are that we're creating in this step. One of the chief benefits that the Network Deployment topology gives us is the ability to have our cluster members on WAS1 and WAS2 share information between them. This includes session information as well as dynacache information. With this step, all members in the defined Replication Domain that have Replication Entries will be able to share this valuable information.

If you're load balancing these Portals, having the user session shared between all the cluster members would be part of the high-availability configuration. If one Portal goes down, the other still has your session data active in memory. Excellent!

Tidy Up
But of course it couldn't be THAT simple. There are a few additional tasks left to perform to ensure the smooth operation of our cluster.

First, to be able to deploy portlets properly, we have to edit a file located on each of our Portal servers. This file is called DeploymentService.properties and it's located in WPS_HOME\shared\app\config\services.

Open this file up and set the wps.appserver.name property to the name of the cluster you defined in step 1a above. Save and close this file. We're done with it.

Next, we have to update the wpconfig.properties file on each Portal node with the correct cluster member information. The server name is no longer what it was when we installed Portal. Each cluster member has a specific name that we have to refer to it by. So open up the wpconfig.properties file and edit the ServerName property. Set this to match the cluster member name used in the Deployment Manager. To determine the cluster member name, click Servers > Cluster Topology in the Deployment Manager Admin Console and expand the cluster to view the cluster members.


Page 3 of 4   « previous page   next page »

About Chris Lockhart
Chris Lockhart is a senior technical resource at Perficient, a firm recognized for its expertise around IBM technologies. Chris has worked with IBM's WebSphere, Tivoli and Lotus Software platforms for more than 6 years. For more information, please visit www.perficient.com

WebSphere News Desk wrote: WebSphere Journal Exclusive: WebSphere Portal Server 5.1 Your Guide to Clustering. There are some things with WebSphere PortalServer that work well and are well documented. There are other things that are well-documented and work well in theory. There are still other things that have okay documentation and will work well when all of the WebSphere stars are aligned. Depending on your implementation, Portal Clustering can fit into all three categories.
read & respond »
WEBSPHERE LATEST STORIES . . .
WSRP Really Works! - Part 2
A standard from OASIS called Web Services for Remote Portlets (WSRP) is used so portlets can be decoupled from a portal. In part one (JDJ, Volume. 13, issue 3) of this article, we introduced the relevant standards and specifications and then demonstrated WSRP's capabilities by consumin
Adobe's Kevin Lynch and Microsoft's Scott Guthrie to Keynote AJAX World RIA Conference & Expo
Two of the biggest launches in Rich Internet Application history took place in 2007/2008 when Adobe launched AIR 1.0 in February '08 and Microsoft launched Silverlight (September '07). At the 6th International AJAXWorld RIA Conference & Expo in October SYS-CON Events is delighted to be
MyEclipse 6.5 Blue Edition: Next-Generation ALM and Open Source Development for WebSphere
Genuitec announced the availability of MyEclipse 6.5 Blue Edition; a next-generation ALM and open source-friendly IDE for WebSphere. Of note, users will be drawn to multiple technologies not currently supported by IBM's RAD, such as Maven4MyEclipse (a professional implementation of Mav
ZSL Launches Enterprise 2.0 Computing Framework Built on IBM WebSphere sMash
ZSL announced its Enterprise 2.0 Computing Framework built on IBM WebSphere sMash and Service Oriented Architecture (SOA). ZSL's new Enterprise 2.0 computing framework offerings will enable businesses to protect core legacy system investments while leveraging cutting-edge tools and dev
Free Guest Passes for the SOA World Conference & Expo in New York City
SYS-CON's upcoming '3rd International Virtualization Conference & Expo' faculty includes such distinguished speakers as: Al Aghili (Managed Methods), Alan Chhabra (Egenera), Andi Mann (Enterprise Management Associates), Andrew Conte (APC), Andy Astor (EnterpriseDB), Ariel Cohen (Xsigo
Microsoft's Virtualization Chief Mike Neil To Keynote SYS-CON's Virtualization Conference & Expo
Mike Neil is general manager for virtualization strategy in the Windows Server Division at Microsoft. Mike is focused on the delivery of the Windows virtualization technology, including Windows Server 2008 Hyper-V, Microsoft Hyper-V Server and Virtual PC 2007. Mike also directs the tec
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021

SYS-CON FEATURED WHITEPAPERS

ADS BY GOOGLE
BREAKING WEBSPHERE NEWS
*Revised* Analyst Reports for International Business Machines Corporation, Barr Pharmaceuticals Inc., The Home Depot Inc., and Schlumberger Limited
MaybachFinancial.com is one of the fastest growing independent and unbiased research firms i