Create resources
Before you use SchedulerX, you must create the required resources. This topic describes how to create microservices namespaces, applications, tasks, and workflows.
Background information

Resource |
Description |
Scenarios |
Namespace |
A namespace isolates resources and services in a specific region. |
Create a namespace if your resources require a high level of security. |
Application |
In a specific namespace, you can attach to an application and associate with a group of machines. |
Use the |
Task |
A task belongs to an application and is attached to a code snippet to perform task scheduling. |
A task is the smallest unit that SchedulerX can schedule. You can use tasks to perform periodic scheduling. |
Workflow |
A workflow belongs to an application and is used to orchestrate task dependencies. |
A workflow is an encapsulation in SchedulerX for orchestrating task dependencies. It supports passing data between upstream and downstream tasks. |
(Optional) Create a microservices namespace
-
Log on to the EDAS consoleEDAS console.
- In the navigation pane on the left, choose .
- In the upper-right corner of the Microservices Namespace page, click Create Microservices Namespace.
- In the Create Microservices Namespace dialog box, configure the parameters for the microservices namespace, and then click Create.
Configuration Item Description Microservices Namespace Enter a name for the microservices namespace. Microservices Namespace ID Enter a custom string of letters or digits to create an ID for the microservices namespace. Registry and Configuration Center - MSE Nacos: The Alibaba Cloud Microservices Engine (MSE) Nacos engine that you purchased. It integrates seamlessly with EDAS to provide service registration and configuration management.
- EDAS Registry and Configuration Center: A free service registry and configuration center provided by EDAS. If your application has high requirements for performance and stability, use MSE Nacos as the service registry and configuration center.
MSE Nacos Instance A Nacos instance created in MSE. For more information, see Create an MSE Nacos instance. Region The region to which the microservices namespace belongs. This parameter cannot be changed. Allow Remote Debugging To connect your device to the cloud for your application, manually enable Allow Remote Debugging. For more information about device-cloud connection, see Introduction to device-cloud connection. Description Enter a description for the microservices namespace.
Create an application
-
Log on to the EDAS consoleEDAS console.
-
In the top navigation bar, select a region.
In the navigation pane on the left, choose Application Management > Application List, select the target namespace, and then click Create Application.
On the Basic Configuration page of the wizard, enter an Application Name and Application ID, select an Application Type, configure advanced settings as required, and then click Next.
Configuration Item
Description
Default Value
Application Name
Enter a custom name for the application.
None
Application ID
The Application ID is the GroupID used for application access. The ID must be unique within the namespace. Otherwise, the application fails to be created. The application ID can be the same as the Application Name.
None
Application Type
Normal application: The application is not deployed in a Kubernetes cluster, or you do not require Kubernetes tasks.
K8s application: The application is deployed in a Kubernetes cluster, and you require Kubernetes tasks.
Normal application
Edition
Select an edition as needed. For a comparison of editions, see Edition comparison.
Professional Edition
Simple Log Service
If you enable this feature, add a Log4j or Logback configuration. Then, you can view the service logs of each task scheduling (including distributed tasks) in the console to troubleshoot issues.
shutdown
load5
The value cannot exceed the number of available CPU cores on the client machine.
0
Memory Usage
The average memory usage of the process in the last 5 minutes cannot be greater than this threshold. Otherwise, the client machine is considered busy.
90%
Disk Usage
The disk usage cannot be greater than this value. Otherwise, the client machine is considered unhealthy and busy.
95%
Busy Machine Trigger
Specifies whether to continue to trigger the client for execution when the machine is busy.
Open
Advanced Configuration
Maximum Number of Tasks
The maximum number of jobs that a group can support.
1000
Auto Scale-out
Specifies whether to enable auto scale-out. If you enable this feature, you must set Global Task Count.
shutdown
Throttling
Specifies whether to enable throttling. If you enable this feature, you must set Task Instance Concurrency.
Shutdown
Task Instance Concurrency
The maximum number of task instances that can run concurrently in an application. Task instances that exceed this limit are not discarded. They are placed in a queue to wait for execution.
0
On the Notification Configuration page of the wizard, enter the required information, select a Notification Channel, and set a Contact. You can set contacts using a contact group or by adding custom contacts.
Contact group
All contacts in the contact group receive notifications. For more information, see Create a notification contact or contact group.
Custom
Add contacts individually. To add multiple contacts, click Add Contact and enter the contact information.
Configuration Item
Description
Notification Channel
The supported channels are Text Message, Email, Webhook, and Phone.
Nickname
Enter a custom nickname for the notification contact.
Email
Enter the email address of the notification contact.
Webhook
WeCom, Lark, and DingTalk are supported. You can also configure multiple webhook bots at the same time. Separate the bot URLs with commas (,).
You must add the keyword "SchedulerX" (case-sensitive) to the DingTalk bot. Otherwise, you cannot receive alert information.
To obtain a webhook, see the DingTalk developer document, WeCom developer document, and Lark developer document.
Mobile Phone Number
Enter the mobile phone number of the contact.
After the application is created, the application list page automatically refreshes.
ImportantApplication ID: The configuration item required for client initialization. It is the unique identifier of a group.
Application Key: Required for SDK requests for authentication. Do not share this key.