This topic describes how to mount a performance NAS file system to an Alibaba Cloud Container Service for Kubernetes (ACK) cluster. Deep Learning Containers (DLC) allows you to store source data in NAS file systems.

Step 1: Select a storage type

Multiple types of NAS file systems are provided to meet your requirements.
Parameter Capacity Performance Extreme CPFS
Latency 3 ms~10 ms 1 ms~2 ms Hundreds of microseconds 1 ms~2 ms
IOPS 15 KB 50 KB
  • Standard: 10 KB
  • Advanced: 30 KB
100 MB
Throughput 10 GB/s 20 GB/s
  • Standard: > 150 MB/s
  • Advanced: > 300 MB/s
1 TB/s
Capacity 10 PB 1 PB 32 TB 100 PB
Load type General General Random low I/O and container services Paralleled reads and writes
Scenarios Website content storage and log file backup Content production and remote desktop sharing Shared storage for containers of high-performance websites High-performance computing and intelligent analytics
We recommend that you choose Cloud Paralleled File System (CPFS) in deep learning scenarios. You cannot mount a CPFS type NAS file system to an ACK cluster in the ACK console. To mount a CPFS type NAS file system to an ACK cluster, see Use CPFS volumes.

Step 2: Create a NAT file system

  1. For more information, see Manage file systems.
  2. For more information about how to add a mount target, see Manage mount targets.
    When you add a mount target, set Mount Target Type to VPC, and specify VPC default permission group (all allowed) as Access Group. The VPC network and VSwitch must be the same as those of your ACK cluster.
  3. Mount the NAS file system to the ACK cluster.
    1. Log on to the ACK console.
    2. In the left-side navigation pane, choose Clusters > Nodes.
    3. On the Nodes page, click the ID of the target node in the Name/IP Address/Instance ID column.
    4. On the Instance Details page of the Elastic Compute Service (ECS) console, click Connect next to Basic Information to connect to the ECS instance through Shell.
    5. Log on to the NAS console. On the File System List page, click the ID of the target file system in the File System ID/Name column.
    6. On the Mounting Use page, click the Copy icon in the Mount Command column to copy the mount command.
    7. Run the mount command in Shell. For more information, see Mount an NFS file system.
    8. After the file system is mounted, you can run the df -h command to view the mounted file system.View the mounted file system

Step 3: Mount the NAS file system to the ACK cluster

You can mount the NAS file system to the ACK cluster in the following ways:
  • Mount the NAS file system as a static volume
    • Directly mount the NAS file system as a volume.
    • Use a pair of persistent volume (PV) and persistent volume claim (PVC). We recommend that you choose this method to mount NAS file systems to ACK clusters used in DLC.
  • Mount the NAS file system as a dynamic volume

In this topic, a pair of PV and PVC is used as an example. For more information about how to mount a NAS file system in other ways, see Use NAS volumes.

  1. Log on to the ACK console.
  2. In the left-side navigation pane, choose Clusters > Persistent Volumes.
  3. Create a PV.
    1. On the Persistent Volumes page, select the target cluster and click Create.Create a PV
    2. Enter a name in the Volume Name field, and set Mount Target Domain Name to Select Mount Target.
      If you are using a capacity or performance NAS file system, you can directly select a mount target from the list. If you want to mount the NAS file system to a subdirectory, click Show Advanced Options, and enter a path in the Subdirectory field.Configurations
    3. Click Create.
  4. Create a PVC.
    1. On the Persistent Volumes page, click the Persistent Volume Claims tab.
    2. Select the target cluster from the Cluster list and click Create.
    3. Click the Select PV hyperlink next to Existing Volumes, and then select the created PV.
    4. Click Create.