All Products
Search
Document Center

Container Service for Kubernetes:Prefill OSS data on demand to high-performance volumes

Last Updated:Aug 29, 2026

Before AI training or data analytics tasks, prefetch massive cold OSS data on demand into high-performance volumes such as CPFS for Lingjun or cloud disks so workloads read at high speed; volumes reclaim automatically after tasks, balancing compute acceleration and cost optimization.

How it works

Feature implementation

This feature uses Kubernetes Volume Populators, managed by ACK's storage-operator. When you create a PVC referencing the OSSVolumePopulator (OSSVP) custom resource, storage-operator intercepts the request and populates data.

Population mode depends on the target volume type:

Mode

Supported storage types

Description

bmcpfs-dataflow
Native data flow mode

CPFS for Lingjun

storage-operator leverages CPFS native data flow to populate data.

This mode uses no cluster compute resources and is more efficient.

image

generic
Generic pod population mode

Other storage types, such as cloud disks or CPFS general-purpose edition

storage-operator creates a temporary pod in the ack-volume-populator namespace to mount the new volume and download the specified OSS data. The pod is deleted after population completes.

This mode consumes cluster compute resources.

image

After population succeeds, PVC status changes from Pending to Bound. Application pods can then mount the PVC and access prefetched data.

Typical scenarios

This feature supports two primary use cases.

Dimension

Scenario 1: Prefetch data to CPFS for Lingjun shared volumes

Scenario 2: Prefetch data to isolated cloud disk volumes

Applicable scenario

High-throughput, read-intensive workloads such as AI model training and inference to overcome OSS access bottlenecks.

Parallel batch or data pipeline tasks that need isolated read-write workspaces to avoid concurrency conflicts and ensure data isolation.

Technical implementation

Use CPFS for Lingjun with bmcpfs-dataflow mode for native data population.

Use dynamically provisioned storage such as cloud disks with generic mode and a temporary pod for data population.

Key characteristics

  • Cost optimization: Uses native acceleration without compute resources. Storage releases immediately after use.

  • Data sharing: Many-to-one access lets multiple GPU tasks share the same prefetched dataset.

  • Data isolation: Each task gets a dedicated volume, avoiding interference. Supports multiple dynamic storage types.

  • Elastic scaling: One-to-one access ties storage lifecycle to the task lifecycle for precise cost control.

Workflow

VolumePopulator core steps are similar across both modes.

image

  1. Enable the VolumePopulator Feature Gate in storage-operator.

    After you enable VolumePopulator, the ack-volume-populator namespace is created by default for temporary PVCs and pods during data prefill.
  2. Grant OSS access permissions for the population task. bmcpfs-dataflow mode requires specific tags on the OSS bucket. generic mode requires RRSA or AccessKey configuration.

  3. Create an OSSVolumePopulator object specifying the OSS bucket path and population mode.

  4. Create a PVC, specify a StorageClass, and reference the OSSVP with dataSourceRef to start data prefill (timing depends on StorageClass volumeBindingMode).

  5. After the PVC is Bound, create workloads (pods, deployments, etc.) that mount it for high-speed data access.

    Data prefilling is one-time during volume creation. Later changes to OSS source data do not sync to the created volume.
  6. After the task ends, delete the PVC. If StorageClass reclaimPolicy is Delete, associated high-performance storage (such as CPFS FileSets or cloud disks) is deleted automatically and billing stops. OSS source data is unaffected.

Prerequisites

  • Cluster runs Kubernetes 1.26 or later with the CSI plugin. This feature requires dynamically provisioned storage.

    To upgrade your cluster, see Manually upgrade a cluster. To migrate from FlexVolume to CSI, see Migrate FlexVolume to CSI using csi-compatible-controller.
  • Upgrade storage-operator to v1.35.1 or later and enable the VolumePopulator Feature Gate.

    If other feature gates are already enabled, use the format: xxxxxx=true,yyyyyy=false,VolumePopulator=true

Scenario 1: Prefetch data to CPFS for Lingjun shared volumes

For read-only, high-throughput model training and inference, use CPFS for Lingjun data flow to prefetch models from OSS on demand so multiple GPU tasks can read at high speed.

Prerequisites

