This topic describes how to create an E-HPC Instant job in the console.
Prerequisites
You have activated the E-HPC Instant service.
You have prepared the application required to run the job.
If the application and version that you need are not in the public application list, or if you want to customize the job computing environment, you can add an image.
You have created a VPC and created a vSwitch.
You have created a security group.
Procedure
Log on to the Jobs page of the E-HPC Instant console.
In the upper-left corner of the top menu bar, select a region.
Click Create Job.
On the Create Job page, configure the following parameters.
Job information
Parameter
Required
Description
Job Name
Yes
Enter a name for the job. The name must meet the following requirements:
The name must be 2 to 64 characters in length.
The name must start with a letter.
The name can contain only letters, digits, and hyphens (-).
Area
Yes
Select the region where the job runs. This choice affects network latency and costs.
Scheduling Policy
Yes
Select a scheduling policy for the job. Currently, only the Standard scheduling policy is supported.
NoteTo use the Economy scheduling policy, submit a ticket to apply for it.
Network and Availability Zone
Yes
After you select a virtual private cloud (VPC) and a vSwitch, the E-HPC Instant service automatically attaches a network interface card (NIC) to the job execution node to ensure network communication with your data storage (NAS).
Security Group
Yes
After you select a security group, the E-HPC Instant service automatically adds the security group to the job execution node.
Single-node Elastic IP Address
No
If you enable this feature, an Elastic IP Address (EIP) is automatically requested for and assigned to the node. This ensures that the node can be accessed over the Internet.
ImportantEnabling an EIP incurs additional fees. Enable Single-node Elastic IP Address only as needed.
Tags
No
Select one or more tags to help with resource searches and cost analysis. For more information, see Tags.
Task Details
Parameter
Required
Description
Computing Environment
Yes
Select the computing environment required to run the job. The options are:
Cloud Server
Container
Application
Yes
Select the application for the job to run. This is the image environment.
Operation Mode
Yes
Select the mode to run the job. The following modes are available:
Batch Job: The node is automatically released after the user command is executed.
Background Service: This mode supports long-running jobs. The node is released only after you manually delete the job.
Pre-processing Script
No
Enter the script command to execute before the job starts.
Execution Command
Conditionally required
The command or script that runs on the job node. This parameter is required when Operation Mode is set to Batch Job.
For a Linux application, the command must start with
#!and be followed by an executable program, such as#!/bin/bash.For a Windows application, the first line of the command must be
[powershell]or[bat].
Number Of Execution Nodes
Yes
Set the total number of nodes required to run the job.
Task Resources
Parameter
Required
Description
Cores Per Node
Yes
Select the number of CPU cores and the memory size for each execution node as needed.
NoteThe ratio of CPU cores to memory size for a single node is fixed. For more information, see Limits.
Memory Per Node
Yes
Storage Space Per Node
Yes
The size of the selected storage resource must be larger than the size of the application image. It must also meet the following requirements:
If the application is a system application, the storage space must be 40 GiB or larger.
If the application is a personal application, the storage space must be 20 GiB or larger.
Access External Storage
Parameter
Description
Mount Directory
Enter the mount directory.
Type
Currently, only General-purpose NAS File System is supported.
File System and Mount Target
Select the ID of the file system and the mount target to mount. Make sure that the file system has available mount targets.
File System Directory
Enter the directory of the file system to mount.
Mount Options
Select a mount protocol.
More Settings
Parameter
Description
Logon Password
To remotely log on to a node, set the Logon Password and Confirm Password.
NoteYou can set a password only when Computing Environment is set to Cloud Server.
Confirm Password
Resource Scheduling Limit
The following scheduling methods are supported:
None: Resources can be scheduled in the specified VPC.
Only In The Specified VSwitch: The created execution nodes are in the specified vSwitch.
After you configure the parameters, click Create Job at the bottom of the page.
After the job is created, it appears in the job list. Normally, the job status changes from Pending to Initializing, then to Running, and finally to Completed.