Manage scheduling clusters

Updated at:

Dataphin connects to different scheduling clusters and centrally manages their schedulable resources. This allows tenants to use resources from different clusters to create custom resource groups, addressing issues like cross-region data transfer and resource isolation.

Background

image

In Dataphin, each tenant has a default scheduling cluster, which is the Dataphin cluster. Additionally, you can register custom clusters under a metacenter tenant for task scheduling and specify which tenants can use them. This feature resolves challenges in cross-region data transfer, such as the low security, high bandwidth costs, and poor efficiency of transferring data over the public internet.

For example, imagine your Dataphin instance is deployed in an on-premises data center, and you need to integrate data from a cloud database A to another cloud database B located in the same region. You can start by creating a Kubernetes cluster by using Container Service for Kubernetes (ACK) in the cloud and dedicating specific machines for Dataphin tasks. Then, you register this cluster in Dataphin and create a corresponding custom resource group. Assigning the integration task to this resource group ensures data transfer occurs within the same region, eliminating data exchange with the Dataphin cluster.

Limitations

  • Currently, only customers with deployments based on the latest architecture can use the scheduling cluster management feature. For details, contact the product O&M team.

  • In addition to the default cluster (the Dataphin cluster), you can register a maximum of 5 clusters.

Permissions

Within a metacenter tenant, only global roles with the Manage Resource Configurations permission can manage scheduling clusters. Global roles with the View System Settings permission can view system settings.

Manage scheduling clusters

  1. In the top navigation bar of the Dataphin homepage, choose Admin Center > System Settings.

  2. In the left-side navigation pane, choose Tenant Settings > Resource Settings.

  3. On the Resource Settings page, click the Scheduling Cluster Management tab. By default, the scheduling cluster list displays clusters available to the current tenant, including the default cluster.

    The scheduling cluster list shows basic information for each scheduling cluster, including Scheduling Cluster Name/ID, Owner, Total Resources, Status, Description, Associated Tenant, and Last Updated By/At.

    • Total Resources: The total resources of the cluster, not the amount available to the current tenant.

    • Status: The status of a scheduling cluster can be Waiting for Resource Reporting, Waiting Timed Out, Normal, or Abnormal. For more information, see Scheduling cluster statuses.

  4. (Optional) You can filter scheduling clusters by name, owner, or status.

  5. You can perform the following operations on the scheduling clusters in the list.

    Note

    The default scheduling cluster is a system cluster and is view-only.

    Actions

    Description

    Edit

    Click the image.png icon in the Actions column of the desired scheduling cluster. In the Edit Basic Information of Scheduling Cluster dialog box, you can modify the Basic Cluster Information, Metric Collection Configuration, and Real-time Task O&M. For parameter details, see Edit a registered scheduling cluster.

    Cluster Connection Configuration Wizard

    Click the image.png icon in the Actions column of the desired scheduling cluster. In the Cluster Connection Configuration Wizard dialog box, you can view instructions for configuring the connection and authorization for a custom cluster. Only successfully connected clusters can be used to create custom resource groups. For more information, see Configure the cluster connection.

    Delete

    Click the image.png icon in the Actions column to delete a scheduling cluster with no associated custom resource groups.

    Important

    After you delete the cluster, the Agent application deployed on the cluster stops running and cannot be recovered. We recommend contacting the cluster owner to delete the corresponding container (Pod) by running the sh uninstall.sh command.

Edit a registered scheduling cluster

Parameter

Description

Basic Cluster Information/Temporary Workflow Storage

The configuration is the same as when you register a scheduling cluster. For more information, see Register a scheduling cluster.

Metric Collection Configuration

Metric Collection

Collects cluster metric information through the Prometheus HTTP API. This feature is disabled by default. After you enable it, you can view the resource consumption trends for the current cluster on the O&M > Scheduling Resource Dashboard page.

Cluster Type

You can select ACK or Other.

Prometheus HTTP API

The Prometheus HTTP API endpoint.

Authentication Method

If Cluster Type is set to ACK, you can select No Authentication, token authentication, or AccessKey authentication. If Cluster Type is set to Other, you can select No Authentication or token authentication.

If you select token authentication, you must also enter a token. If you select AccessKey authentication, you must also enter an AccessKey ID and AccessKey Secret.

Real-time Task O&M

Real-time Task

Disabled by default. If enabled, the cluster runs real-time tasks that use the Flink on Kubernetes deployment mode.

Flink O&M Domain

Enter the domain name used to access the cluster. This domain serves as the Flink UI address for real-time Flink on Kubernetes tasks running in the registered scheduling cluster.image If you leave this blank, the system defaults to clusterid.${dataphindomain}, where clusterid is the ID of the scheduling cluster and ${dataphindomain} is the domain name of Dataphin. This value is automatically generated after you save the configuration.

Access Protocol

You can select HTTPS or HTTP. HTTPS is selected by default.

Port

Enter a port number from 0 to 65535.

The default port is 443 for HTTPS and 80 for HTTP.

KubeConfig

The authentication configuration file that Dataphin uses to access the Kubernetes cluster. It is used to create and manage real-time tasks in the cluster.

The user configured in the KubeConfig file must be added to the running Namespace specified below and have create, delete, and list permissions for ConfigMaps, Secrets, Pods, Jobs, Deployments, Ingresses, and Services.

Running Namespace

The namespace where real-time tasks run. Make sure that the Namespace you enter here exists in the Kubernetes cluster.

Scheduling cluster statuses

The scheduling cluster status can be Waiting for Resource Reporting, Waiting Timed Out, Normal, or Abnormal. The following table describes each status.

Note

Only clusters in the Normal status can be used to create custom resource groups. If the status of a cluster with a custom resource group changes to Abnormal, that custom resource group also becomes unusable.

Status

Description

Waiting for Resource Reporting

This status indicates that a cluster has just been registered for connection configuration or that Dataphin has not yet received resource information from a configured cluster. For more information, see Configure the cluster connection.

Waiting Timed Out

If Dataphin does not receive resource information from a cluster within 2 hours of registration, its status changes to Waiting Timed Out. In this case, we recommend contacting the cluster owner to confirm whether the Agent application is deployed and if machines are available in the cluster.

Normal

The cluster is successfully registered and configured. Dataphin is consistently receiving resource information from it, and the cluster is operating normally.

Abnormal

If a cluster that was previously in the Normal status stops reporting information for a certain period, its status changes to Abnormal. Check if the cluster's Agent application is running correctly or contact the cluster owner to check for available machines in the cluster.