All Products
Search
Document Center

Container Service for Kubernetes:CNFS overview

Last Updated:Jan 29, 2024

Traditional shared file systems lack precise control of storage resource quotas, recovery of accidentally deleted data, monitoring metrics about volume capacities and performance statistics, and encryption algorithms. In addition, the latency of reading or writing small-sized files is high. Container Service for Kubernetes (ACK) provides Container Network File System (CNFS) to improve the performance of Apsara File Storage NAS (NAS) and Object Storage Service (OSS) volumes and support quality of service (QoS). This topic describes the features, storage types, use scenarios, limits, and billing of CNFS.

Features

CNFS allows ACK to create, delete, describe, mount, monitor, and scale individual file stores of Alibaba Cloud by using Kubernetes CustomResourceDefinitions (CRDs). CRDs are easy to use and can improve the performance of file stores and enhance data security. Using CRDs also helps manage container-consistent persistent volume claims (PVCs).

Feature

CNFS version

Enable

Recycle bin

  • You can recover accidentally deleted files from the recycle bin. For more information about the billing rules of the recycle bin feature and the required permissions, see Usage notes.

  • The recycle bin is disabled and emptied. For more information about how to disable and empty the recycle bin, see What to do next.

By default, this feature is enabled. The retention period of the data in the recycle bin is seven days.

Resource quotas

Storage resource quotas. You can dynamically increase the quota limits. For more information about how to use the storage resource quotas, see Expand a NAS volume.

By default, this feature is enabled.

Volume monitoring

This feature allows you to monitor the usage and I/O performance of volumes, including PVCs. For more information about how to use the volume monitoring feature, see Use csi-plugin to monitor storage resources on the node side.

This feature is enabled after you install Managed Service for Prometheus.

Lifecycle management

This feature allows you to manage the lifecycles of NAS file systems and OSS buckets.

By default, this feature is enabled.

Resource protection

This feature prevents users from accidentally deleting the entire file system.

By default, this feature is enabled.

Updates without service disruptions

Hot updates for volume drivers are supported.

By default, this feature is enabled.

End-to-end data acceleration

You can use the CNFS client to mount volumes to increase read speeds. For more information, see Enable the distributed caching feature of the CNFS client.

By default, this feature is disabled. To enable this feature, you must configure specific parameters.

QoS

This feature allows you to modify the size of the local cache, the size of cached metadata, the upper limit of input/output operations per second (IOPS), and the upper limit of throughput. For more information, see Enable the distributed caching feature of the CNFS client.

The default size of the local cache is 128 MB. By default, the size of cached metadata, IOPS, and throughput are not limited.

Some advanced CNFS features, such as the recycle bin, resource quotas, and lifecycle management, can be configured only in the NAS console.

Storage types

NAS provides the following file system types: General-purpose NAS Capacity, General-purpose NAS Performance, and Extreme NAS. For more information, see NAS types.

Limits

CNFS supports only ACK Pro clusters.

Usage notes

  • CNFS simplifies the procedure of mounting NAS volumes. Compared with using PVCs, you do not need to frequently switch between the NAS console and ACK console when you use CNFS to mount a NAS volume. For more information, see Use CNFS to manage NAS file systems.

  • You can use expansion policies to enable auto expansion of NAS volumes when the capacity usage exceeds specific thresholds. For more information, see Use CNFS to automatically expand NAS volumes.

  • You can use the recycle bin feature of CNFS to restore accidentally deleted files. For more information, see Use the recycle bin feature to restore data.

Billing

  • For more information about the billing rules of NAS, see NAS billing overview.

  • For more information about the billing rules of the recycle bin feature, see Billing.

  • For more information about the billing rules of OSS, see Billing overview.

References