1. Set a specific tag on the OSS bucket

In Object tagging operations, add a tag to your OSS bucket with key cpfs-dataflow and value true.

Do not delete or modify this tag during use—volume creation may fail.

2. Create OSSVolumePopulator (OSSVP)

Create an OSSVolumePopulator in the same namespace as your application and PVC to define the OSS data source.

apiVersion: storage.alibabacloud.com/v1beta1
kind: OSSVolumePopulator
metadata:
  name: qwen3-32b
  # Must be in the same namespace as the application and PVC
  namespace: bmcpfs-dataflow-demo 
spec:
  bucket: <your-bucket-name>
  region: cn-hangzhou
  endpoint: oss-cn-hangzhou-internal.aliyuncs.com
  path: /Qwen3-32B/
  # Dedicated for CPFS for Lingjun volumes, leveraging its data flow capability
  mode: bmcpfs-dataflow
  
  # Optional advanced configurations for bmcpfs-dataflow mode
  # This example recommends default settings. Ignore if no special requirements.
  # bmcpfsDataflow:
    # Maximum data flow throughput (MB/s). Options: 600, 1200, 1500. Default: 600
    # throughput: 1200
    # Enable encrypted transfer. Default: empty (disabled)
    # sourceSecurityType: SSL
    # Data prefill mode. Default: metadataAndData for full prefill.
    # Set to metadata for metadata-only prefill.
    # dataType: metadataAndData

Parameters:

Name

Description

Optional

Default

namespace

OSSVolumePopulator must be in the same namespace as the application and PVC.

No

N/A

bucket

OSS bucket name.

No

N/A

region

OSS region.

No

N/A

endpoint

OSS service endpoint.

No

N/A

path

Path prefix within the OSS bucket, such as /data/.

Yes

/

mode

Operation mode. Options:

  • generic (default): Generic population for any backend dynamic volume (e.g., cloud disks, CPFS general-purpose edition). Creates a temporary pod in the ack-volume-populator namespace to download data, consuming cluster compute resources.

  • bmcpfs-dataflow: High-performance mode for CPFS for Lingjun volumes only. Uses native data flow for higher efficiency without cluster compute resources.

  • auto: Selects the best mode based on target storage type, but usually falls back to generic mode. Specify bmcpfs-dataflow manually if needed.

Yes

auto

bmcpfsDataflow.throughput

Maximum CPFS for Lingjun data flow throughput (MB/s). Valid values: 600, 1200, 1500.

Yes

Same as CPFS for Lingjun data flow default

bmcpfsDataflow.sourceSecurityType

Data transfer security protocol, such as "SSL" for encrypted transfer.

Yes

Encryption disabled

bmcpfsDataflow.dataType

Data type to sync:

  • metadata: Sync file metadata only.

    With metadata-only sync, data is pulled from OSS on first read, which may affect initial access performance.

  • metadataAndData: Sync both metadata and file content.

Yes

metadataAndData

3. Prepare StorageClass and PVC

Create a StorageClass for CPFS for Lingjun, then create a PVC that references the OSSVP with dataSourceRef.

Create StorageClass

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: bmcpfs-dataflow-demo
parameters:
  bmcpfsId: bmcpfs-29000z8xz3xxxxxxxxxxx
  vpcMountTarget: cpfs-29000z8xz3xxxxxxxxxxx-vpc-xxxxxx.cn-wulanchabu.cpfs.aliyuncs.com
  mountpointAutoSwitch: "true"
provisioner: bmcpfsplugin.csi.alibabacloud.com
# Critical: Ensure CPFS FileSet and data are automatically cleaned up after PVC deletion
reclaimPolicy: Delete
# Recommended: Set to Immediate to start data prefill immediately after PVC creation
volumeBindingMode: Immediate

Each dynamic volume from this StorageClass creates a Fileset on the backend CPFS for Lingjun. Create different OSSVP resources, to prefill different OSS datasets into different volumes with the same StorageClass.

Create PVC

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: qwen3-32b
  namespace: bmcpfs-dataflow-demo
