Files
nexus/wiki/concepts/EFS-vs-EBS.md
2026-04-18 17:09:43 +08:00

60 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
id: EFS-vs-EBS
title: "EFS vs EBS"
type: concept
tags:
- AWS
- Storage
- Cloud-Migration
last_updated: 2026-04-18
---
## Aliases
- EFS
- EBS
- Elastic File System
- Elastic Block Store
## Summary
- **EFSElastic File System**AWS 托管的网络文件系统NFS支持多实例共享访问
- **EBSElastic Block Store**AWS 托管的块存储,附加到单个 EC2 实例
- **云迁移价值**:正确选型存储对性能和成本至关重要
## Key Details
### EFS 特点
- **协议**NFSv4
- **访问方式**:多可用区网络访问
- **性能模式**:通用和最大 IO 两种模式
- **计费**:按存储量和吞吐量计费
- **适用场景**
- 文件共享
- Web 服务内容
- 备份存储
- 容器共享存储
- **限制**
- 延迟较高,不适合数据库
- 不支持本地 HDD 性能模式(处理延迟敏感工作负载时性能差)
### EBS 特点
- **协议**:块设备
- **类型**gp3/gp2、io1/io2、st1、sc1
- **访问方式**:单实例附加
- **性能指标**IOPS 和吞吐量独立配置
- **适用场景**
- 操作系统启动盘
- 数据库存储
- 应用程序数据
- 需要低延迟的 工作负载
- **限制**
- 仅限于单个可用区
## Octane Hub 案例
- 最初考虑使用 EFS 存储,后因性能问题放弃
- 改用 EBS 用于实时数据库EFS 用于备份
- 验证了 EFS 不适合数据库场景
## Connections
- [[AWS]] ← provides ← [[EFS-vs-EBS]]
- [[S3]] ← alternative_to ← [[EFS-vs-EBS]]
- [[Database-Migration]] ← requires ← [[EFS-vs-EBS]]