SlideShare a Scribd company logo
Lab AEC-1105
Get hands-On Experience with Creating
Enhanced Patterns of Expertise in IBM
PureApplication System
February 2015
Please Note
IBM’s statements regarding its plans, directions, and intent are subject to change or
withdrawal without notice at IBM’s sole discretion.
Information regarding potential future products is intended to outline our general product
direction and it should not be relied on in making a purchasing decision.
The information mentioned regarding potential future products is not a commitment,
promise, or legal obligation to deliver any material, code or functionality. Information about
potential future products may not be incorporated into any contract. The development,
release, and timing of any future features or functionality described for our products remains
at our sole discretion.
Performance is based on measurements and projections using standard IBM benchmarks in
a controlled environment. The actual throughput or performance that any user will
experience will vary depending upon many factors, including considerations such as the
amount of multiprogramming in the user’s job stream, the I/O configuration, the storage
configuration, and the workload processed. Therefore, no assurance can be given that an
individual user will achieve results similar to those stated here.
Acknowledgements and Disclaimers
Availability. References in this presentation to IBM products, programs, or services do not
imply that they will be available in all countries in which IBM operates.
The workshops, sessions and materials have been prepared by IBM or the session
speakers and reflect their own views. They are provided for informational purposes only,
and are neither intended to, nor shall have the effect of being, legal or other guidance or
advice to any participant. While efforts were made to verify the completeness and accuracy
of the information contained in this presentation, it is provided AS-IS without warranty of any
kind, express or implied. IBM shall not be responsible for any damages arising out of the
use of, or otherwise related to, this presentation or any other materials. Nothing contained in
this presentation is intended to, nor shall have the effect of, creating any warranties or
representations from IBM or its suppliers or licensors, or altering the terms and conditions of
the applicable license agreement governing the use of IBM software.
All customer examples described are presented as illustrations of how those customers
have used IBM products and the results they may have achieved. Actual environmental
costs and performance characteristics may vary by customer. Nothing contained in these
materials is intended to, nor shall have the effect of, stating or implying that any activities
undertaken by you will result in any specific sales, revenue growth or other results.
© Copyright IBM Corporation 2015. All rights reserved.
• U.S. Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
Please update paragraph below for the particular product or family brand trademarks you
mention such as WebSphere, DB2, Maximo, Clearcase, Lotus, etc
IBM, the IBM logo, ibm.com, Interconnect, [IBM Brand, if trademarked], and [IBM Product, if
trademarked] are trademarks or registered trademarks of International Business Machines
Corporation in the United States, other countries, or both. If these and other IBM
trademarked terms are marked on their first occurrence in this information with a trademark
symbol (® or ™), these symbols indicate U.S. registered or common law trademarks owned
by IBM at the time this information was published. Such trademarks may also be registered
or common law trademarks in other countries. A current list of IBM trademarks is available
on the Web at “Copyright and trademark information” at www.ibm.com/legal/copytrade.shtml
If you have mentioned trademarks that are not from IBM, please update and add the
following lines:
[Insert any special 3rd party trademark names/attributions here]
Other company, product, or service names may be trademarks or service marks of
others.
REMINDER: Please follow the guidelines for copying third party materials. Third party
screen shots, logos, presentations and website content are copyrighted materials owned by
the third party, and as such we need permission from the third party to use them. Also, be
sure the information you put on a chart is verifiable. Be sure to cite the source on your deck
when using words, ideas, facts, photos, news clips or other expression that did not originate
from yourself. This applies even if the content is publicly available and not confidential. If
you have any questions, please contact your IP Attorney.
Contents
Requirements and prerequisites 7	
  
Add script packages to the catalog 8	
  
Create a new pattern using a WebSphere Application Server pattern template 10	
  
Set pattern level parameters 10	
  
Add a database node to the pattern 10	
  
Configure the database node 10	
  
Configure the deployment manager node 12	
  
Configure the custom nodes 13	
  
Configure the IBM HTTP Server node 14	
  
Configure component and script ordering for the pattern 14	
  
Save the pattern 15	
  
Deploy the pattern 16	
  
Test the deployed application 19	
  
