OpenTP1 Version 7 Operation
OpenTP1 provides sample scenario templates for the scenario for adding a new OpenTP1 node in the Scale Out scenario.
When you execute the OpenTP1_ScenarioScaleout sample scenario template with OpenTP1 installed, a new OpenTP1 environment is created. After creation of the environment, OpenTP1 and a sample user server (basespp) start. By customizing sample scenario templates, you can easily execute Scale Out in a way appropriate for your environment.
This subsection provides an overview of sample scenario templates.
The sample scenario templates perform the processing shown in the following table.
Table 3-40 Processing executed by the sample scenario templates
No. | Processing | Scenario template name | Input scenario variables referenced |
---|---|---|---|
1 | Creating an OpenTP1 directory | OpenTP1_MakeTP1Dir |
|
2 | Setting the OpenTP1 environment | OpenTP1_SetConfig |
|
3 | Setting a node ID | OpenTP1_ChangeNodeID |
|
4 | Registering OpenTP1 | OpenTP1_Deploy |
|
5 | Creating OpenTP1 file systems | OpenTP1_MakeFileSystem |
|
6 | Starting OpenTP1 | OpenTP1_Start |
|
7 | Starting a UAP (sample program) | OpenTP1_StartUAP |
|
See the following for details about each scenario template.
Table 3-41 Paths for the shell files for each OS
Shell file name | OS | |
---|---|---|
UNIX | Windows | |
OpenTP1 directory creation shell file | /BeTRAN/jp1_template/examples/tools/dcjmk_dcdir.sh | OpenTP1-installation-directory\jp1_template\examples\tools\dcjmk_dcdir.bat |
OpenTP1 environment setup shell file | /BeTRAN/jp1_template/examples/tools/dcjset_conf.sh | OpenTP1-installation-directory\jp1_template\examples\tools\dcjset_conf.bat |
OpenTP1 file creation shell file | /BeTRAN/jp1_template/examples/tools/dcj_mkfs.sh | OpenTP1-installation-directory\jp1_template\examples\tools\dcj_mkfs.bat |
To execute a sample scenario template, you register it in JP1/AJS2 - Manager from JP1/AJS2 - Scenario Operation View.
The sample scenario templates are stored in the following location:
/ScenarioLibrary/OpenTP1/TP1_ServerBase/OpenTP1_ScenarioScaleout
To register a sample scenario template, set the input scenario variables listed in the following table.
Table 3-42 Information to be set in the sample scenario templates
Input scenario variable | Description | Example |
---|---|---|
DCDIR | OpenTP1 home directory | /home/user/OpenTP1 |
DCCONFPATH | Directory containing the OpenTP1 definition file | /home/user/OpenTP1/conf |
HOST_NAME#1 | Host name of the OpenTP1 node where the scenario template is to be executed | hostX |
USER_NAME#1 | OpenTP1 user name | user |
GROUP_NAME#1 | OpenTP1 group name | tp1 |
BETRAN_FILE1#2 | Path for an OpenTP1 file system | /home/user/OpenTP1/betranfile1 |
BETRAN_FILE2#2 | Path for an OpenTP1 file system | /home/user/OpenTP1/betranfile2 |
USER_SERVER_NAME | User server name | basespp (fixed in the sample) |
NODE_ID | OpenTP1 node identifier (unique character string of 4 characters for each node) | smpl |
PORT_NUMBER | OpenTP1 name port number | 10000 |
When you execute a scenario created by entering into a sample scenario template the values shown in the table above, an OpenTP1 execution environment is created with the directory configuration shown in the following figure.
Figure 3-42 OpenTP1 directory configuration after the sample scenario templates are executed
By customizing a sample OpenTP1 definition file or shell file, you can easily change the OpenTP1 configuration. You can also store the files customized for your environment and the installation environment settings of OpenTP1 on a master disk, which is created by using DPM, so that you can easily execute Scale Out.
You can customize the following sample files:
See the following for details about how to customize each file.
You can create an SUP or an SPP appropriate for your tasks and store the load module (executable file) in the desired directory.
To customize the system definition of OpenTP1, you need to change the system definition file and the OpenTP1 environment setup shell file.
Table 3-43 Settings in the sample OpenTP1 environment setup shell file
File type | Storage location | Copy destination |
---|---|---|
Load module for a sample program | /BeTRAN/jp1_template/examples/aplib | $DCDIR/aplib |
System definition file | /BeTRAN/jp1_template/examples/conf | $DCCONFPATH |
OpenTP1 file creation shell file | /BeTRAN/jp1_template/examples/tools (file name: dcj_mkfs.sh) | $DCDIR/jp1_template/tools |
Table 3-44 Values set for character string @DCxxxxxx@ in the sample scenario template
File name | Operand name/definition command name | Value set in the system definition file | Value set in the OpenTP1 environment setup shell file#1 |
---|---|---|---|
cdtrn | jnladdpf | @DCbetran@ | ?BETRAN_FILE1? |
env | DCCONFPATH | @DCconfpath@ | $DCCONFPATH |
prc | prcsvpath | @DChomepath@ | $DCDIR |
sts | sts_file_name | @DCbetran@ | ?BETRAN_FILE1? |
@DCbetran2@ | ?BETRAN_FILE2? | ||
sysjnl | jnladdpf | @DCbetran@ | ?BETRAN_FILE1? |
betranrc | node_id#2 | @DCNODE_ID@ | ?NODE_ID? |
name_port | @DCport_number@ | ?PORT_NUMBER? |
The sample scenario template creates the files listed in the following table in the OpenTP1 file systems (/home/user/OpenTP1/betranfile1 and /home/user/OpenTP1/betranfile2) that are set for the input scenario variables BETRAN_FILE1 and BETRAN_FILE2. To change the files to be created, customize the OpenTP1 file creation shell file.
Table 3-45 Files created in the OpenTP1 file systems set for the input scenario variables BETRAN_FILE1 and BETRAN_FILE2
File name | File type |
---|---|
cpdf01#1 | Checkpoint dump file |
cpdf02#1 | |
cpdf03#1 | |
stsfil01#1 | Status file (system A) |
stsfil03#1 | |
jnlf01#1 | System journal file |
jnlf02#1 | |
jnlf03#1 | |
stsfil02#2 | Status file (system B) |
stsfil04#2 |
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.