Creating a Flink Engine Endpoint
Scenarios
Before submitting a Flink job, you must create a Flink engine endpoint. This endpoint serves as the primary entry point for establishing a connection with the AI DataLake engine. A Flink engine endpoint also serves as the entry point for compute resources. Through this endpoint, you can interact with the AI DataLake engine to submit data processing and analysis tasks.
After creating an endpoint, you can use it to create and run Flink jobs, such as executing Flink SQL queries, running Flink applications, or processing real-time data streams. To create an endpoint, you must configure parameters such as the endpoint details and compute resource allocation mode. Once configuration is complete, the system automatically allocates the required compute resources. You can then use the Flink engine to process large-scale data in unified batch and stream modes.
To implement endpoint security isolation, we recommend deploying endpoints across different resource pools or workspaces. This establishes security boundaries through resource pool- or workspace-level isolation.
This section describes how to create a Flink endpoint.
Creating a FlinkJob Endpoint
- Log in to the AI DataLake console.
- In the upper left corner of the page, select the target workspace.
- In the left navigation pane, choose Engine Endpoints > Flink. The Flink engine endpoint list appears.
- Click Create Endpoint in the upper right corner of the page and configure the endpoint settings.
- Configure the basic information for the endpoint.
Table 1 Basic endpoint information Parameter
Description
Endpoint Type
Set the endpoint type to FlinkJob.
Endpoint Name
The endpoint name.
You cannot change the endpoint name after creation. It is a unique identifier within the system and is used in API calls and CLI commands.
Naming rules:
- The name can contain only lowercase letters, digits, and hyphens (-), and must start with a letter and end with a letter or digit.
- The name can contain a maximum of 63 characters.
Example: flink-endpoint-001 and my-flink-job
Endpoint Display Name
The endpoint display name. You can modify the display name after endpoint creation.
The endpoint display name appears on the console to help users identify the endpoint.
Naming rules:
- The name can contain only letters, digits, and hyphens (-).
- The name can contain a maximum of 63 characters.
Example: Flink engine in the production environment and endpoint dedicated to data analysts
Add Description
Enter a description to specify the purpose and background of the endpoint, helping other users understand its application scenarios.
Add Tag
Configure tags to classify, identify, and manage endpoints. For details about tag management, see Managing AI DataLake Tags.
- Configure an image.
An image defines the runtime environment for an endpoint or job. FlinkJob endpoints support both built-in and custom images. Click the image selection box. On the Built-in Images or Custom Images tab, click an image name, select an image version, and then click OK.
If the existing built-in images do not meet your requirements, you can create and register a custom image by referring to Custom Images, and then select it here.
Custom images allow you to modify the container runtime environment of jobs, thereby enhancing job functionality and performance.
Creating an image snapshot is recommended to speed up image loading. For details, see Image Acceleration.- An image snapshot caches an image version locally. Once created, the snapshot reuses cached image data directly during container startup, eliminating the need to pull the image from the repository. This reduces image pull and container startup times, boosting job execution efficiency.
- If an image snapshot exists for the selected image version, the snapshot is automatically associated when you select the image. When the endpoint container starts, it automatically uses the snapshot to create resources, requiring no additional manual steps.
- Configure the resource settings for the endpoint.
Table 2 Flink endpoint resource settings Parameter
Description
Resource Allocation
Select a resource allocation mode.
- Reserved: Uses reserved resource pools to provide exclusive resources. This mode is ideal for stable, continuous workloads, such as production projects and critical tasks.
- Hybrid: Provides baseline stability and automatic scaling. Reserved resources are used first, and auto scaling is triggered automatically during peak hours. This mode is best for workloads with predictable fluctuations.
- On-demand: Charges you based on the actual time taken to execute each task. No costs are incurred when no tasks are running. This mode is well-suited for short-term or ad-hoc tasks, including development, testing, and temporary projects.
CAUTION:If the resource allocation mode is set to On-demand and no network exists in the workspace, you must create a network and select it for the endpoint. Each workspace supports only one network. For details about creating a network, see Creating a Network.
Compute Resource Pool
After selecting Reserved or Hybrid, select a compute resource pool. You can click Buy Compute Resource to purchase a compute resource pool.
Specifications
After selecting compute resources, set the maximum value for Resource Quota (Min-Max). The requirements for the maximum value are as follows:
- Reserved mode: The maximum value for Resource Quota (Min-Max) cannot exceed the total capacity of the selected compute resource pool. If you need a higher quota, increase the capacity of the resource pool first.
- Hybrid mode: The maximum value for Resource Quota (Min-Max) can exceed the total capacity of the selected compute resource pool. Any excess will be automatically scheduled to elastic resources.
Maximum Resource Quota
When selecting the on-demand resource allocation mode, you must configure the maximum resource quota. This sets an upper limit on elastic resource consumption, preventing uncontrolled resource expansion due to sudden traffic surges and avoiding the exhaustion of cluster compute capacity.
- (Optional) Configure Flink parameters.
Specify Flink job submission properties in a key=value format.
- Key: Enter the name of the configuration parameter required by the Flink job.
- Value: Enter the value for the corresponding key.
- Configure the storage settings for the endpoint.
Table 3 Storage settings Parameter
Description
Temporary File Storage
Select an existing parallel file system from the drop-down list. If no parallel file system is available, click Create OBS parallel file system to create one. For details, see Creating a Parallel File System.
Parallel file systems store job logs, checkpoints, savepoints, HA metadata, and runtime scaling status data. Files are not automatically deleted after a job completes. We recommend manually clearing resources in the parallel file system periodically or configuring an OBS lifecycle rule to delete outdated storage files automatically, preventing unnecessary storage usage and extra fees. For example, you can use a lifecycle rule to set the retention period (we recommend at least 7 days) by directory. For details, see Creating a Lifecycle Rule.
Agency
Configure an IAM agency to grant read and write access to job logs, temporary data, checkpoints, savepoints, and HA data.
Select an existing agency from the drop-down list. The agency cannot be changed after the endpoint is created. If no agency is available, click Create agency to create one. For details, see Creating a Custom Agency.
- Job Agency Settings
Agency-assigned endpoint permissions are automatically converted to credentials and updated in the Flink cluster at runtime. You can use agency credentials in the Flink cluster to access the required services. Before using the Flink engine to run jobs, you must create the required agency on the IAM console and select it here. For details, see Creating a Custom Agency.
- Configure the AOM monitoring integration as needed.
Table 4 Parameters for AOM monitoring integration Parameter
Description
Monitor AOM
Select Monitor AOM if needed.
After AOM monitoring is enabled, application metrics are reported to AOM for centralized management. AOM enables real-time metric collection, custom monitoring, alarm configuration, and O&M data visualization, providing complete visibility into service status. For details about the metrics and their meanings, see Resource and Job Metrics for Flink Endpoints.
Prometheus Instance
Select a Prometheus instance from the drop-down list. If no instance is available, click Create Instance.
- Configure the network settings.
If the resource allocation mode is set to On-demand and no network exists in the workspace, you must create a network and select it for the endpoint. Each workspace supports only one network. For details about creating a network, see Creating a Network.
- After completing the configuration, click Create Now. The system will begin creating the endpoint.
Once the endpoint is created, you can view its details in the endpoint list. After the status changes to Running, you can submit jobs to the endpoint.
Follow-up Operations
After creating a Flink endpoint, you can perform the following operations as needed:
- View, modify, and delete the endpoint. For details, see Managing Flink Endpoints.
- Connect to the endpoint and submit jobs. For details, see Connecting to a Flink Endpoint and Submitting Jobs.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot