You can use a predefined template to deploy MobileFirst Server on
clusters of WebSphere® Application Server Network Deployment servers. This
application pattern template does not support token licensing.
Before you begin
This procedure involves uploading
certain artifacts to IBM® PureApplication® System
such as the required application and adapter. Before you begin, ensure
that the artifacts are available for upload.
If you are running the System Monitoring
for WebSphere Application Server shared
service, the MobileFirst runtime
environment might fail to start correctly when you deploy the pattern.
If possible, stop the shared service before you continue with this
procedure. If you cannot stop the shared service, you might need to
restart the IBM MobileFirst™ Platform runtime
from the WebSphere Application Server administrative
console to fix the problem. For more information, see MobileFirst runtime synchronization limitation with WebSphere Application Server Network Deployment.
Important token licensing restriction: This
pattern template does not support token licensing. You must be using
perpetual licensing when you deploy patterns based on the MobileFirst
Platform (WAS ND) pattern template.
About this task
Note: Some
parameters of script packages in the template are configured with
recommended values and are not covered in this topic. For fine-tuning
purposes, see more information about all the parameters of script
packages in Script packages for MobileFirst Server.
For
more information about the composition and configuration options of
the predefined template that is used in this procedure, see MobileFirst Platform (WAS ND) template.
Procedure
- Create a pattern from the predefined template:
- In the IBM PureApplication System
dashboard, click . The Virtual
System Patterns page opens.
- On the Virtual System Patterns page,
click Create New, and then in the pop-up window,
select MobileFirst Platform (WAS ND) from the
list of predefined templates. If the name is only partially
visible due to its length, you can confirm that the correct template
is selected by viewing its description on the More information tab.
- In the Name field, provide a
name for the pattern.
- In the Version field, specify
the version number of the pattern.
- Click Start Building.
- Mandatory for AIX®: In IBM PureApplication System
running on Power®, the MobileFirst
Platform DB node needs to use the AIX-specific add-on component "Default AIX add disk" to replace the "Default
add disk" component in the template to support the jfs2 file
system:
- In the Pattern Builder, select the MobileFirst
Platform DB node.
- Click the Add a Component Add-on button
(the button is visible above the component box when you hover the
cursor over the MobileFirst Platform DB node).
- From the Add Add-ons list, select Default
AIX add disk. The component is added as the lowest component
of the MobileFirst Platform DB node.
- Select the Default AIX add disk component
and specify the following attributes:
- DISK_SIZE_GB
- Storage size (measured in GB) to be extended to the DB server.
Example value: 10.
- FILESYSTEM_TYPE
- Supported file system in AIX.
Default value: jfs2.
- MOUNT_POINT
- Align with the attribute Mount point for instance owner in
the Database Server component in the MobileFirst Platform DB node.
Example value: /dbinst.
- VOLUME_GROUP
- Example value: group1. Contact your IBM PureApplication System administrator
for the correct value.
- In the MobileFirst Platform DB node, select the Default
add disk component, and then click the X button
to delete it.
- Save the pattern.
- Optional: Configure MobileFirst Server administration. You can skip this step if you want to specify the user credential
with MobileFirst Server administration
privilege later during the pattern deployment configuration phase
in step 9.
To specify it now, complete these steps:
- In the DmgrNode node, click the MFP Server
Administration component. The properties
of the selected component are displayed next to the canvas.
- Next to the admin_user and admin_password fields,
click the Delete button to clear their pattern
level parameter settings.
- In the admin_user and admin_password fields,
specify the administration user name and password.
A default administration account for MobileFirst Server is
created during pattern deployment.
- Optional: Configure MobileFirst Server runtime
deployment. You can skip this step if you want to specify
the context root name for the runtime later during the pattern deployment
configuration phase in step 9.
To specify the context root name now, complete these steps:
- In the DmgrNode node, click the MFP Server
Runtime Deployment component. The properties
of the selected component are displayed next to the canvas.
- Next to the runtime_contextRoot field,
click the Delete button to clear the pattern
level parameter setting.
- In the runtime_contextRoot field,
specify the runtime context root name. The context root name must
start with a forward slash (/). For
example, /HelloWorld.
- Optional: Adjust the number of application
server nodes in your WebSphere Application Server Network Deployment clusters
for the MobileFirst Administration
component and the MobileFirst runtime
environment.
By default, the Administration component
and runtime environment each have two application server nodes in
their respective clusters.
- In the DmgrNode node, click the MFP Server
Administration component. The properties of the component
are displayed next to the canvas.
- In the NUMBER_OF_CLUSTERMEMBERS field,
specify the number of application server nodes that you want in your WebSphere Application Server Network Deployment cluster
for the MobileFirst Administration
component.
- In the DmgrNode node, click the MFP Server
Runtime Deployment component. The properties of the component
are displayed next to the canvas.
- In the NUMBER_OF_CLUSTERMEMBERS field,
specify the number of application server nodes that you want in your WebSphere Application Server Network Deployment cluster
for the MobileFirst runtime
environment.
- In the CustomNode node, click
the Base Scaling Policy component.
- Adjust the Number of Instances value
to account for the total number of application server nodes that you
entered in the NUMBER_OF_CLUSTERMEMBERS field
for each component.
The minimum value for Number
of Instances is the total number of server nodes for the MobileFirst Administration
component and the MobileFirst runtime
environments.
For example, the default value
for Number of Instances is 4 for
the default topology with two nodes for the administration component
and two nodes for the runtime environment. If you change NUMBER_OF_CLUSTERMEMBERS values
for the administration component to 3 and for
the runtime environment to 5, the minimum value
for Number of Instances is 8.
- Upload application and
adapter:
Important: When you specify the target
path for applications and adapters, make sure all the applications
and adapters are placed in the same directory. For example, if one
target path is /opt/tmp/deploy/HelloWorld-common.wlapp,
all the other target paths should be /opt/tmp/deploy/*.
- In the DmgrNode node, click the MFP Application or MFP
Adapter component. The properties of
the selected component are displayed next to the canvas.
- In the Additional file field,
click the Browse button to locate and upload
the application or adapter artifact.
- In the Target path field,
specify the full path for storing the artifact, including its file
name. For example, /opt/tmp/deploy/HelloWorld-common.wlapp.
- If no application or adapter is to be deployed in the
pattern, remove the relevant component by clicking the X button
inside it. To get an empty MobileFirst Operations Console deployed
without any app or adapter installed, remove the MFP Server Application
Adapter Deployment component by clicking the X button
inside it.
- Optional: Add
more application or adapter artifacts for deployment:
- From the COMPONENTS toolbar,
expand Software Components, and then drag and
drop an Additional file component onto the
DmgrNode node in the canvas. Rename it MobileFirst App_X or MobileFirst
Adatper_X (where X stands
for a unique number for differentiation).
- Hover the cursor over the newly added App or Adapter
component, and then click the Move Up and Move
Down buttons to adjust its sequence in the node. Make
sure that it is placed after the MFP Runtime Deployment component
but before the MFP Server Application Adapter Deployment component.
- Click the newly added application or adapter component.
The properties of the selected component are displayed next to the
canvas.
- In the Additional file field,
click the Browse button to locate and upload
the application or adapter artifact.
- In the Target path field,
specify the full path for storing the artifact, including its file
name. For example, /opt/tmp/deploy/HelloWorld-common.wlapp.
Repeat this step if you want to add more applications and
adapters for deployment.
- Optional: Configure
application and adapter deployment to MobileFirst Server. You can skip this step if you want to specify the user credential
with deployment privilege later during the pattern deployment configuration
phase in step 9.
If you specified the default administrative user credential in step 3,
you can now specify the deployer user, which must align with the administration
user credential:
- In the DmgrNode node, select the MFP Server
Application Adapter Deployment component. The
properties of the selected component are displayed next to the canvas.
- Find the parameters that are named deployer_user and deployer_password,
and then click the adjacent Delete buttons
to clear the pattern level parameter settings.
- In the deployer_user and deployer_password fields,
specify the user name and password.
- Configure and launch the pattern
deployment:
- In the IBM PureApplication System
dashboard, click .
- On the Virtual System Patterns page,
use the Search field to find the pattern you
created, and then select the pattern.
- In the toolbar above the panel that displays detailed
information about the pattern, click the Deploy button.
- In the Deploy Pattern window, in
the Configure panel, select the correct environment
profile from the Environment Profile list,
and provide other IBM PureApplication System
environment parameters. To obtain the correct information, consult
your IBM PureApplication system administrator.
- In the middle column, click Pattern attributes to
display attributes such as user names and passwords.
Supply
the following information in the fields provided:
- WebSphere administrative
user name
- Administrative user ID for the WebSphere administrative
console login. Default value: virtuser.
- WebSphere administrative
password
- Administrative user password for the WebSphere administrative console login.
Default value: passw0rd.
- runtime_contextRoot_list
- Context root names of the MobileFirst Server runtimes in case
multiple runtimes exist. Use a semicolon (;)
to separate each runtime context root; for example, HelloMobileFirst;HelloWorld
Important: This value must align with the context root specified
in the MobileFirst Platform Server Runtime Deployment node that you
set in the
runtime_contextRoot field (either
earlier in step
4 or
later in this step); otherwise, IBM HTTP
Server cannot correctly route requests that contain the runtime context
root.
- admin_user
- Not visible if configured in step 3.
Create a default MobileFirst Server administrator
account. Default value: demo.
- admin_password
- Not visible if configured in step 3.
Default admin account password. Default value: demo.
- runtime_contextRoot
- Not visible if configured in step 4.
Context root name for the MobileFirst Server runtime.
The name must start with "/".
- deployer_user
- Not visible if configured in step 8.
User name for the account with deployment privilege. If an external
LDAP server is not configured, you must enter the same value as was
specified when you create the default administrative user for the
administration service, because in this case, the only authorized
user for app and adapter deployment is the default administrative
user.
- deployer_password
- Not visible if configured in step 8.
User password for the user with deployment privilege.
- MFP VMs Password(root)
- Root password for the DmgrNode, CustomNode, IHSNode, and MobileFirst
Platform DB nodes. Default value: passw0rd.
- MFP VMs Password(virtuser)
-
Password for the virtuser user of the DmgrNode, CustomNode,
IHSNode and MobileFirst Platform DB nodes. Default value: passw0rd.
- Open firewall ports for WAS
- The WebSphere Application Server nodes
that are deployed in the CustomNode VM nodes require open firewall
ports to connect to the database server and the LDAP server (if configured
for LDAP). If you need to specify multiple port numbers, separate
the port numbers with a semicolon (;). For
example, 50000;636The default value is 50000 (the
default port for DB2® server).
Important restriction: When
you set these attrbutes, do not change the following attributes in
the
DmgrNode or
CustomNode sections:
- Cell name
- Node name
- Profile name
If you change any of these attributes, your pattern deployment
will fail.
- Click Quick Deploy to launch
your pattern deployment. After a few seconds, a message is displayed
to indicate that the pattern started to launch. You can click the
URL provided in the message to track your pattern deployment status
or go to open the Virtual
System Instances page and search for your pattern there.
- Access the MobileFirst Operations Console:
- Click to open
the Virtual System Instances page and search
for your pattern there. Make sure that it is in "Running" state.
- Select the pattern name and expand the Virtual
machine perspective option in the panel that displays
details of the selected instance.
- Find the IHS Server VM that has a name similar to IHS_Server.* and
make a note of its Public IP address: you need this information in
the following step.
- In the browser, open the MobileFirst Operations Console with
one of the following URLs:
- http://{IHS Server VM Public IP}:80/mfpconsole
- https://{IHS Server VM Public IP}:443/mfpconsole
- Log in to the Console with admin user and password that
you specified in step 3 or
step 9.
If the console does not display
the MobileFirst runtimes,
restart the IBM
MobileFirst Platform runtime
node from the WebSphere Application Server administrative
console. For instructions about restarting the runtime node from the
administrative console, see Restarting the IBM MobileFirst Platform runtime from the WebSphere Application Server administrative console.