Overview
An image is a collection of software packages required for running a container, including the operating system, runtime libraries, and applications. Images are stored in the SWR image repository. AI DataLake provides the image management function to centrally manage container images required for running compute engine endpoints. It supports two types of images: built-in images and custom images. The image acceleration capability speeds up the startup of endpoint containers, providing a stable and efficient runtime environment for endpoints and jobs.
Built-in image
Built-in images are container images preset in the AI DataLake system. They provide a basic runtime environment for endpoints across different engine types. Built-in images include the core components and dependencies needed to run an engine. You can use them directly when creating an endpoint without extra configuration. Built-in images are suitable for scenarios where you need to quickly create an endpoint and run jobs. They can also serve as base images for creating custom images.
For details, see Built-in Images.
Custom Images
If built-in images cannot meet the requirements of your job running environment, you can use a Dockerfile to package specific software dependencies, such as custom algorithm libraries, specific Python package versions, and JAR packages, into a custom image based on a built-in image. After pushing the custom image to SoftWare Repository for Container (SWR) and registering it, you can select the custom image when creating an endpoint. Custom images are suitable for scenarios where jobs require specific dependencies, you need to customize the container runtime environment, or you need to standardize and reuse the runtime environment.
For details, see Custom Images.
Image Acceleration
AI DataLake provides the image acceleration feature. It allows you to pull images from SWR, open-source, or self-hosted image repositories in advance, create image snapshots, and cache image data locally. You can create an image snapshot for a built-in or custom image version. When an endpoint container starts, the cached image snapshot can be reused directly, eliminating the need to download the image from the SWR image repository and shortening startup times. Image acceleration is suitable for scenarios that require fast container startup, such as accelerating endpoint startup and quickly launching multiple container instances in auto-scaling scenarios.
For details, see Image Acceleration.
Image Application Scenarios
Images have two application scenarios in AI DataLake:
- When creating an endpoint: Select an image to provide the container image needed to run the endpoint.
Endpoints that support image configuration during endpoint creation: AuraJobV2, RayCluster, SparkSQL, SparkJob, and FlinkJob (AuraJob and RayJob are currently not supported).
- When submitting a job: Specify a built-in or custom image in the job parameters to provide the container image needed to run the job.
Endpoints that support image configuration during job submission: AuraJob, RayJob, SparkJob, and FlinkJob.
Image usage priority:
- When creating an endpoint: The configured endpoint image is used in the endpoint runtime environment and serves as the default runtime environment when you do not specify an image for a job.
- When submitting a job: The job image overrides the endpoint image. If you do not specify an image for the job, the system automatically uses the endpoint image.
An image snapshot is created based on an image version. 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 image resources, requiring no additional manual steps.
For details about endpoint support for built-in images, custom images, and image snapshots, see Table 1.
Supported Images and Image Snapshots
| Endpoint Type | Resource Allocation Mode | Configuring Images During Endpoint Creation | Configuring Images During Job Submission | ||||
|---|---|---|---|---|---|---|---|
| - | - | Built-in image | Custom image | Image snapshot | Built-in image | Custom image | Image snapshot |
| AuraJob | Reserved | Not supported | Not supported | Not supported | Not supported | Supported | Not supported |
| Hybrid | Not supported | Not supported | Not supported | Not supported | Supported | Not supported | |
| AuraJobV2 | Reserved | Supported | Supported | Not supported | Not supported | Not supported | Not supported |
| Hybrid | Supported | Supported | Supported | Not supported | Not supported | Not supported | |
| RayJob | Reserved | Not supported | Not supported | Not supported | Supported | Supported | Supported |
| Hybrid | Not supported | Not supported | Not supported | Supported | Supported | Supported | |
| On-demand | Not supported | Not supported | Not supported | Supported | Supported | Supported | |
| RayCluster | Reserved | Supported | Supported | Not supported | Not supported | Not supported | Not supported |
| SparkSQL | Reserved | Supported | Not supported | Not supported | Not supported | Not supported | Supported |
| Hybrid | Supported | Not supported | Supported | Not supported | Not supported | Supported | |
| On-demand | Supported | Not supported | Supported | Not supported | Not supported | Supported | |
| SparkJob | Reserved | Supported | Supported | Not supported | Supported | Supported | Supported |
| Hybrid | Supported | Supported | Supported | Supported | Supported | Supported | |
| On-demand | Supported | Supported | Supported | Supported | Supported | Supported | |
| FlinkJob | Reserved | Supported | Supported | Not supported | Supported | Supported | Supported |
| Hybrid | Supported | Supported | Supported | Supported | Supported | Supported | |
| On-demand | Supported | Supported | Supported | Supported | Supported | Supported | |
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