spec:
  accessModes:
    - ReadOnlyMany
  dataSourceRef:
    apiGroup: storage.alibabacloud.com
    kind: OSSVolumePopulator
    # Reference the OSSVP name created above
    name: qwen3-32b
  resources:
    requests:
      # Must be at least the size of the OSS data source referenced by OSSVP
      storage: 80Gi
  storageClassName: bmcpfs-dataflow-demo
  volumeMode: Filesystem

Because the StorageClass sets volumeBindingMode: Immediate, storage-operator starts the OSS-to-CPFS for Lingjun data flow immediately after PVC creation.

4. Verify data prefill status

During population, PVC status stays Pending and changes to Bound after completion.

For bmcpfs-dataflow mode, check real-time CPFS for Lingjun data flow progress with this command:

kubectl -n bmcpfs-dataflow-demo describe ossvp qwen3-32b
  • status during population:

      Bmcpfs Dataflow:
        62a4e7ec-fae1-4f11-848f-b57cxxxxxxxx:
          Data Flow Id:       df-29d3ad9e9xxxxxxx
          Data Flow Task Id:  task-2993179xxxxxxxxx
          File Set Id:        fset-2997498xxxxxxxxx
          File System Id:     bmcpfs-29000z8xz3lf5xxxxxxxx
          Progress:           59%
  • status after completion:

    Message:  Populated successfully

5. Create workload and use data

After the PVC is Bound, create a workload that mounts it.

This example uses GPU resources. For verification only, create a CPU pod and use kubectl exec to inspect the data.

Expand to view sample code

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: demo-apply-qwen3-32b
  namespace: bmcpfs-dataflow-demo
spec:
  replicas: 1
  selector:
    matchLabels:
      app: demo-apply-qwen3-32b
  template:
    metadata:
      labels:
        app: demo-apply-qwen3-32b
      # Use ACS HPN instance type to mount CPFS volume
      # alibabacloud.com/compute-class: "gpu-hpn"
    spec:
      # Use ACS HPN instance type to mount CPFS volume
      # nodeSelector: 
      #   alibabacloud.com/node-type: reserved
      # tolerations:
      # - key: "virtual-kubelet.io/provider" 
      #   operator: "Exists"
      #   effect: "NoSchedule"
      volumes:
        - name: model-storage
          persistentVolumeClaim:
            # Specify the created PVC
            claimName: qwen3-32b
        - name: dshm
          emptyDir:
            medium: Memory
            sizeLimit: 15Gi
      containers:
        - command: ["sh", "-c", "python3 -m sglang.launch_server --model-path /models/Qwen3-32B --tp 2"]
          image: registry.cn-beijing.aliyuncs.com/tool-sys/ossfs-public:demo-env-python3.12.7-sglang0.5.5
          name: sglang
          ports:
            - containerPort: 8000
              name: http
          resources:
            limits:
              nvidia.com/gpu: "2"
            requests:
              nvidia.com/gpu: "2"
          volumeMounts:
            - mountPath: /models/Qwen3-32B
              name: model-storage
            - mountPath: /dev/shm
              name: dshm

Resource cleanup guide

After AI training or inference tasks complete, release the CPFS for Lingjun shared volumes and related workloads.

Resources to release:

  • Workloads using the shared volume (in this example, a StatefulSet)

  • PVC used for data prefilling

  • Backend storage resources (CPFS for Lingjun FileSet) automatically created by the PVC

Cleanup steps:

  1. Delete the workload

    Delete the StatefulSet using the volume to release the PVC.

    kubectl delete statefulset demo-apply-qwen3-32b -n bmcpfs-dataflow-demo
  2. Delete the PVC

    With reclaimPolicy: Delete on the StorageClass, deleting the PVC also deletes the backend CPFS FileSet, releases storage, and stops billing.

    kubectl delete pvc qwen3-32b -n bmcpfs-dataflow-demo
  3. Verify resource cleanup:

    • In the NAS console, choose File System > File System List and confirm the FileSet for this PVC is deleted and used capacity decreased.

    • OSS source data is unaffected. In the OSS console, confirm the dataset remains intact.

Scenario 2: Prefetch data to isolated cloud disk volumes

For batch processing workflows, use Argo Workflows to dynamically create and preheat an independent cloud disk per task for data isolation and elasticity.