Requirements and prerequisites
• PureApplication System V2.0.0.0 or later, preferably V2.0.0.0 cfix1 (only tested on In-
tel/RHEL so far. Should also work on Power/AIX.)
• WebSphere Application Server V8.5.5.x and DB2 10.5.x Virtual System (VSys.next) patterns.
These are provided with PureApp V2 default data
• Labfiles-DaytraderStaticClusterV2.zip -- provided on this page. Contains the Daytrader JEE5
application and the script packages needed to configure the pattern as described on this page.
• Required permissions: create new patterns, create catalog content, and sufficient permissions
to deploy to an environment profile
• Optional permissions: permission to create storage volumes, if you want to demo the pattern
using block storage, and if block storage volumes for you to use have not already been creat-
ed.
Add script packages to the catalog
• Navigate to Catalog > Script Packages in the workload console. If they have not already
been added to the catalog on your system, create the following script packages:
o Create tables for Daytrader
! This script creates the database tables used by the daytrader application. It runs
a DDL file and expects the database name specified by the DATABASE_NAME
variable to already exist on the local system. This can be accomplished using
the CreateDB_OLTP script that is provided by the DB2 V10.5 virtual system
pattern.
o Install DB2 drivers (InstallDB2Drivers.zip)
! This script package copies DB2 driver binaries onto a WAS custom node.
o WebSphere Cluster Creation (createCluster.zip)
! This is a very basic script package for creating a WAS cluster. It creates a clus-
ter with one cluster member on each managed node in the cell. The CLUS-
TER_NAME parameter is used to set the cluster name, and the SERV-
ER_NAME parameter is used to set the base name for the cluster members,
each of which will have a number appended to them.
o Open Firewall Ports for WAS (openFirewallPortsForWAS.zip)
! This script uses wsadmin in disconnected more to list all of the endpoints used
by all of the WAS processes in the cell, and opens those ports in the local ip-
tables firewall. It also provides the DATABASE_PORTS variable to open any
additional ports that you may need to open (for example, port 50000 for con-
necting to a DB2 server.) You can specify multiple additional ports by listing
each port separated by a space. If you provide the letters 'DS' as input to this
script, it will query the WAS configuration using wsadmin to find ports speci-
fied by your DB2 data sources and open those ports as well. For example, set-
ting DATABASE_PORTS to "50000 500013 DS" will open ports 50000, 50013,
and any port numbers specified by your JDBC data sources, in addition to all
of the ports required by WAS.
! Note 1: for the 'DS' parameter to work in this way, the data sources must be
created before this script package is executed. It is not used in this sample,
since this script package is executed before the script package that creates the
TradeDataSource.
! Note 2: the 'DS' parameter only currently supports DB2 data sources. It ex-
tracts the port number from the 'portNumber' property on the data source. For
instance, since an Oracle data source only stores the port number as part of the
Oracle URL, this script will not automatically open the ports needed for an Or-
acle data source.
o Open Firewall Ports for IHS (openFirewallPortsForIHS.zip)
! This script uses wsadmin to connect to the deployment manager and get a list
of Web Container listener ports, and opens those ports in the local iptables
firewall.
o Install Daytrader (static cluster) (InstallDayTraderApp_StaticCluster.zip)
! This script creates the environment needed to run the Daytrader application
(SIBues, JMS resources, JDBC resources, etc.), and then installs the Daytrader
application and starts the cluster members. It requires two clusters to already
exist, named DayTrader_1, and HVMsgCluster_1.
Create a new pattern using a WebSphere Application Server pattern template
• Create a new pattern using Workload Console > Patterns > Virtual Systems, and clicking Cre-
ate New.
• Select the "WebSphere Cluster" template, give your pattern a name, and click "Start building"
(Note that 'cluster' is a misnomer. This pattern template simply creates a WebSphere cell.)
• The pattern created by the template consists of a WAS Deployment Manager, two WAS cus-
tom nodes, and an IBM HTTP Server.
Set pattern level parameters
• Click on the canvas, then use the "Pattern-level parameters" panel in the bottom-right to set
common parameters that can be applied to any parts in your pattern. Use a password of your
choice for the passwords, and set the WebSphere Administrative user name to virtuser.
o Password (root)
o Password (virtuser)
o WebSphere Administrative user name
o WebSphere Administrative password
Add a database node to the pattern
• Drag a Core OS image to the canvas (Use the Core OS 2.1.0.0 image)
• Drag a Database (DB2) software component onto the Core OS image (you could do this in
one step, but this illustrates the OS/middleware separation)
• Rename the part from "OS Node" to "Database Node"
Configure the database node
• Add references to the pattern-level parameters to set the passwords for the root and virtuser
users:
o Click on the database node
o Click the Add reference icon next to password (root) in the properties panel at the
right of the screen
o Click the pattern-level parameter tab, choose root_pattern_password from the "At-
tribute" menu, and click Add. Then click OK.
o Click the Add reference icon next to password (virtuser) in the properties panel at the
right of the screen
o Click the pattern-level parameter tab, choose pattern_virtuserpassword from the
"Attribute" menu, and click Add. Then click OK.
• Configure the Database Server software component
o Expand the "Database Server" section of the properties panel on the right of the
screen.
o Enter a password of your choice in the "Password (instance owner)" and "Password
(fenced user)" fields.
o Enter /myinst1 in the "Mount point for instance owner" field.
o Leave all other fields at their default value
• Add two disks to the Database Node (you can use regular storage volumes, or block storage
volumes. These instructions describe using block storage. If you cannot use block storage,
create regular storage volumes here instead, using the same mount points. 2GB volumes
should be sufficient for this demo.)
o Click the "Add a component add-on" icon, and select Default attach block disk.
o Select a filesystem type that will work on your platform (ext4 on RHEL, jfs2 on AIX)
from the "File System Type" menu
o Enter /myinst1 in the "Mount point" field.
o Change the name of the add-on from "Default attach block disk" to "DB2 instance
disk"
o Click the "Add a component add-on" icon, and select Default attach block disk
again.
o Select a filesystem type that will work on your platform (ext4 on RHEL, jfs2 on AIX)
from the "File System Type" menu
o Enter /db2data in the "Mount point" field.
o Change the name of the add-on from "Default attach block disk" to "DB2 data disk"
• Configure the "CreateDB_OLTP" script package to create a database on the database node.
o Expand Scripts in the pallette, and drag CreateDB_OLTP from the pallette onto the
Database Node part.
o Enter the following values in the "CreateDB_OLTP" properties panel:
! Instance name: db2inst1
! Database name: tradedb
! Database user: db2inst1
! Database user password: a password of your choice
! Data mount point: /db2data
! Leave all other attributes at their default values
• Configure the "Create tables for Daytrader" script package to create the database tables need-
ed by the Daytrader application.
o Drag the Create tables for Daytrader script package onto the Database Node part.
o Verify that the following values appear in the "Create tables for Daytrader" properties
panel. The default values have been pre-configured using the cbscript.json file inside
the script package.
! DB_ADMIN_USERNAME: db2inst1
! DATABASE_NAME: tradedb
Configure the deployment manager node
• Configure two instances of the "WebSphere Cluster Creation" script package to configure two
WebSphere Application Server clusters.
o Drag the WebSphere Cluster Creation script onto the DmgrNode.
o Rename the "WebSphere Cluster Creation" script that you just dropped to "Create
WebApp Cluster"
o Enter the following values in the "WebSphere Cluster Creation" properties panel:
! CLUSTER_NAME: DayTrader_1
! SERVER_NAME: MyServer
o Drag the WebSphere Cluster Creation script onto the DmgrNode again to create a
second cluster.
o Rename the "WebSphere Cluster Creation" script that you just dropped to "Create
Messaging Cluster"
o Enter the following values in the "WebSphere Cluster Creation" properties panel:
! CLUSTER_NAME: HVMsgCluster_1
! SERVER_NAME: HVMsgServer
• Configure the "Open Firewall Ports for WAS" script package to open the ports needed by the
deployment manager in the local iptables firewall
o Drag the Open Firewall Ports for WAS script package onto the DmgrNode.
o Rename the script "Open firewall ports for Dmgr".
o No parameters are needed.
• Configure the "Install DayTrader (static cluster)" script package to configure the clusters, in-
stall Daytrader, and start the clusters.
o Drag the Install Daytrader (static cluster) script package onto the DmgrNode.
o Drag the blue dot at the right side of the "Install Daytrader" script to the "Creat-
eDB_OLTP" script package on the database node to map properties from one script
package to the other.
o Create the following property mappings:
! DB_IP --> ipaddr , then click Add.
! DB_ADMIN_USERNAME --> Database user, then click Add.
! DB_ADMIN_PASSWORD --> Database user password, then click Add.
! Click OK.
Configure the custom nodes
• Configure the "Install DB2 drivers" script package to copy the DB2 driver binaries onto the
custom nodes
o Drag the Install DB2 drivers script package onto the CustomNode part.
o No parameters are needed.
• Configure the "Open Firewall Ports for WAS" script package to open the ports needed by the
custom nodes in the local iptables firewall
o Drag the Open Firewall Ports for WAS script package onto the CustomNode part.
o Rename the script "Open firewall ports for custom nodes"
o This script will open the ports used by WAS endpoints by default. To open the port
needed for communication with the DB2 server, drag the blue dot at the right side of
the "Open firewall ports for WAS" script to the "Database server" component to create
a mapping between the two components.
o Create the following property mapping:
! DATABASE_PORTS --> instancePort, then click Add.
! Click OK.
Configure the IBM HTTP Server node
• Configure the "Open firewall ports for IHS" script package to open the ports used for commu-
nication between IHS and the WAS custom nodes in the local iptables firewall.
o Drag the Open firewall ports for IHS script package onto the IHSNode part.
o No parameters are needed.
• Your pattern should now resemble the pattern shown below:
•
Figure 1 Figure caption style
Configure component and script ordering for the pattern
• Click the Ordering tab near the top left of the pattern editor.
• Verify that the "Create WebApp cluster" script appears in order before the "Create messaging
cluster" script in the "DmgrNode" row, and that the "Open firewall ports for Dmgr" script ap-
pears in order after both cluster creation scripts.
• Drag the blue dot from the right side of the Custom nodes component (in the CustomNode
row) to the Create WebApp Cluster script (in the DmgrNode row) to create a red arrow be-
tween the two components. This will ensure that the clusters are created after the custom
nodes have been added to the cell.
• Drag the blue dot from the right side of the Create messaging cluster script to the Open
firewall ports for custom nodes script to create a red arrow between the two scripts. This en-
sures that the WAS configuration for the custom nodes will contain the new cluster members
before it is read to determine which firewall ports to open.
• Drag the blue dot from the right side of the Create messaging cluster script to the Open
firewall ports for IHS script to create a red arrow between the two scripts. This ensures that
the WAS configuration for the custom nodes will contain the new cluster members before it is
read to determine which firewall ports to open for IHS.
• Drag the blue dot from the right side of the Open firewall ports for custom nodes script to
the Install Daytrader script to create a red arrow between the two scripts. This ensures that
the correct firewall ports are open before attempting to start the WAS clusters.
• The ordering relationships should look like the example below:
•
Figure 2: Figure caption style
Save the pattern
• Click the Diagram tab near the top left of the pattern builder window.
• Click the Save button near the top left of the pattern builder window.
• Wait until "The pattern is saved" appears near the top of the pattern builder window.
• Close the pattern builder tab to return to the workload console (or just switch back to the
workload console tab.)
Deploy the pattern
• If it is not already selected, navigate to Patterns > Virtual Systems and select your pattern.
• Click the Deploy link near the top right of the window. This will open the deployment panel
in a new tab.
• Ensure that the environment profile you would like to use is selected in the "Environment pro-
file" menu in the left-side panel.
• Notice that the pattern-level attributes that you entered in the pattern builder are already popu-
lated on the right-side panel.
• Click Continue to distribute.
•
•
Figure 1 Figure caption style
• If you are using neither block storage volumes nor multi-target deployment, you do not need
to do anything on this deployment panel.
• If you are using an externally-managed environment profile that is associated with multiple
systems or multiple cloud groups, you can use this panel to choose how your virtual machine
instances will be distributed among them.
• If you built your pattern to use block storage volumes for the DB2 data and instance volumes,
use this panel to map those volumes to actual storage volumes.
o Hover your cursor over the Database Node VM, highlighted by the blue dot.
Figure 1 Figure caption style
o Click the pencil icon to edit the Storage configuration section.
o Map the volume that you created for the DB2 instance to /myinst1
o Expand the "Defaul block storage - /db2data" section
o Map the volume that you created for the DB2 data to /db2data
o Note: The DB2 software component will attempt to create an instance on the /myinst1
volume, and the CreateDB_OLTP script package will attempt to create a database on
the /db2data volume, so both of these volumes must be new volumes not previously
used for DB2 deployments.
o If you have not created these volumes in advance, and have sufficient permissions,
you can use the "Create new" radio buttons to create them now.
Figure 1 Figure caption style
o Click OK.
o
• Click Deploy.
• A message will be displayed that your instance in launching. Click the link displayed in the
message to check the status of your deployment. The deployment will take at least 20
minutes.
• Wait for the pattern to deploy. The final message in the "History" area will show that "Script
package Install Daytrader (static cluster) on virtual machine <Dmgr_node_name> completed
successfully." You will also see that the icon next to the instance name will have changed
from the hourglass icon to the green "started" icon.
Test the deployed application
• Locate the web server IP address by finding the IHSNode part in the "Virtual Machine per-
spective" section of the instance panel.
• Copy the IP address listed in the "IHSNode" row and the "Public IP address" column (referred
to below as <WEB_SERVER_IP>
• Open a new tab or window in your web browser and navigate to
http://<WEB_SERVER_IP>/daytrader
• Your browser will display the "Daytrader performance benchmarking" overview page.
• Click the Configuration tab.
• Click the (Re-)populate Daytrader Database link to add some sample data to the database.
A new tab will open, and the database will be populated with quotes and users
• Wait for the following message to display: "DayTrader Database Built - 500users createdCur-
rent DayTrader Configuration", then close the tab and return to the DayTrader configuration
page.
• Click the Trading & Portfolios tab.
• Click the Log in button (the sample username and password are already populated.)
• Use the links to get quotes, buy shares, or sell shares.
• You have verified that the application has been installed correctly, that the application servers
has been started, and the web server, application servers, and database servers have been con-
figured correctly to communicate with each other.
Figure 1 Figure caption style

More Related Content

What's hot

websphere commerce server admin configuration
websphere commerce server admin configuration websphere commerce server admin configuration
websphere commerce server admin configuration
Laxmi Kanth Kshatriya
 
Pathway,I Ts Web Client Programming Manual
Pathway,I Ts Web Client Programming ManualPathway,I Ts Web Client Programming Manual
Pathway,I Ts Web Client Programming Manual
guest2dfc87
 
CICS TS for z/VSE Update including CICS connectivity options
CICS TS for z/VSE Update including CICS connectivity optionsCICS TS for z/VSE Update including CICS connectivity options
CICS TS for z/VSE Update including CICS connectivity options
IBM
 
JavaOne2013 Leveraging Linked Data and OSLC
JavaOne2013 Leveraging Linked Data and OSLCJavaOne2013 Leveraging Linked Data and OSLC
JavaOne2013 Leveraging Linked Data and OSLC
Steve Speicher
 
WAS Support & Monitoring Tools
WAS Support & Monitoring ToolsWAS Support & Monitoring Tools
WAS Support & Monitoring Tools
Royal Cyber Inc.
 
Oem Lead Disposition Vendor Certification V3
Oem Lead Disposition   Vendor Certification V3Oem Lead Disposition   Vendor Certification V3
Oem Lead Disposition Vendor Certification V3
Social Media Marketing
 
WebSphere sMash June Product Review
WebSphere sMash June Product ReviewWebSphere sMash June Product Review
WebSphere sMash June Product Review
Project Zero
 
IBM MobileFirst Platform v7.0 POT Offers Lab v1.0
IBM MobileFirst Platform v7.0 POT Offers Lab v1.0IBM MobileFirst Platform v7.0 POT Offers Lab v1.0
IBM MobileFirst Platform v7.0 POT Offers Lab v1.0
Banking at Ho Chi Minh city
 
Using WebSphere MQ with WebSphere Application Server and the Liberty Profile
Using WebSphere MQ with WebSphere Application Server and the Liberty ProfileUsing WebSphere MQ with WebSphere Application Server and the Liberty Profile
Using WebSphere MQ with WebSphere Application Server and the Liberty Profile
t_quigly
 
websphere commerce server v6 install guide
websphere commerce server v6 install guidewebsphere commerce server v6 install guide
websphere commerce server v6 install guide
hoangminhtoan
 
flex_4_tutorials
flex_4_tutorialsflex_4_tutorials
flex_4_tutorials
tutorialsruby
 
Part 3 web development
Part 3 web developmentPart 3 web development
Part 3 web development
techbed
 
Integrate Rational DOORS and Rational Team Concert change management
Integrate Rational DOORS and Rational Team Concert change managementIntegrate Rational DOORS and Rational Team Concert change management
Integrate Rational DOORS and Rational Team Concert change management
Bill Duncan
 
JavaOne2013: Build Your Own Runtime Monitoring for the IBM JDK with the Healt...
JavaOne2013: Build Your Own Runtime Monitoring for the IBM JDK with the Healt...JavaOne2013: Build Your Own Runtime Monitoring for the IBM JDK with the Healt...
JavaOne2013: Build Your Own Runtime Monitoring for the IBM JDK with the Healt...
Chris Bailey
 

What's hot (14)

websphere commerce server admin configuration
websphere commerce server admin configuration websphere commerce server admin configuration
websphere commerce server admin configuration
 
Pathway,I Ts Web Client Programming Manual
Pathway,I Ts Web Client Programming ManualPathway,I Ts Web Client Programming Manual
Pathway,I Ts Web Client Programming Manual
 
CICS TS for z/VSE Update including CICS connectivity options
CICS TS for z/VSE Update including CICS connectivity optionsCICS TS for z/VSE Update including CICS connectivity options
CICS TS for z/VSE Update including CICS connectivity options
 
JavaOne2013 Leveraging Linked Data and OSLC
JavaOne2013 Leveraging Linked Data and OSLCJavaOne2013 Leveraging Linked Data and OSLC
JavaOne2013 Leveraging Linked Data and OSLC
 
WAS Support & Monitoring Tools
WAS Support & Monitoring ToolsWAS Support & Monitoring Tools
WAS Support & Monitoring Tools
 
Oem Lead Disposition Vendor Certification V3
Oem Lead Disposition   Vendor Certification V3Oem Lead Disposition   Vendor Certification V3
Oem Lead Disposition Vendor Certification V3
 
WebSphere sMash June Product Review
WebSphere sMash June Product ReviewWebSphere sMash June Product Review
WebSphere sMash June Product Review
 
IBM MobileFirst Platform v7.0 POT Offers Lab v1.0
IBM MobileFirst Platform v7.0 POT Offers Lab v1.0IBM MobileFirst Platform v7.0 POT Offers Lab v1.0
IBM MobileFirst Platform v7.0 POT Offers Lab v1.0
 
Using WebSphere MQ with WebSphere Application Server and the Liberty Profile
Using WebSphere MQ with WebSphere Application Server and the Liberty ProfileUsing WebSphere MQ with WebSphere Application Server and the Liberty Profile
Using WebSphere MQ with WebSphere Application Server and the Liberty Profile
 
websphere commerce server v6 install guide
websphere commerce server v6 install guidewebsphere commerce server v6 install guide
websphere commerce server v6 install guide
 
flex_4_tutorials
flex_4_tutorialsflex_4_tutorials
flex_4_tutorials
 
Part 3 web development
Part 3 web developmentPart 3 web development
Part 3 web development
 
Integrate Rational DOORS and Rational Team Concert change management
Integrate Rational DOORS and Rational Team Concert change managementIntegrate Rational DOORS and Rational Team Concert change management
Integrate Rational DOORS and Rational Team Concert change management
 
JavaOne2013: Build Your Own Runtime Monitoring for the IBM JDK with the Healt...
JavaOne2013: Build Your Own Runtime Monitoring for the IBM JDK with the Healt...JavaOne2013: Build Your Own Runtime Monitoring for the IBM JDK with the Healt...
JavaOne2013: Build Your Own Runtime Monitoring for the IBM JDK with the Healt...
 

Viewers also liked

Airport capacity in London (report by the London Assembly)
Airport capacity in London (report by the London Assembly)Airport capacity in London (report by the London Assembly)
Airport capacity in London (report by the London Assembly)
London Assembly
 
April 19 2016 Press Kit
April 19 2016 Press KitApril 19 2016 Press Kit
April 19 2016 Press Kit
James Gilbert, PMP (LION)
 
منهج البحث الكيفي والخدمة الاجتماعية العيادية
منهج البحث الكيفي والخدمة الاجتماعية العياديةمنهج البحث الكيفي والخدمة الاجتماعية العيادية
منهج البحث الكيفي والخدمة الاجتماعية العيادية
Mohammed Alali
 
What will digitalization dematerialization and demonetization create ?
What will digitalization dematerialization and demonetization create ?What will digitalization dematerialization and demonetization create ?
What will digitalization dematerialization and demonetization create ?
Mike Mastroyiannis
 
SeedStars LATAM Keynote: Entrepreneurship without borders
SeedStars LATAM Keynote: Entrepreneurship without bordersSeedStars LATAM Keynote: Entrepreneurship without borders
SeedStars LATAM Keynote: Entrepreneurship without borders
Christine Souffrant Ntim
 
Terapia Narrativa
Terapia NarrativaTerapia Narrativa
Terapia Narrativa
Maria Gracia Albines Chuna
 

Viewers also liked (7)

2nd Year
2nd Year2nd Year
2nd Year
 
Airport capacity in London (report by the London Assembly)
Airport capacity in London (report by the London Assembly)Airport capacity in London (report by the London Assembly)
Airport capacity in London (report by the London Assembly)
 
April 19 2016 Press Kit
April 19 2016 Press KitApril 19 2016 Press Kit
April 19 2016 Press Kit
 
منهج البحث الكيفي والخدمة الاجتماعية العيادية
منهج البحث الكيفي والخدمة الاجتماعية العياديةمنهج البحث الكيفي والخدمة الاجتماعية العيادية
منهج البحث الكيفي والخدمة الاجتماعية العيادية
 
What will digitalization dematerialization and demonetization create ?
What will digitalization dematerialization and demonetization create ?What will digitalization dematerialization and demonetization create ?
What will digitalization dematerialization and demonetization create ?
 
SeedStars LATAM Keynote: Entrepreneurship without borders
SeedStars LATAM Keynote: Entrepreneurship without bordersSeedStars LATAM Keynote: Entrepreneurship without borders
SeedStars LATAM Keynote: Entrepreneurship without borders
 
Terapia Narrativa
Terapia NarrativaTerapia Narrativa
Terapia Narrativa
 

Similar to Aec1105

Radically Simple Management & Assembly of API-based Applications
Radically Simple Management & Assembly of API-based ApplicationsRadically Simple Management & Assembly of API-based Applications
Radically Simple Management & Assembly of API-based Applications
vinodmut
 
How to Containerize WebSphere Application Server Traditional, and Why You Mig...
How to Containerize WebSphere Application Server Traditional, and Why You Mig...How to Containerize WebSphere Application Server Traditional, and Why You Mig...
How to Containerize WebSphere Application Server Traditional, and Why You Mig...
David Currie
 
2829 liberty
2829 liberty2829 liberty
2829 liberty
nick_garrod
 
Adapting Deployment Pipelines for Complex Applications
Adapting Deployment Pipelines for Complex ApplicationsAdapting Deployment Pipelines for Complex Applications
Adapting Deployment Pipelines for Complex Applications
IBM UrbanCode Products
 
Codemotion Rome 2015 Bluemix Lab Tutorial
Codemotion Rome 2015 Bluemix Lab TutorialCodemotion Rome 2015 Bluemix Lab Tutorial
Codemotion Rome 2015 Bluemix Lab Tutorial
gjuljo
 
Become an IBM Cloud Architect in 40 Minutes
Become an IBM Cloud Architect in 40 MinutesBecome an IBM Cloud Architect in 40 Minutes
Become an IBM Cloud Architect in 40 Minutes
Andrew Ferrier
 
Csaix install
Csaix installCsaix install
Csaix install
sandy11sandy
 
OpenWhisk Introduction
OpenWhisk IntroductionOpenWhisk Introduction
OpenWhisk Introduction
Ioana Baldini
 
SHARE2016: DevOps - IIB Administration for Continuous Delivery and DevOps
SHARE2016:  DevOps - IIB Administration for Continuous Delivery and DevOpsSHARE2016:  DevOps - IIB Administration for Continuous Delivery and DevOps
SHARE2016: DevOps - IIB Administration for Continuous Delivery and DevOps
Rob Convery
 
2016 02-16-announce-overview-zsp04505 usen
2016 02-16-announce-overview-zsp04505 usen2016 02-16-announce-overview-zsp04505 usen
2016 02-16-announce-overview-zsp04505 usen
David Morlitz
 
Codemotion rome 2015 bluemix lab tutorial -- Codemotion Rome 2015
Codemotion rome 2015   bluemix lab tutorial -- Codemotion Rome 2015Codemotion rome 2015   bluemix lab tutorial -- Codemotion Rome 2015
Codemotion rome 2015 bluemix lab tutorial -- Codemotion Rome 2015
Codemotion
 
sMash AppBuilder
sMash AppBuildersMash AppBuilder
sMash AppBuilder
Project Zero
 
Java Development on Bluemix
Java Development on BluemixJava Development on Bluemix
Java Development on Bluemix
Ram Vennam
 
Server pac 101
Server pac 101Server pac 101
Server pac 101
Marna Walle
 
IBM iSeries Terminal Based Performance Testing with Rational Performance Tester
IBM iSeries Terminal Based Performance Testing with Rational Performance TesterIBM iSeries Terminal Based Performance Testing with Rational Performance Tester
IBM iSeries Terminal Based Performance Testing with Rational Performance Tester
Winton Winton
 
IBM z/OS V2R2 Networking Technologies Update
IBM z/OS V2R2 Networking Technologies UpdateIBM z/OS V2R2 Networking Technologies Update
IBM z/OS V2R2 Networking Technologies Update
Anderson Bassani
 
Exposing auto-generated Swagger 2.0 documents from Liberty!
Exposing auto-generated Swagger 2.0 documents from Liberty!Exposing auto-generated Swagger 2.0 documents from Liberty!
Exposing auto-generated Swagger 2.0 documents from Liberty!
Arthur De Magalhaes
 
Using Bluemix and Node-RED for Fast Prototyping
Using Bluemix and Node-RED for Fast PrototypingUsing Bluemix and Node-RED for Fast Prototyping
Using Bluemix and Node-RED for Fast Prototyping
Penn State EdTech Network
 
Using IBM WebSphere Liberty and Swagger to Make your Services Accessible
Using IBM WebSphere Liberty and Swagger to Make your Services AccessibleUsing IBM WebSphere Liberty and Swagger to Make your Services Accessible
Using IBM WebSphere Liberty and Swagger to Make your Services Accessible
Arthur De Magalhaes
 
Tip from IBM Connect 2014: Extend Your Security into the Cloud with IBM Smart...
Tip from IBM Connect 2014: Extend Your Security into the Cloud with IBM Smart...Tip from IBM Connect 2014: Extend Your Security into the Cloud with IBM Smart...
Tip from IBM Connect 2014: Extend Your Security into the Cloud with IBM Smart...
SocialBiz UserGroup
 

Similar to Aec1105 (20)

Radically Simple Management & Assembly of API-based Applications
Radically Simple Management & Assembly of API-based ApplicationsRadically Simple Management & Assembly of API-based Applications
Radically Simple Management & Assembly of API-based Applications
 
How to Containerize WebSphere Application Server Traditional, and Why You Mig...
How to Containerize WebSphere Application Server Traditional, and Why You Mig...How to Containerize WebSphere Application Server Traditional, and Why You Mig...
How to Containerize WebSphere Application Server Traditional, and Why You Mig...
 
2829 liberty
2829 liberty2829 liberty
2829 liberty
 
Adapting Deployment Pipelines for Complex Applications
Adapting Deployment Pipelines for Complex ApplicationsAdapting Deployment Pipelines for Complex Applications
Adapting Deployment Pipelines for Complex Applications
 
Codemotion Rome 2015 Bluemix Lab Tutorial
Codemotion Rome 2015 Bluemix Lab TutorialCodemotion Rome 2015 Bluemix Lab Tutorial
Codemotion Rome 2015 Bluemix Lab Tutorial
 
Become an IBM Cloud Architect in 40 Minutes
Become an IBM Cloud Architect in 40 MinutesBecome an IBM Cloud Architect in 40 Minutes
Become an IBM Cloud Architect in 40 Minutes
 
Csaix install
Csaix installCsaix install
Csaix install
 
OpenWhisk Introduction
OpenWhisk IntroductionOpenWhisk Introduction
OpenWhisk Introduction
 
SHARE2016: DevOps - IIB Administration for Continuous Delivery and DevOps
SHARE2016:  DevOps - IIB Administration for Continuous Delivery and DevOpsSHARE2016:  DevOps - IIB Administration for Continuous Delivery and DevOps
SHARE2016: DevOps - IIB Administration for Continuous Delivery and DevOps
 
2016 02-16-announce-overview-zsp04505 usen
2016 02-16-announce-overview-zsp04505 usen2016 02-16-announce-overview-zsp04505 usen
2016 02-16-announce-overview-zsp04505 usen
 
Codemotion rome 2015 bluemix lab tutorial -- Codemotion Rome 2015
Codemotion rome 2015   bluemix lab tutorial -- Codemotion Rome 2015Codemotion rome 2015   bluemix lab tutorial -- Codemotion Rome 2015
Codemotion rome 2015 bluemix lab tutorial -- Codemotion Rome 2015
 
sMash AppBuilder
sMash AppBuildersMash AppBuilder
sMash AppBuilder
 
Java Development on Bluemix
Java Development on BluemixJava Development on Bluemix
Java Development on Bluemix
 
Server pac 101
Server pac 101Server pac 101
Server pac 101
 
IBM iSeries Terminal Based Performance Testing with Rational Performance Tester
IBM iSeries Terminal Based Performance Testing with Rational Performance TesterIBM iSeries Terminal Based Performance Testing with Rational Performance Tester
IBM iSeries Terminal Based Performance Testing with Rational Performance Tester
 
IBM z/OS V2R2 Networking Technologies Update
IBM z/OS V2R2 Networking Technologies UpdateIBM z/OS V2R2 Networking Technologies Update
IBM z/OS V2R2 Networking Technologies Update
 
Exposing auto-generated Swagger 2.0 documents from Liberty!
Exposing auto-generated Swagger 2.0 documents from Liberty!Exposing auto-generated Swagger 2.0 documents from Liberty!
Exposing auto-generated Swagger 2.0 documents from Liberty!
 
Using Bluemix and Node-RED for Fast Prototyping
Using Bluemix and Node-RED for Fast PrototypingUsing Bluemix and Node-RED for Fast Prototyping
Using Bluemix and Node-RED for Fast Prototyping
 
Using IBM WebSphere Liberty and Swagger to Make your Services Accessible
Using IBM WebSphere Liberty and Swagger to Make your Services AccessibleUsing IBM WebSphere Liberty and Swagger to Make your Services Accessible
Using IBM WebSphere Liberty and Swagger to Make your Services Accessible
 
Tip from IBM Connect 2014: Extend Your Security into the Cloud with IBM Smart...
Tip from IBM Connect 2014: Extend Your Security into the Cloud with IBM Smart...Tip from IBM Connect 2014: Extend Your Security into the Cloud with IBM Smart...
Tip from IBM Connect 2014: Extend Your Security into the Cloud with IBM Smart...
 

Aec1105

  • 1. Lab AEC-1105 Get hands-On Experience with Creating Enhanced Patterns of Expertise in IBM PureApplication System February 2015
  • 2. Please Note IBM’s statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at IBM’s sole discretion. Information regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing decision. The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver any material, code or functionality. Information about potential future products may not be incorporated into any contract. The development, release, and timing of any future features or functionality described for our products remains at our sole discretion. Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon many factors, including considerations such as the amount of multiprogramming in the user’s job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve results similar to those stated here. Acknowledgements and Disclaimers Availability. References in this presentation to IBM products, programs, or services do not imply that they will be available in all countries in which IBM operates. The workshops, sessions and materials have been prepared by IBM or the session speakers and reflect their own views. They are provided for informational purposes only, and are neither intended to, nor shall have the effect of being, legal or other guidance or advice to any participant. While efforts were made to verify the completeness and accuracy of the information contained in this presentation, it is provided AS-IS without warranty of any kind, express or implied. IBM shall not be responsible for any damages arising out of the use of, or otherwise related to, this presentation or any other materials. Nothing contained in this presentation is intended to, nor shall have the effect of, creating any warranties or representations from IBM or its suppliers or licensors, or altering the terms and conditions of the applicable license agreement governing the use of IBM software. All customer examples described are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual environmental costs and performance characteristics may vary by customer. Nothing contained in these materials is intended to, nor shall have the effect of, stating or implying that any activities undertaken by you will result in any specific sales, revenue growth or other results. © Copyright IBM Corporation 2015. All rights reserved. • U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Please update paragraph below for the particular product or family brand trademarks you mention such as WebSphere, DB2, Maximo, Clearcase, Lotus, etc IBM, the IBM logo, ibm.com, Interconnect, [IBM Brand, if trademarked], and [IBM Product, if trademarked] are trademarks or registered trademarks of International Business Machines Corporation in the United States, other countries, or both. If these and other IBM
  • 3. trademarked terms are marked on their first occurrence in this information with a trademark symbol (® or ™), these symbols indicate U.S. registered or common law trademarks owned by IBM at the time this information was published. Such trademarks may also be registered or common law trademarks in other countries. A current list of IBM trademarks is available on the Web at “Copyright and trademark information” at www.ibm.com/legal/copytrade.shtml If you have mentioned trademarks that are not from IBM, please update and add the following lines: [Insert any special 3rd party trademark names/attributions here] Other company, product, or service names may be trademarks or service marks of others. REMINDER: Please follow the guidelines for copying third party materials. Third party screen shots, logos, presentations and website content are copyrighted materials owned by the third party, and as such we need permission from the third party to use them. Also, be sure the information you put on a chart is verifiable. Be sure to cite the source on your deck when using words, ideas, facts, photos, news clips or other expression that did not originate from yourself. This applies even if the content is publicly available and not confidential. If you have any questions, please contact your IP Attorney.
  • 4. Contents Requirements and prerequisites 7   Add script packages to the catalog 8   Create a new pattern using a WebSphere Application Server pattern template 10   Set pattern level parameters 10   Add a database node to the pattern 10   Configure the database node 10   Configure the deployment manager node 12   Configure the custom nodes 13   Configure the IBM HTTP Server node 14   Configure component and script ordering for the pattern 14   Save the pattern 15   Deploy the pattern 16   Test the deployed application 19  
  • 5.
  • 6. Requirements and prerequisites • PureApplication System V2.0.0.0 or later, preferably V2.0.0.0 cfix1 (only tested on In- tel/RHEL so far. Should also work on Power/AIX.) • WebSphere Application Server V8.5.5.x and DB2 10.5.x Virtual System (VSys.next) patterns. These are provided with PureApp V2 default data • Labfiles-DaytraderStaticClusterV2.zip -- provided on this page. Contains the Daytrader JEE5 application and the script packages needed to configure the pattern as described on this page. • Required permissions: create new patterns, create catalog content, and sufficient permissions to deploy to an environment profile • Optional permissions: permission to create storage volumes, if you want to demo the pattern using block storage, and if block storage volumes for you to use have not already been creat- ed.
  • 7. Add script packages to the catalog • Navigate to Catalog > Script Packages in the workload console. If they have not already been added to the catalog on your system, create the following script packages: o Create tables for Daytrader ! This script creates the database tables used by the daytrader application. It runs a DDL file and expects the database name specified by the DATABASE_NAME variable to already exist on the local system. This can be accomplished using the CreateDB_OLTP script that is provided by the DB2 V10.5 virtual system pattern. o Install DB2 drivers (InstallDB2Drivers.zip) ! This script package copies DB2 driver binaries onto a WAS custom node. o WebSphere Cluster Creation (createCluster.zip) ! This is a very basic script package for creating a WAS cluster. It creates a clus- ter with one cluster member on each managed node in the cell. The CLUS- TER_NAME parameter is used to set the cluster name, and the SERV- ER_NAME parameter is used to set the base name for the cluster members, each of which will have a number appended to them. o Open Firewall Ports for WAS (openFirewallPortsForWAS.zip) ! This script uses wsadmin in disconnected more to list all of the endpoints used by all of the WAS processes in the cell, and opens those ports in the local ip- tables firewall. It also provides the DATABASE_PORTS variable to open any additional ports that you may need to open (for example, port 50000 for con- necting to a DB2 server.) You can specify multiple additional ports by listing each port separated by a space. If you provide the letters 'DS' as input to this script, it will query the WAS configuration using wsadmin to find ports speci- fied by your DB2 data sources and open those ports as well. For example, set- ting DATABASE_PORTS to "50000 500013 DS" will open ports 50000, 50013, and any port numbers specified by your JDBC data sources, in addition to all of the ports required by WAS. ! Note 1: for the 'DS' parameter to work in this way, the data sources must be created before this script package is executed. It is not used in this sample, since this script package is executed before the script package that creates the TradeDataSource. ! Note 2: the 'DS' parameter only currently supports DB2 data sources. It ex- tracts the port number from the 'portNumber' property on the data source. For instance, since an Oracle data source only stores the port number as part of the Oracle URL, this script will not automatically open the ports needed for an Or- acle data source.
  • 8. o Open Firewall Ports for IHS (openFirewallPortsForIHS.zip) ! This script uses wsadmin to connect to the deployment manager and get a list of Web Container listener ports, and opens those ports in the local iptables firewall. o Install Daytrader (static cluster) (InstallDayTraderApp_StaticCluster.zip) ! This script creates the environment needed to run the Daytrader application (SIBues, JMS resources, JDBC resources, etc.), and then installs the Daytrader application and starts the cluster members. It requires two clusters to already exist, named DayTrader_1, and HVMsgCluster_1.
  • 9. Create a new pattern using a WebSphere Application Server pattern template • Create a new pattern using Workload Console > Patterns > Virtual Systems, and clicking Cre- ate New. • Select the "WebSphere Cluster" template, give your pattern a name, and click "Start building" (Note that 'cluster' is a misnomer. This pattern template simply creates a WebSphere cell.) • The pattern created by the template consists of a WAS Deployment Manager, two WAS cus- tom nodes, and an IBM HTTP Server. Set pattern level parameters • Click on the canvas, then use the "Pattern-level parameters" panel in the bottom-right to set common parameters that can be applied to any parts in your pattern. Use a password of your choice for the passwords, and set the WebSphere Administrative user name to virtuser. o Password (root) o Password (virtuser) o WebSphere Administrative user name o WebSphere Administrative password Add a database node to the pattern • Drag a Core OS image to the canvas (Use the Core OS 2.1.0.0 image) • Drag a Database (DB2) software component onto the Core OS image (you could do this in one step, but this illustrates the OS/middleware separation) • Rename the part from "OS Node" to "Database Node" Configure the database node • Add references to the pattern-level parameters to set the passwords for the root and virtuser users: o Click on the database node o Click the Add reference icon next to password (root) in the properties panel at the right of the screen
  • 10. o Click the pattern-level parameter tab, choose root_pattern_password from the "At- tribute" menu, and click Add. Then click OK. o Click the Add reference icon next to password (virtuser) in the properties panel at the right of the screen o Click the pattern-level parameter tab, choose pattern_virtuserpassword from the "Attribute" menu, and click Add. Then click OK. • Configure the Database Server software component o Expand the "Database Server" section of the properties panel on the right of the screen. o Enter a password of your choice in the "Password (instance owner)" and "Password (fenced user)" fields. o Enter /myinst1 in the "Mount point for instance owner" field. o Leave all other fields at their default value • Add two disks to the Database Node (you can use regular storage volumes, or block storage volumes. These instructions describe using block storage. If you cannot use block storage, create regular storage volumes here instead, using the same mount points. 2GB volumes should be sufficient for this demo.) o Click the "Add a component add-on" icon, and select Default attach block disk. o Select a filesystem type that will work on your platform (ext4 on RHEL, jfs2 on AIX) from the "File System Type" menu o Enter /myinst1 in the "Mount point" field. o Change the name of the add-on from "Default attach block disk" to "DB2 instance disk" o Click the "Add a component add-on" icon, and select Default attach block disk again. o Select a filesystem type that will work on your platform (ext4 on RHEL, jfs2 on AIX) from the "File System Type" menu o Enter /db2data in the "Mount point" field. o Change the name of the add-on from "Default attach block disk" to "DB2 data disk" • Configure the "CreateDB_OLTP" script package to create a database on the database node. o Expand Scripts in the pallette, and drag CreateDB_OLTP from the pallette onto the Database Node part. o Enter the following values in the "CreateDB_OLTP" properties panel: ! Instance name: db2inst1
  • 11. ! Database name: tradedb ! Database user: db2inst1 ! Database user password: a password of your choice ! Data mount point: /db2data ! Leave all other attributes at their default values • Configure the "Create tables for Daytrader" script package to create the database tables need- ed by the Daytrader application. o Drag the Create tables for Daytrader script package onto the Database Node part. o Verify that the following values appear in the "Create tables for Daytrader" properties panel. The default values have been pre-configured using the cbscript.json file inside the script package. ! DB_ADMIN_USERNAME: db2inst1 ! DATABASE_NAME: tradedb Configure the deployment manager node • Configure two instances of the "WebSphere Cluster Creation" script package to configure two WebSphere Application Server clusters. o Drag the WebSphere Cluster Creation script onto the DmgrNode. o Rename the "WebSphere Cluster Creation" script that you just dropped to "Create WebApp Cluster" o Enter the following values in the "WebSphere Cluster Creation" properties panel: ! CLUSTER_NAME: DayTrader_1 ! SERVER_NAME: MyServer o Drag the WebSphere Cluster Creation script onto the DmgrNode again to create a second cluster. o Rename the "WebSphere Cluster Creation" script that you just dropped to "Create Messaging Cluster" o Enter the following values in the "WebSphere Cluster Creation" properties panel: ! CLUSTER_NAME: HVMsgCluster_1 ! SERVER_NAME: HVMsgServer • Configure the "Open Firewall Ports for WAS" script package to open the ports needed by the deployment manager in the local iptables firewall
  • 12. o Drag the Open Firewall Ports for WAS script package onto the DmgrNode. o Rename the script "Open firewall ports for Dmgr". o No parameters are needed. • Configure the "Install DayTrader (static cluster)" script package to configure the clusters, in- stall Daytrader, and start the clusters. o Drag the Install Daytrader (static cluster) script package onto the DmgrNode. o Drag the blue dot at the right side of the "Install Daytrader" script to the "Creat- eDB_OLTP" script package on the database node to map properties from one script package to the other. o Create the following property mappings: ! DB_IP --> ipaddr , then click Add. ! DB_ADMIN_USERNAME --> Database user, then click Add. ! DB_ADMIN_PASSWORD --> Database user password, then click Add. ! Click OK. Configure the custom nodes • Configure the "Install DB2 drivers" script package to copy the DB2 driver binaries onto the custom nodes o Drag the Install DB2 drivers script package onto the CustomNode part. o No parameters are needed. • Configure the "Open Firewall Ports for WAS" script package to open the ports needed by the custom nodes in the local iptables firewall o Drag the Open Firewall Ports for WAS script package onto the CustomNode part. o Rename the script "Open firewall ports for custom nodes" o This script will open the ports used by WAS endpoints by default. To open the port needed for communication with the DB2 server, drag the blue dot at the right side of the "Open firewall ports for WAS" script to the "Database server" component to create a mapping between the two components. o Create the following property mapping: ! DATABASE_PORTS --> instancePort, then click Add. ! Click OK.
  • 13. Configure the IBM HTTP Server node • Configure the "Open firewall ports for IHS" script package to open the ports used for commu- nication between IHS and the WAS custom nodes in the local iptables firewall. o Drag the Open firewall ports for IHS script package onto the IHSNode part. o No parameters are needed. • Your pattern should now resemble the pattern shown below: • Figure 1 Figure caption style Configure component and script ordering for the pattern • Click the Ordering tab near the top left of the pattern editor. • Verify that the "Create WebApp cluster" script appears in order before the "Create messaging cluster" script in the "DmgrNode" row, and that the "Open firewall ports for Dmgr" script ap- pears in order after both cluster creation scripts.
  • 14. • Drag the blue dot from the right side of the Custom nodes component (in the CustomNode row) to the Create WebApp Cluster script (in the DmgrNode row) to create a red arrow be- tween the two components. This will ensure that the clusters are created after the custom nodes have been added to the cell. • Drag the blue dot from the right side of the Create messaging cluster script to the Open firewall ports for custom nodes script to create a red arrow between the two scripts. This en- sures that the WAS configuration for the custom nodes will contain the new cluster members before it is read to determine which firewall ports to open. • Drag the blue dot from the right side of the Create messaging cluster script to the Open firewall ports for IHS script to create a red arrow between the two scripts. This ensures that the WAS configuration for the custom nodes will contain the new cluster members before it is read to determine which firewall ports to open for IHS. • Drag the blue dot from the right side of the Open firewall ports for custom nodes script to the Install Daytrader script to create a red arrow between the two scripts. This ensures that the correct firewall ports are open before attempting to start the WAS clusters. • The ordering relationships should look like the example below: • Figure 2: Figure caption style Save the pattern • Click the Diagram tab near the top left of the pattern builder window. • Click the Save button near the top left of the pattern builder window.
  • 15. • Wait until "The pattern is saved" appears near the top of the pattern builder window. • Close the pattern builder tab to return to the workload console (or just switch back to the workload console tab.) Deploy the pattern • If it is not already selected, navigate to Patterns > Virtual Systems and select your pattern. • Click the Deploy link near the top right of the window. This will open the deployment panel in a new tab. • Ensure that the environment profile you would like to use is selected in the "Environment pro- file" menu in the left-side panel. • Notice that the pattern-level attributes that you entered in the pattern builder are already popu- lated on the right-side panel. • Click Continue to distribute. • • Figure 1 Figure caption style • If you are using neither block storage volumes nor multi-target deployment, you do not need to do anything on this deployment panel.
  • 16. • If you are using an externally-managed environment profile that is associated with multiple systems or multiple cloud groups, you can use this panel to choose how your virtual machine instances will be distributed among them. • If you built your pattern to use block storage volumes for the DB2 data and instance volumes, use this panel to map those volumes to actual storage volumes. o Hover your cursor over the Database Node VM, highlighted by the blue dot. Figure 1 Figure caption style o Click the pencil icon to edit the Storage configuration section. o Map the volume that you created for the DB2 instance to /myinst1 o Expand the "Defaul block storage - /db2data" section o Map the volume that you created for the DB2 data to /db2data
  • 17. o Note: The DB2 software component will attempt to create an instance on the /myinst1 volume, and the CreateDB_OLTP script package will attempt to create a database on the /db2data volume, so both of these volumes must be new volumes not previously used for DB2 deployments. o If you have not created these volumes in advance, and have sufficient permissions, you can use the "Create new" radio buttons to create them now. Figure 1 Figure caption style
  • 18. o Click OK. o • Click Deploy. • A message will be displayed that your instance in launching. Click the link displayed in the message to check the status of your deployment. The deployment will take at least 20 minutes. • Wait for the pattern to deploy. The final message in the "History" area will show that "Script package Install Daytrader (static cluster) on virtual machine <Dmgr_node_name> completed successfully." You will also see that the icon next to the instance name will have changed from the hourglass icon to the green "started" icon. Test the deployed application • Locate the web server IP address by finding the IHSNode part in the "Virtual Machine per- spective" section of the instance panel. • Copy the IP address listed in the "IHSNode" row and the "Public IP address" column (referred to below as <WEB_SERVER_IP> • Open a new tab or window in your web browser and navigate to http://<WEB_SERVER_IP>/daytrader • Your browser will display the "Daytrader performance benchmarking" overview page. • Click the Configuration tab. • Click the (Re-)populate Daytrader Database link to add some sample data to the database. A new tab will open, and the database will be populated with quotes and users • Wait for the following message to display: "DayTrader Database Built - 500users createdCur- rent DayTrader Configuration", then close the tab and return to the DayTrader configuration page. • Click the Trading & Portfolios tab. • Click the Log in button (the sample username and password are already populated.) • Use the links to get quotes, buy shares, or sell shares. • You have verified that the application has been installed correctly, that the application servers has been started, and the web server, application servers, and database servers have been con- figured correctly to communicate with each other.
  • 19. Figure 1 Figure caption style