UFS 文件存储 | File Storage (UFS) Print

  • 0

中文(UFS 文件存储)

UFS 提供可共享的文件存储服务(类似 NFS 共享盘),支持多台云主机/容器同时挂载访问,适合存放需要共享读写的文件数据。

适用场景

  • 多台应用服务器共享静态资源(图片/附件/报表)
  • Kubernetes 持久化卷(PV)共享(视集成能力)
  • 开发/测试环境共享目录、构建缓存

核心能力(以实际产品为准)

  • 多客户端并发挂载与访问
  • 容量弹性扩展
  • 访问权限与网络隔离(建议置于 UVPC)
  • 备份/快照(如支持)

举例:两台 Web 服务器共享上传目录

  1. 创建 UFS,并放到与两台 UHost 相同的 UVPC/子网
  2. 两台 UHost 上分别挂载 UFS 到 /data/uploads
  3. Nginx/应用将上传文件写入该目录,两台机器即可共享访问

最佳实践

  • 不要把数据库数据文件直接放在共享文件存储(除非明确支持且评估一致性/性能)
  • 尽量走内网访问,减少暴露面

English (UFS)

UFS is a shared file storage service (similar to NFS) that can be mounted by multiple VMs/containers for shared read/write access.

Use cases

  • Shared static assets (images/attachments/reports) across multiple web servers
  • Kubernetes shared persistent volumes (depending on integration)
  • Shared dev/test directories and build caches

Key capabilities (depending on offering)

  • Concurrent mounts and access
  • Elastic capacity scaling
  • Network isolation and access control (recommended within UVPC)
  • Backup/snapshot (if supported)

Example: Two web servers sharing an uploads folder

  1. Create UFS in the same VPC/subnet as your UHost instances
  2. Mount it on both servers at /data/uploads
  3. Write uploaded files to this directory so both servers can serve them

Was this answer helpful?

« Back