Prerequisites

  • Enable VolumePopulatorPodHandler in storage-operator.

    After enabling, the system grants required RBAC permissions to related components and temporary pods. Evaluate security risks before enabling.

    Automatically configured RBAC permissions

    • Grants storage-operator pod operation permissions in the ack-volume-populator namespace

      - apiGroups: [""]
        resources: [pods]
        verbs: [get, list, watch, create, delete]
    • Grants cluster-level access permissions to temporary task pods

      - apiGroups: [""]
        resources: [events]
        verbs: [create, patch, get, list]
      - apiGroups: [volumepopulators.storage.alibabacloud.com]
        resources: [ossvolumepopulators]
        verbs: [get, list, watch]
  • Argo Workflows is installed.

    Detailed steps

    1. Log on to the ACK console. In the left-side navigation pane, click Clusters.

    2. On the Clusters page, click the name of your cluster. In the left-side navigation pane, choose Operations > Add-ons.

    3. On the Add-ons page, find Argo Workflows and install it as prompted.

  • This example uses serverless compute (ECI) for data prefilling tasks and workflows. Install the ack-virtual-node add-on . For non-serverless verification, remove alibabacloud.com/eci: "true" from resources.

1. Authorize data prefilling tasks to access OSS

In generic mode, data prefilling tasks run as temporary pods in the ack-volume-populator namespace. Grant these pods access to the OSS bucket with source data.

  • RRSA method: Dynamically assigns temporary, auto-rotating RAM roles to pods for fine-grained permission isolation with higher security.

  • AccessKey method: Stores static, long-term credentials in a Secret. Simple to configure but less secure.

RRSA method

1. Enable RRSA in the cluster

  1. Log on to the ACK console. In the left-side navigation pane, click Clusters. On the Clusters page, click the name of the target cluster.

  2. On the Basic Information tab, in the Security and Auditing section, click Enable next to RRSA OIDC, and follow the on-screen instructions to enable RRSA during off-peak hours.

    When the cluster status changes from Updating to Running, RRSA is enabled.

    Important

    After RRSA is enabled, the maximum validity period of ServiceAccount tokens that are newly created in the cluster is limited to 12 hours.

2. Create a RAM role and grant permissions

Create a RAM role for pods to assume for OSS access through RRSA authentication.

View steps

  1. Create a RAM role.

    1. Go to the RAM console - Create Role page, select Principal Type as Identity Provider, then click Switch to Policy Editor to enter the Visual Editor page.

    2. Select Principal as Identity Provider, click Edit, and follow the instructions below to complete configuration.

      Main configurations are as follows. Keep other parameters at default. See Create a RAM role for an OIDC identity provider for details.

      Configuration

      Description

      Identity Provider Type

      OIDC.

      Identity Provider

      Select ack-rrsa-<cluster_id>. Replace <cluster_id> with your cluster ID.

      Condition

      Manually add oidc:sub.

      • Key: Select oidc:sub.

      • Operator: Select StringEquals.

      • Value: Enter system:serviceaccount:ack-volume-populator:plugin-account.

      Role Name

      This example uses demo-role-for-rrsa.

  2. Create a permission policy.

    Following the principle of least privilege, create a custom policy granting access to the target OSS bucket (OSS read-only or read-write permissions).

    Go to the RAM console - Create Policy page, switch to JSON Editor, and configure the policy script as instructed.

    If you already have a RAM role with OSS permissions, modify its trust policy for reuse. See Use an existing RAM role and grant permissions.

    OSS read-only policy

    Replace <myBucketName> with your actual bucket name.
    {
        "Statement": [
            {
                "Action": [
                    "oss:Get*",
                    "oss:List*"
                ],
                "Effect": "Allow",
                "Resource": [
                    "acs:oss:*:*:<myBucketName>",
                    "acs:oss:*:*:<myBucketName>/*"
                ]
            }
        ],
        "Version": "1"
    }
    1. Go to the RAM console - Users page, click the target user in the RAM user list, then in the AccessKey tab, click Create AccessKey.

    2. Follow the instructions to create the AccessKey in the dialog box and securely store the AccessKey ID and AccessKey Secret.

AccessKey method

  1. Create a RAM user. Skip this step if a RAM user already exists. Go to the RAM console - Create User page and create a RAM user as instructed, for example, set the login name and password.

  2. Create a permission policy.

    Following the principle of least privilege, create a custom policy granting access to the target OSS bucket (OSS read-only or read-write permissions).

    Go to the RAM console - Create Policy page, switch to JSON Editor, and configure the policy script as instructed.

    OSS read-only policy

    Replace <myBucketName> with your actual bucket name.
    {
        "Statement": [
            {
                "Action": [
                    "oss:Get*",
                    "oss:List*"
                ],
                "Effect": "Allow",
                "Resource": [
                    "acs:oss:*:*:<myBucketName>",
                    "acs:oss:*:*:<myBucketName>/*"
                ]
            }
        ],
        "Version": "1"
    }
  3. Attach the policy to the RAM user.

    1. Go to the RAM console - Users page. In the user list, find the target user and click Add Permissions in the Actions column.

    2. In the Policies section, search for and select the policy created in the previous step, and then complete the authorization.

  4. Create an AccessKey for the RAM user to store as a Secret for data prefilling.

    1. Go to the RAM console - Users page, click the target user in the RAM user list, then in the AccessKey tab, click Create AccessKey.

    2. Follow the instructions to create the AccessKey in the dialog box and securely store the AccessKey ID and AccessKey Secret.

  5. Create a Secret in the cluster.

    Use the following YAML to create a Secret in the ack-volume-populator namespace to store the AccessKey.

    apiVersion: v1
    kind: Secret
    metadata:
      name: oss-secret
      # The namespace must be set to ack-volume-populator
      namespace: ack-volume-populator
    stringData:
      # Replace with the previously obtained AccessKey ID
      accessKeyId: <your-AccessKey-ID>
      # Replace with the previously obtained AccessKey Secret
      accessKeySecret: <your-AccessKey-Secret>

2. Create OSSVolumePopulator (OSSVP)

Create an OSSVolumePopulator in the same namespace as your application and PVC. Set mode to generic and configure authorization.

apiVersion: storage.alibabacloud.com/v1beta1
kind: OSSVolumePopulator
metadata:
  name: generic-demo
  # Must be in the same namespace as the application and PVC
  namespace: argo 
spec:
  bucket: my-test-bucket
  region: cn-hangzhou
  endpoint: oss-cn-hangzhou-internal.aliyuncs.com
  path: /many-files/
  # Generic mode for any backend storage volume
  mode: generic
  generic:
    # Add labels to data population task pods for scheduling to ECI pods
    labels:
      alibabacloud.com/eci: "true"
    # Add annotations to data population task pods for configuring ECI specs
    annotations:
      k8s.aliyun.com/eci-use-specs: "2-4Gi"
    # Choose either secretRef or rrsaConfigs
    # secretRef: oss-secret
    rrsaConfigs:
      # ARN of the RAM role used for RRSA authorization
      roleArn: "acs:ram::1234567*****:role/oss-populator"
      # ARN of the cluster's OIDC Provider
      oidcProviderArn: "acs:ram::1234567*****:oidc-provider/my-oidc-provider"
    # Configure affinity for data population task pods to schedule to specific nodes
    affinity:
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
            - matchExpressions:
                - key: "disktype"
                  operator: NotIn
                  values:
                    - "hdd"
    # Configure tolerations for data population task pods
    tolerations:
      - key: "virtual-kubelet.io/provider"
        operator: Equal
        value: "alibabacloud"
        effect: NoSchedule
    # Maximum throughput (MB/s)
    # throughput: 1000

Parameters:

Name

Description

Optional

Default

namespace

OSSVolumePopulator must be in the same namespace as the application and PVC.

No

N/A

bucket

OSS bucket name.

No

N/A

region

OSS region.

No

N/A

endpoint

OSS service endpoint.

No

N/A

path

Path prefix within the OSS bucket, such as /data/.

Yes

/

mode

