# Alluxio

**Alluxio**，原名Tachyon，是一个面向分析与AI的开源数据编排系统，位于计算框架与持久化存储系统之间，将频繁访问的数据缓存于内存和本地磁盘以加速访问<sup>[1](https://www.alluxio.io/blog/alluxio-formerly-tachyon-is-entering-a-new-era-with-10-release)</sup><sup> • </sup><sup>[2](https://documentation.alluxio.io/os-en)</sup>。它针对[Apache Spark](https://www.edgepedia.org/zh/apache-spark)、Presto、[TensorFlow](https://www.edgepedia.org/zh/tensorflow)、Apache Hive和[Apache Flink](https://www.edgepedia.org/zh/apache-flink)等应用，在Amazon S3、Google Cloud Storage、HDFS、Ceph、NFS和阿里云OSS等存储之上提供统一的客户端API和全局命名空间<sup>[2](https://documentation.alluxio.io/os-en)</sup>。该项目起源于加州大学伯克利分校AMPLab，用Java编写，采用Apache License 2.0许可<sup>[1](https://www.alluxio.io/blog/alluxio-formerly-tachyon-is-entering-a-new-era-with-10-release)</sup><sup> • </sup><sup>[3](https://faun.dev/company/alluxio/)</sup>。

| 关键事实 | 详情 |
|---|---|
| 类别 | 面向分析与AI的开源数据编排技术；内存优先的分层架构<sup>[2](https://documentation.alluxio.io/os-en)</sup> |
| 起源 | 由李浩源（Haoyuan Li）于2012年在加州大学伯克利分校AMPLab构建；2013年4月以Tachyon之名开源<sup>[1](https://www.alluxio.io/blog/alluxio-formerly-tachyon-is-entering-a-new-era-with-10-release)</sup> |
| 更名 | Tachyon于2016年2月更名为Alluxio，恰逢1.0版本发布<sup>[4](https://amplab.cs.berkeley.edu/news/tachyon-is-now-alluxio/)</sup> |
| 许可与语言 | Apache License 2.0；用Java编写<sup>[3](https://faun.dev/company/alluxio/)</sup> |
| 缓存粒度 | 基于块的分层缓存默认64 MB块；另一种页级存储通常使用1 MB页<sup>[5](https://documentation.alluxio.io/os-en/core-services/caching)</sup> |
| 存储层级 | 工作节点上可配置MEM、SSD和HDD层级；驱逐基于块注解策略<sup>[5](https://documentation.alluxio.io/os-en/core-services/caching)</sup><sup> • </sup><sup>[6](https://documentation.alluxio.io/ee-da-en/cache/managing-data-in-the-cache)</sup> |
| 开源版本 | 最后一个开源版本为v2.9.4（2024年6月）；商业开发以Alluxio Enterprise AI延续<sup>[3](https://faun.dev/company/alluxio/)</sup><sup> • </sup><sup>[7](https://www.alluxio.io/news-press)</sup> |
| 规模 | 已在数百个组织的生产环境中部署，最大部署超过1,500个节点<sup>[2](https://documentation.alluxio.io/os-en)</sup> |

## 历史

Alluxio最初是李浩源在加州大学伯克利分校AMPLab的博士研究项目，他后来成为公司CEO，在2018年的一次采访中被描述为Alluxio的CTO<sup>[1](https://www.alluxio.io/blog/alluxio-formerly-tachyon-is-entering-a-new-era-with-10-release)</sup><sup> • </sup><sup>[8](https://www.dbta.com/BigDataQuarterly/Articles/The-Rise-of-Data-Orchestration-QandA-with-Alluxios-Dipti-Borkar-133287.aspx)</sup>。李浩源写道，他在2012年圣诞节期间构建了第一个版本，并于2013年4月将其开源，动机是他在Spark和Mesos崛起之际看到了一个缺失的存储环节：跨不同应用的内存速度数据共享<sup>[1](https://www.alluxio.io/blog/alluxio-formerly-tachyon-is-entering-a-new-era-with-10-release)</sup>。AMPLab 2014年3月的项目页面将该系统（当时称为Tachyon）描述为一个以内存为中心、容错的虚拟分布式存储系统，是伯克利数据分析栈（BDAS）的存储层，也是Fedora发行版的一部分<sup>[9](https://amplab.cs.berkeley.edu/projects/tachyon-reliable-file-sharing-at-memory-speed-across-cluster-frameworks/)</sup>。

**更名与创立。** 2015年，Alluxio, Inc.成立，获得[Andreessen Horowitz](https://www.edgepedia.org/zh/andreessen-horowitz)的750万美元投资<sup>[1](https://www.alluxio.io/blog/alluxio-formerly-tachyon-is-entering-a-new-era-with-10-release)</sup>。社区将项目名称从Tachyon改为Alluxio，以保护项目免受潜在的商标诉讼，并在国际上保留开源贡献的知识产权<sup>[10](https://www.alluxio.io/news-press/alluxio-virtualizes-distributed-storage-for-petabyte-scale-computing-at-in-memory-speeds)</sup>。AMPLab于2016年2月宣布更名，恰逢1.0版本发布，并指出获得了阿里巴巴、百度、巴克莱、IBM、EMC和英特尔等行业领袖的背书<sup>[4](https://amplab.cs.berkeley.edu/news/tachyon-is-now-alluxio/)</sup>。根据项目文档，来自300多个机构的1,000多名贡献者参与了代码开发，包括阿里巴巴、百度、谷歌、IBM、英特尔、红帽、腾讯和加州大学伯克利分校<sup>[2](https://documentation.alluxio.io/os-en)</sup>。

## 架构

Alluxio的文档将该系统描述为连接数据驱动应用与存储系统的层，将数据从存储层拉近到应用，使应用能够通过通用接口连接众多存储系统<sup>[2](https://documentation.alluxio.io/os-en)</sup>。它指出了三个创新领域：全局命名空间，作为访问多个独立存储系统的单一入口，无论物理位置如何；智能多层缓存，Alluxio集群充当读写缓存，可在内存和磁盘之间配置放置策略；以及简便的应用部署，因为Alluxio兼容Hadoop，现有的Spark和[MapReduce](https://www.edgepedia.org/zh/mapreduce)程序无需修改代码即可在其上运行<sup>[2](https://documentation.alluxio.io/os-en)</sup>。

作为一个开源系统，Alluxio由三部分组成：主节点（master）、工作节点（worker）和客户端（client）。一个集群通常运行一个主用主节点及备用主节点、一个作业主节点及备用作业主节点、工作节点和作业工作节点<sup>[11](https://cf.juicefs.com/docs/community/comparison/juicefs_vs_alluxio/)</sup>。在企业版中，一致性哈希将文件路径映射到一组分布式工作节点，使客户端无需查询中心服务即可高效定位数据和元数据<sup>[12](https://documentation.alluxio.io/ee-da-en/core-concepts)</sup>。

## 缓存与分层存储

Alluxio将存储分为两类。**底层文件存储**（Under File Storage，UFS）是不由Alluxio管理的空间，通常是HDFS或S3等外部文件系统，用于持久化的长期数据。**Alluxio存储**是本地存储，包括内存，由工作节点作为分布式缓冲缓存管理；它面向热数据、瞬态数据，而非长期持久化<sup>[5](https://documentation.alluxio.io/os-en/core-services/caching)</sup>。连接的UFS中的文件即使未被缓存，对Alluxio客户端仍然可见；当客户端读取仅能从UFS获得的文件时，数据会被复制到Alluxio存储中<sup>[5](https://documentation.alluxio.io/os-en/core-services/caching)</sup>。

**分层。** 工作节点可配置多个按I/O速度排序的层级，通常为MEM、SSD和HDD，文档将其比作L1/L2 CPU缓存<sup>[5](https://documentation.alluxio.io/os-en/core-services/caching)</sup>。在单层模式下启动时，每个工作节点会分配一个占系统内存一定比例的内存盘<sup>[5](https://documentation.alluxio.io/os-en/core-services/caching)</sup>。当客户端写入新块时，Alluxio默认将其写入顶层，并回退到较低层级；如果所有层级都没有空间，则基于块注解策略进行驱逐以释放空间，若驱逐无法释放空间则写入失败<sup>[5](https://documentation.alluxio.io/os-en/core-services/caching)</sup>。在阿里云E-MapReduce服务中，默认的两层缓存分配节点内存的10%和磁盘的30%，默认驱逐策略为LRUAnnotator<sup>[13](https://www.alibabacloud.com/help/en/emr/emr-on-ecs/user-guide/cache-policies-and-lifecycle-management-commands)</sup>。

**读取类型与管理。** 使用`ReadType.CACHE`时，Alluxio将块缓存到有可用空间的最高层级；使用`ReadType.CACHE_PROMOTE`时，块在读取前先被传输到顶层。在Alluxio 2.3中，默认ReadType从`CACHE_PROMOTE`改为`CACHE`，因为读取期间的同步提升会导致延迟；此后，块由分层存储管理任务根据注解策略异步提升<sup>[5](https://documentation.alluxio.io/os-en/core-services/caching)</sup>。跨目录的块分配可通过策略配置，包括MaxFreeAllocator（默认）、RoundRobinAllocator和GreedyAllocator<sup>[5](https://documentation.alluxio.io/os-en/core-services/caching)</sup>。管理任务在各层级间对齐块，并在较高层级有空闲空间时将块向上提升，当工作节点或磁盘负载过高时则退避<sup>[5](https://documentation.alluxio.io/os-en/core-services/caching)</sup>。

**分页存储。** 作为基于块的分层缓存的替代方案，Alluxio支持在工作节点上进行更细粒度的页级缓存，通常使用1 MB页而非默认的64 MB块；这一实验性分页工作节点存储于Alluxio 2.8.2和2.9.0中加入，文档建议读取Parquet或ORC文件的Presto工作负载使用默认的1 MB页大小<sup>[5](https://documentation.alluxio.io/os-en/core-services/caching)</sup>。

## 数据生命周期与复制

四个生命周期操作管理缓存数据：free从Alluxio缓存中移除数据但不从UFS中移除，因此数据仍然可用但访问较慢；load将数据从UFS复制到缓存中；persist将数据从Alluxio存储写回UFS，以便在Alluxio节点故障时可恢复；TTL设置过期时长，到期后文件从Alluxio空间移除，也可选择从UFS移除<sup>[5](https://documentation.alluxio.io/os-en/core-services/caching)</sup><sup> • </sup><sup>[13](https://www.alibabacloud.com/help/en/emr/emr-on-ecs/user-guide/cache-policies-and-lifecycle-management-commands)</sup>。

Alluxio内部的复制独立于UFS副本，并根据集群活动动态调整：当更多客户端读取某个块时，可能创建更多副本；当使用频率降低时，副本被移除，因此同一文件的不同块可根据热度携带不同的副本数。用户还可通过API和命令行界面显式维持目标复制级别范围<sup>[5](https://documentation.alluxio.io/os-en/core-services/caching)</sup>。

## 使用场景

项目文档列出了五个常见的生产使用场景<sup>[14](https://documentation.alluxio.io/os-en/overview-1/use-cases)</sup>：

1. **加速云中的分析与AI。** 在AWS S3、Google Cloud或[Microsoft Azure](https://www.edgepedia.org/zh/microsoft-azure)等公有云对象存储上运行Spark、Presto、Hive和TensorFlow的组织面临性能波动、昂贵的元数据操作以及临时集群上嵌入式缓存无效的问题；Alluxio在计算集群上提供多层缓存和元数据管理<sup>[14](https://documentation.alluxio.io/os-en/overview-1/use-cases)</sup>。
2. **加速本地对象存储。** 缓存和API转换改善性能，并在不改变最终用户体验的情况下增加多种API<sup>[14](https://documentation.alluxio.io/os-en/overview-1/use-cases)</sup>。
3. **“零拷贝”混合云弹性扩展**，在数据保留在本地的同时使用云计算<sup>[14](https://documentation.alluxio.io/os-en/overview-1/use-cases)</sup>。
4. **混合云存储网关**，让本地计算针对云中的数据工作<sup>[14](https://documentation.alluxio.io/os-en/overview-1/use-cases)</sup>。
5. **跨数据中心访问**，卫星集群作为数据的单一逻辑副本连接到主数据集群，消除冗余副本和复杂的同步<sup>[14](https://documentation.alluxio.io/os-en/overview-1/use-cases)</sup>。

文档列举的部署实例包括[Electronic Arts](https://www.edgepedia.org/zh/electronic-arts)、DBS和Comcast<sup>[14](https://documentation.alluxio.io/os-en/overview-1/use-cases)</sup>。

## Uber和Meta的本地缓存

一篇2024年由Alluxio、Uber、卡内基梅隆大学和Meta合著的USENIX ATC论文描述了Alluxio本地（边缘）缓存，这是一种针对PB级分析优化的可嵌入缓存，利用本地SSD资源缓解计算存储分离的OLAP平台中的网络I/O和API调用压力<sup>[15](https://arxiv.org/abs/2406.05962)</sup>。该本地缓存与Presto和HDFS集成，在论文发表时已在Uber和Meta部署运行了三年<sup>[15](https://arxiv.org/abs/2406.05962)</sup>。论文报告称，该缓存已演进为包含缓存过滤、调度和多租户配额管理等高级功能，并指出与早期的Rubix缓存相比，它无需守护进程运行，并采用软亲和调度以获得更高的缓存命中率<sup>[16](https://www.usenix.org/system/files/atc24-tang.pdf)</sup>。

## 与JuiceFS的比较及局限性

JuiceFS项目的比较表记录了几点差异。Alluxio将文件作为对象存储到UFS中，而非将其拆分为块，其64 MiB缓存粒度比JuiceFS的4 MiB更粗，比较表称这对Parquet和ORC等格式的随机读取工作负载有利<sup>[11](https://cf.juicefs.com/docs/community/comparison/juicefs_vs_alluxio/)</sup>。该表将Alluxio列为不完全兼容POSIX，引用京东的pjdfstest显示Alluxio不支持符号链接、truncate、fallocate、append、xattr、mkfifo、mknod或utimes；其元数据操作涉及两步——修改Alluxio主节点并向UFS发送请求——因此不是原子的；默认情况下Alluxio期望UFS修改通过Alluxio进行，否则需要手动或定期元数据同步<sup>[11](https://cf.juicefs.com/docs/community/comparison/juicefs_vs_alluxio/)</sup>。同一比较称Alluxio社区版缺少数据压缩和数据加密，而加密在企业版中可用<sup>[11](https://cf.juicefs.com/docs/community/comparison/juicefs_vs_alluxio/)</sup>。

## 近期发展

截至2026年10月，主GitHub仓库约有7,200颗星，最后一个开源版本v2.9.4（Apache 2.0）于2024年6月发布<sup>[3](https://faun.dev/company/alluxio/)</sup>。公司的商业产品线持续发展：Alluxio Enterprise AI 3.6于2025年5月发布，具有模型分发、检查点写入优化和多租户功能<sup>[7](https://www.alluxio.io/news-press)</sup>；Alluxio Enterprise AI 3.7在其2026财年第二季度推出，公司称其为访问云存储数据的AI工作负载提供亚毫秒级的首字节延迟<sup>[7](https://www.alluxio.io/news-press)</sup>。

## References

1. [Founder Blog: Alluxio formerly Tachyon is Entering a New Era with 1.0 release, Haoyuan Li, February 13, 2016](https://www.alluxio.io/blog/alluxio-formerly-tachyon-is-entering-a-new-era-with-10-release)
2. [Introduction: What is Alluxio, Alluxio documentation](https://documentation.alluxio.io/os-en)
3. [Alluxio: Tools, Jobs and Updates, Faun](https://faun.dev/company/alluxio/)
4. [Tachyon is now Alluxio, AMPLab, February 25, 2016](https://amplab.cs.berkeley.edu/news/tachyon-is-now-alluxio/)
5. [Caching, Alluxio documentation](https://documentation.alluxio.io/os-en/core-services/caching)
6. [Managing Data in the Cache, Alluxio documentation](https://documentation.alluxio.io/ee-da-en/cache/managing-data-in-the-cache)
7. [News & Press, Alluxio](https://www.alluxio.io/news-press)
8. [The Rise of Data Orchestration: Q&A with Alluxio's Dipti Borkar, Database Trends and Applications](https://www.dbta.com/BigDataQuarterly/Articles/The-Rise-of-Data-Orchestration-QandA-with-Alluxios-Dipti-Borkar-133287.aspx)
9. [Alluxio (formerly Tachyon), a Memory Speed Virtual Distributed Storage System, AMPLab, March 21, 2014](https://amplab.cs.berkeley.edu/projects/tachyon-reliable-file-sharing-at-memory-speed-across-cluster-frameworks/)
10. [Alluxio Virtualizes Distributed Storage for Petabyte-Scale Computing at In-Memory Speeds, Alluxio press release](https://www.alluxio.io/news-press/alluxio-virtualizes-distributed-storage-for-petabyte-scale-computing-at-in-memory-speeds)
11. [JuiceFS vs. Alluxio, JuiceFS Document Center](https://cf.juicefs.com/docs/community/comparison/juicefs_vs_alluxio/)
12. [Core Concepts, Alluxio documentation](https://documentation.alluxio.io/ee-da-en/core-concepts)
13. [Manage cache policies and lifecycle, Alibaba Cloud E-MapReduce documentation](https://www.alibabacloud.com/help/en/emr/emr-on-ecs/user-guide/cache-policies-and-lifecycle-management-commands)
14. [Use Cases, Alluxio documentation](https://documentation.alluxio.io/os-en/overview-1/use-cases)
15. [Tang et al., Data Caching for Enterprise-Grade Petabyte-Scale OLAP, arXiv:2406.05962 (USENIX ATC 2024)](https://arxiv.org/abs/2406.05962)
16. [Data Caching for Enterprise-Grade Petabyte-Scale OLAP, USENIX ATC 2024 proceedings PDF](https://www.usenix.org/system/files/atc24-tang.pdf)

---
*Initially written Oct 26, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Databases and data systems › Data mining, warehousing, and big data › Big data platforms and frameworks

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/alluxio

English original: https://www.edgepedia.org/alluxio
