Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Tip: Achieving minimal downtime for a WebSphere Commerce application

Keith Chan (keithcha@ca.ibm.com), Software Developer, IBM
Photo of Keith Chan
Keith Chan is a Software Developer and the Team Lead of the Install team for WebSphere Commerce at the IBM Toronto Lab, Canada. He oversees and contributes to the installation of WebSphere Commerce as well as the application of fix packages. His work in the deployment of fixes and updates has provided him with insight on ways customers can minimize their downtime while updating their WebSphere Commerce applications.

Summary:  This article describes a method to update a multi-node cluster with minimal downtime by manually manipulating and controlling the node agents. It is an alternative method to the automated roll out update through the WebSphere Commerce Update Installer.

Date:  05 Oct 2011
Level:  Introductory PDF:  A4 and Letter (32KB | 5 pages)Get Adobe® Reader®
Also available in:   Portuguese

Activity:  6207 views
Comments:  

Introduction

As more and more consumers turn to the Internet to browse and make purchases, the availability of e-commerce sites have been as important as ever. Spanning across many geographies, an hour that an e-commerce site is unavailable for maintenance or updates equates to hundreds or even thousands of dollars of potentially lost revenue. E-commerce sites powered by WebSphere Commerce already have an automated way of applying maintenance with minimal downtime using the roll out update. However, this method may not necessarily meet the requirements for all the WebSphere Commerce environments.

This article describes an alternative, albeit, manual way of achieving minimal downtime. This method also provides more control over what happens to the cluster during the update. Administrators looking for the above should refer to the rest of this article as a guide. We will apply a fix pack on a WebSphere Commerce cluster with three nodes as an example.


Before you begin

  • Ensure your WebSphere Commerce application is correctly federated and clustered on two or more nodes.
  • Test the method described on a test environment that reasonably emulates your production environment.
  • Ensure your customizations are properly deployed. Improper deployment can result in loss of data.
  • Ensure no other EAR update operations are running during the procedure and disable any scheduled jobs that perform EAR update operations.

Procedure

For illustration purposes, assume that you have the application server cluster topology shown in Figure 1. If you have more nodes than illustrated, you can group multiple nodes together to conform to the diagram. In general, database updates occur before the cluster is updated. However, this highly depends on the interdependencies between the database and application updates. To cover transient states that the cluster experiences, perform testing to uncover any issues when the database update is present in the cluster while the application update is not and vice versa.

Tip: If you are trying to perform an update within a specific maintenance window, you can apply WebSphere Commerce fix packages to the WebSphere Commerce product before the update. Updates to the WebSphere Commerce product do not affect the WebSphere Commerce application.


Figure 1. Sample cluster to update
Sample cluster to update

To proceed with the update, perform the following steps:

  1. Shut down the node agent on N2. The servers on N2 will continue to serve the application.
  2. Shut down the servers on N1 and N3 so that they stop receiving traffic.
  3. Perform the fix package update on N1, the node with WebSphere Commerce, in preparation of updating the Deployment Manager.
  4. Deploy the updates to the Deployment Manager following the usual update methodology. In the case of WebSphere Commerce fix packages, this is through the use of the Update installer from where WebSphere Commerce is installed.
  5. Perform a file synchronization from the Deployment Manager to the servers on N1 and N3.
  6. Shut down the servers on N2 to ensure it stops receiving traffic.
  7. Start the servers on N1 and N3 to start serving traffic with the update.
  8. Start the node agent on N2.
  9. Perform a file synchronization to the servers on N2.
  10. Start the servers on N2 to also start serving traffic with the update.

Note: Instead of shutting down the node agent on N2, you can disable the automatic file synchronization from the Deployment Manager instead.

The use of LoadBalanceWeight="0" in the plugin-cfg.xml can help to drain traffic from specific servers as they are being stopped. For other methods, see Tip: Minimizing outages when deploying code customization to clustered WebSphere Commerce V7 instances.


Conclusion

This article outlined a method to update a multi-node cluster with minimal downtime by manipulating the node agents and controlling them when the file synchronization occurs. Depending on your environment and requirements, this is one of several methods of updating your clustered WebSphere Commerce application.


Acknowledgments

The author would like to thank Jitendra Gupta, David Yuan, and Andres Voldman for their help and comments with this article. Thanks to Chuan Jie Zheng for setting up a cluster and testing the steps described in this article.


Resources

Learn

Discuss

About the author

Photo of Keith Chan

Keith Chan is a Software Developer and the Team Lead of the Install team for WebSphere Commerce at the IBM Toronto Lab, Canada. He oversees and contributes to the installation of WebSphere Commerce as well as the application of fix packages. His work in the deployment of fixes and updates has provided him with insight on ways customers can minimize their downtime while updating their WebSphere Commerce applications.

Report abuse help

Report abuse

Thank you. This entry has been flagged for moderator attention.


Report abuse help

Report abuse

Report abuse submission failed. Please try again later.


developerWorks: Sign in


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

Choose your display name

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


Rate this article

Comments

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=WebSphere
ArticleID=762646
ArticleTitle=Tip: Achieving minimal downtime for a WebSphere Commerce application
publish-date=10052011

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

For articles in technology zones (such as Java technology, Linux, Open source, XML), Popular tags shows the top tags for all technology zones. For articles in product zones (such as Info Mgmt, Rational, WebSphere), Popular tags shows the top tags for just that product zone.

For articles in technology zones (such as Java technology, Linux, Open source, XML), My tags shows your tags for all technology zones. For articles in product zones (such as Info Mgmt, Rational, WebSphere), My tags shows your tags for just that product zone.

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.

Special offers