Operation mode. Options:

  • generic (default): Generic population for any backend dynamic volume (e.g., cloud disks, CPFS general-purpose edition). Creates a temporary pod in the ack-volume-populator namespace to download data, consuming cluster compute resources.

  • bmcpfs-dataflow: High-performance mode for CPFS for Lingjun volumes only. Uses native data flow for higher efficiency without cluster compute resources.

  • auto: Selects the best mode based on target storage type, but usually falls back to generic mode. Specify bmcpfs-dataflow manually if needed.

Yes

auto

generic.labels

Labels for data population task pods to schedule to ECI.

Yes

N/A

generic.annotations

Annotations for data population task pods to configure ECI specs.

Yes

N/A

generic.secretRef

Secret name storing the AccessKey. Use this or generic.rrsaConfigs.

Yes

N/A

generic.rrsaConfigs.roleArn

ARN of the RAM role used for RRSA authorization.

Go to the RAM console - Roles page, click the RAM role name, and get it from the details page.

Required when using RRSA

N/A

generic.rrsaConfigs.oidcProviderArn

ARN of the cluster's OIDC Provider.

Go to the ACK clusters page, click the target cluster name, select Cluster Information, and get it from the Basic Information tab under RRSA OIDC.

Required when using RRSA

N/A

generic.affinity

Affinity for data population task pods to schedule to specific nodes.

Yes

N/A

generic.tolerations

Tolerations for data population task pods.

Yes

N/A

generic.throughput

Maximum throughput (MB/s) for data population task pods.

Unlike bmcpfs-dataflow, generic performance depends on node resources (network, CPU) and storage write capability. This setting caps download speed to prevent prefilling tasks from consuming excessive cluster resources.

Yes

Unlimited (actual rate depends on node network, CPU, and storage write performance)

3. Prepare StorageClass

This scenario needs a StorageClass for dynamically provisioning cloud disks. ACK provides a default StorageClass and supports manually creating a StorageClass.

  • This example uses alicloud-disk-essd with reclaimPolicy set to Delete and volumeBindingMode set to Immediate, suitable for serverless compute without zone awareness.

  • For non-serverless workflows, use a StorageClass with volumeBindingMode set to WaitForFirstConsumer (such as alicloud-disk-topology-alltype) so cloud disks and application pods are created in the same zone.

4. Create Argo Workflow

This Workflow example uses an ephemeral volumeClaimTemplate to create an independent cloud disk with prefilled data for each parallel task.

Expand to view sample code

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: parallel-data-process-with-ossvp-
  namespace: argo
spec:
  # Define input parameters
  arguments:
    parameters:
      - name: number
        value: 2

  entrypoint: main
  # Define volume claim template for each concurrent replica in the Workflow
  volumes:
    - name: scratch-volume
      # Declare as ephemeral volume, automatically deleted after Workflow completion
      ephemeral:
        volumeClaimTemplate:
          metadata:
            labels:
              diskType: scratch-volume
          spec:
            accessModes: [ "ReadWriteOnce" ]
            # For non-serverless compute, replace with alicloud-disk-topology-alltype
            storageClassName: "alicloud-disk-essd"
            resources:
              requests:
                # Must be at least the size of the OSS data source referenced by OSSVP
                storage: 20Gi
            # Reference OSSVP as data source
            dataSourceRef:
              apiGroup: storage.alibabacloud.com
              kind: OSSVolumePopulator
              name: generic-demo

  templates:
    - name: main
      dag:
        tasks:
          # Execute multiple echo tasks in parallel
          - name: echo-task
            template: echo-template
            arguments:
              parameters:
                - name: index
                  value: "{{item}}"
            withSequence:
              count: "{{workflow.parameters.number}}"

    - name: echo-template
      metadata:
        labels:
          # Run tasks on ECI
          alibabacloud.com/eci: "true" 
      container:
        image: mirrors-ssl.aliyuncs.com/busybox:latest
        command:
          - sh
          - -c
        args:
          - |
            echo "Subtask started, ID: {{inputs.parameters.index}}"
            echo "Creating a new log file..."
            touch /scratch-volume/"{{inputs.parameters.index}}-logs"
            echo "Listing contents from the disk populated by OSSVP:"
            ls /scratch-volume
            echo "Subtask completed, ID: {{inputs.parameters.index}}"
        volumeMounts:
        - name: scratch-volume
          mountPath: /scratch-volume
        resources:
          limits:
            cpu: '4'
            memory: 16Gi
          requests:
            cpu: '4'
            memory: 16Gi
      inputs:
        parameters:
          - name: index

