All Products
Search
Document Center

SchedulerX:Create resources

Last Updated:Oct 11, 2024

This topic describes how to create resources related to SchedulerX, including namespaces, applications, jobs, and workflows.

Prerequisites

SchedulerX is activated. For more information, see Activate SchedulerX.

Note

If you want to divide your business into multiple units or manage different resources separately, you can create namespaces before you create applications in the SchedulerX console. For more information, see Create a namespace.

Overview

You can perform the following step to create resources related to SchedulerX:

  1. Create an application: Organize related jobs and services in the same application. Schedule jobs and allocate resources to ensure that jobs can run as expected in the required environment. This facilitates job management and monitoring.

Background information

SchedulerX资源示意

Resource

Description

Scenario

Namespace

A namespace is used to isolate resources and services in a specific region.

If you want to enhance the security of your resources, you can create namespaces.

Application

An application is associated with a namespace. One or more workers are associated with an application.

You can use the GroupId parameter to associate applications with namespaces.

Job

Jobs are scheduled by SchedulerX. A job contains a code snippet. Each job belongs to an application.

Jobs are the smallest schedulable units. SchedulerX periodically schedules jobs.

Workflow

A workflow is used to orchestrate multiple jobs. Each workflow belongs to an application.

You can use workflows to orchestrate jobs and pass data from upstream jobs to downstream jobs.

Optional. Create a namespace

  1. Log on to the SchedulerX console and select a region.

  2. In the left-side navigation pane, click Namespace. On the page that appears, click CreateNamespace.

  3. In the CreateNamespace panel, specify the Name parameter and click OK.

    Important

    Make sure that resources are created in the correct region and that resource information is valid.

  4. Verify the information.

    Refresh the page and select the specified region. Then, view the information about the created namespace.

Step 1: Create an application

1.1 Basic configuration

  1. Log on to the SchedulerX console and select a region.

  2. In the left-side navigation pane, click Application Management. Select a namespace and click Create application. Specify the Application Name and Application ID parameters, select a value for app type, configure Advanced Configuration based on your business requirements, and then click Next Step.

    image

    Important

    Make sure that resources are created in the correct region and namespace and that resource information is valid.

    Parameter

    Description

    Default value

    Application Name

    Specify a name for the application.

    N/A

    Application ID

    Specify an ID for the application. The Application ID is also the ID of a job group after the application is connected to SchedulerX. Make sure that the application ID is unique in a namespace. Otherwise, the application fails to be created. You can use the value of the Application Name parameter as the application ID.

    N/A

    app type

    • general app: Select this option if you do not want to deploy the application in a Kubernetes cluster or do not require Kubernetes jobs.

    • k8s App: Select this option if you want to deploy the application in a Kubernetes environment and require Kubernetes jobs.

    general app

    Release

    Select a version based on your business requirements.

    Professional Edition

    Remote Log Server

    If you enable this feature, add a Log4j or Logback configuration. Then, you can view the scheduling logs of jobs, including distributed jobs, in the console for troubleshooting.

    Disabled

    load5

    The value cannot be greater than the number of CPU cores available on the worker node where the agent is deployed.

    0

    Memory usage

    If the average memory usage within the previous five minutes exceeds the threshold that is specified by this parameter, the instance is considered busy.

    90%

    Disk Usage

    If the disk usage exceeds the threshold that is specified by this parameter, the instance is considered busy.

    95%

    Whether to trigger a busy machine

    Specify whether to continue to trigger job execution when the worker is busy.

    Enabled

    Advanced Configuration

    Maximum number of tasks

    Specify the maximum number of jobs that are supported by the application.

    1000

    Automatic expansion

    Specify whether to enable automatic expansion. If you enable this feature, you must specify the Number of global tasks parameter.

    Disabled

    Flow Control

    Specify whether to enable traffic throttling. If you enable this feature, you must specify the Number of concurrent task instances parameter.

    Disabled

    Calendar

    If you set this parameter to Specify calendar, you can select Financial day or Workday from the drop-down list.

    • A financial day refers to a trading day for financial business.

    • A workday refers to a day of normal work or operations for a society, organization, or individual.

    0

1.2 Notification configuration

  1. In the Notification configuration step, specify the Notification channel and Notify contact parameters.

    • Valid values for the Notification channel parameter are SMS, Mail, webhook, and Telephone.

      For more information about how to configure a webhook, see the Configure a webhook section of the Application management topic.

    • Valid values for the Notify contact parameter are Contact group and Contact.

      • Contact group

        Add a contact group. All contacts in the contact group can receive notifications. For more information about how to create a contact group, see the Create a notification contact and a notification contact group section of the Notification contacts and notification contact groups topic.

      • Contact

        1. Add contacts to receive notifications. You can add multiple contacts at a time. If you have not created any contact, click Add contact and then click Go to create a contact from the drop-down list.

        image

        1. On the page that appears, click New contact and specify the contact information.

        image

        Parameter

        Description

        Notification channel

        Valid values: SMS, Mail, webhook, and Telephone.

        Mail

        Enter the email address of the contact.

        Webhook

        • Enter the webhook URL that you want to use. WeCom, Lark, and DingTalk are supported. In addition, you can specify multiple webhook robots at a time. Separate multiple robot links with commas (,).

        • If you use the DingTalk chatbot, you must add the keyword SchedulerX (case-sensitive). Otherwise, the alert information cannot be received.

        • For more information about how to obtain a webhook, see DingTalk development document, WeCom development documentation, and Lark development documentation.

        Mobile phone number

        Enter the mobile phone number of the contact.

  2. Verify the information.

    Refresh the page and select the specified region and namespace. Then, view the information about the created application.

FAQ

References

For more information about the terms of SchedulerX, see Terms.