English || 简体中文 | Deutsch | Español | français | 日本語 | 한국어 | Português | Русский
Curvine 是一个用 Rust 编写的高性能、并发分布式缓存系统,专为低延迟和高吞吐量工作负载设计。
更多详细信息,请参阅:

Curvine 采用模块化设计,主要由以下核心组件构成:
use curvine_common::conf::ClusterConf;
use curvine_common::fs::Path;
use std::sync::Arc;
let conf = ClusterConf::from(conf_path);
let rt = Arc::new(conf.client_rpc_conf().create_runtime());
let fs = CurvineFileSystem::with_rt(conf, rt)?;
let path = Path::from_str("/dir")?;
fs.mkdir(&path).await?;
ls /curvine-fuse
官方支持的 Linux 发行版
| 操作系统发行版 | 内核要求 | 测试版本 | 依赖项 |
|---|---|---|---|
| CentOS 7 | ≥3.10.0 | 7.6 | fuse2-2.9.2 |
| CentOS 8 | ≥4.18.0 | 8.5 | fuse3-3.9.1 |
| Rocky Linux 9 | ≥5.14.0 | 9.5 | fuse3-3.10.2 |
| RHEL 9 | ≥5.14.0 | 9.5 | fuse3-3.10.2 |
| Ubuntu 22 | ≥5.15.0 | 22.4 | fuse3-3.10.5 |
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.*;
Configuration conf = new Configuration();
conf.set("fs.cv.impl", "io.curvine.CurvineFileSystem");
FileSystem fs = FileSystem.get(URI.create("cv://master:8995"), conf);
FSDataInputStream in = fs.open(new Path("/user/test/file.txt"));
本项目需要以下依赖项,请确保在继续之前已安装:
您可以选择:
curvine-docker/compile/Dockerfile_rocky9 来构建编译镜像curvine/curvine-compile:latest 镜像(基于rocky9),可以使用此镜像进行编译使用 make 编译:
# 编译所有模块
make all
# 只编译核心模块: server client cli
make build ARGS="-p core"
# 编译fuse和核心模块
make build ARGS="-p core -p fuse"
使用build.sh编译:
# 编译所有模块
sh build/build.sh
# 输出命令帮助
sh build/build.sh -h
# 只编译核心模块: server client cli
sh build/build.sh -p core
# 编译fuse和核心模块
sh build/build.sh -p core -p fuse
构建镜像:
# or use curvine-compile:latest docker images to build
make docker-build
# or use curvine-compile:build-cached docker images to build, this image already cached most dependency crates
make docker-build-cached
编译成功后,目标文件将生成在 build/dist 目录中。该文件是可用于部署或构建镜像的 Curvine 安装包。
cd build/dist
# Start the master node
bin/curvine-master.sh start
# Start the worker node
bin/curvine-worker.sh start
挂载文件系统
# The default mount point is /curvine-fuse
bin/curvine-fuse.sh start
查看集群概览:
bin/cv report
执行文件系统命令:
bin/dfs fs mkdir /a
bin/dfs fs ls /
访问 Web 界面:
http://your-hostname:9000
Curvine 使用 TOML 格式的配置文件。示例配置位于 conf/curvine-cluster.toml,主要配置项包括:
Curvine 采用主从架构:
该系统使用 Raft 共识算法确保元数据一致性,并支持多种存储策略(内存、SSD、HDD)以优化性能和成本。
Curvine 在高并发场景下表现优异,支持:
Curvine 采用 Apache License 2.0 开源协议授权。
$ claude mcp add curvine \
-- python -m otcore.mcp_server <graph>