After creating the Workflow, check logs from any task pod to confirm prefilled data reads succeed.

In production, use Argo Workflows Artifact to persist final computation results in OSS.
# Replace <your-workflow-pod-name> with the actual pod name
kubectl -n argo logs <your-workflow-pod-name>

Expected output:

Subtask started, ID: 1
Creating a new log file...
Listing contents from the disk populated by OSSVP:
1-logs
lost+found
results-2025-04-16T07:48:00Z
...
Subtask completed, ID: 1

Result analysis:

  • 1-logs: File written by the task, confirming read-write access and isolated storage between parallel tasks.

  • results-2025-04-16T07:48:00Z and similar files: Data prefilled from OSS to the cloud disk.

  • lost+found: Directory created during file system formatting. Ignore it.

Resource cleanup guide

After batch processing tasks complete, release isolated cloud disk volumes and Argo Workflow instances.

Resources to release:

  • Argo Workflow instance

  • Temporary PVCs automatically created by the Workflow

  • Backend storage resources (cloud disks) automatically created by the PVCs.

Release steps:

  1. Delete the Argo Workflow:

    Delete the Workflow resource. With ephemeral volume claims, deletion cascades to all PVCs. StorageClass reclaimPolicy: Delete then deletes backend cloud disks, releases resources, and stops billing.

    # Replace <workflow-name> with the actual Workflow name
    kubectl -n argo delete workflow <workflow-name>
  2. Verify resource cleanup:

    • Run kubectl -n argo get pvc to confirm all workflow-related PVCs are deleted.

    • Verify cloud disk resources: Go to ECS console - Block Storage - Disks and confirm no cloud disk resources remain from this workflow.

    • OSS source data is unaffected. In the OSS console, confirm the dataset remains intact.

Apply in production

  • Cost and resource management:

    • Set reclaimPolicy: Delete on the StorageClass for dynamically created volumes so high-performance storage cleans up automatically after tasks complete.

    • In generic mode, configure affinity and tolerations in OSSVolumePopulator to schedule temporary task pods on lower-cost serverless compute (including ACS, ECI) or spot instances.

    • Request PVC storage larger than the source data size, or population fails from insufficient space.

  • Performance and stability:

    • Set StorageClass volumeBindingMode to WaitForFirstConsumer on ECS nodes so cloud disks and application pods are created in the same zone.

    • For CPFS for Lingjun, choose dataType: metadata for faster PV readiness if first-read latency is acceptable, or dataType: metadataAndData for full prefill and high first-read performance.

    • Monitor prefill status with kubectl describe ossvp <name> for quick troubleshooting.

  • Security and permissions:

    • In generic mode, prefer RRSA over AccessKey when granting OSS access to data population task pods.

Billing

This feature incurs the following charges:

  • High-performance storage fees based on the created volume type (such as CPFS for Lingjun or cloud disks) and their lifecycle.

  • OSS storage fees for source data.

  • Data transfer fees: Configure the OSS internal endpoint in OSSVP to avoid traffic charges. A public endpoint incurs traffic fees.

  • Compute resource fees (only for generic mode): Temporary pods consume cluster compute resources (CPU, memory, bandwidth) and are billed by specifications and duration.

  • For CPFS for Lingjun in bmcpfs-dataflow mode, data stream tasks are free to use because the data stream feature is in public preview.

FAQ

After prefilling completes, if I update source files in OSS, will the data in the volume sync automatically?

No. Data prefilling is one-time during volume creation. After population, volume contents are decoupled from OSS source data, and later OSS changes do not sync.

Why does my PVC stay in Pending status?

Pending is normal during data prefilling. If it persists, troubleshoot as follows:

  1. kubectl describe pvc <pvc-name> -n <namespace>: Check PVC events for populator errors.

  2. kubectl describe ossvp <ossvp-name> -n <namespace>: Check OSSVP status and events for population progress or failures.

  3. In generic mode, check failed pods in the ack-volume-populator namespace and review logs. Common causes include insufficient OSS permissions, network issues, or insufficient storage space.