3FS
Containerized Deployment of a Multi-Node FoundationDB Cluster and Operations
· ☕ 5 min read
1. Generate a Cluster ID 1 cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1 The examples below use CLUSTER_ID=fKbIga9RHP79OIx1. 2. On the First Node Configure environment variables 1 2 3 4 5 6 7 8 9 10 export CONTAINER_CLI=nerdctl export IMAGE=foundationdb/foundationdb:7.1.26 export CLUSTER_ID=fKbIga9RHP79OIx1 export FDB_INSTANCE_NAME=fdb_server export FDB_CLUSTER_FIRST_IP=$(hostname -I | awk '{print $1}') export FDB_PUBLIC_IP=$(hostname -I | awk '{print $1}') export FDB_PORT=4500 export FDB_DIR=/data/ops/fdb/$FDB_INSTANCE_NAME Clean up old data 1 2 3 $CONTAINER_CLI rm -f $FDB_INSTANCE_NAME mv $FDB_DIR $FDB_DIR.

3FS: Key Technologies and Design
· ☕ 4 min read
1. Direct IO Direct IO bypasses the operating system’s page cache and interacts with hardware devices directly. Characteristics of Direct IO: Lots of new data, so no caching is needed Low memory footprint Sequential reads and writes of large files For synchronous read operations above a threshold (1MB by default), the 3FS client converts them into AIO operations (opening the file in Direct IO mode) to improve read performance.

DeepSeek 3FS Operations Guide
· ☕ 16 min read
Notes on some DeepSeek 3FS operations, continually updated. 1. Basic Concepts and Cautions Chain A Chain is made up of several Targets, and each Target is a replica of the storage. When all commits are ready, all Targets in a Chain are consistent. Targets on the same Chain cannot be on the same node.

Deploying the DeepSeek 3FS Storage System in Containers
· ☕ 12 min read
1. Deployment Plan Before starting the containerized deployment, a few requirements: To simplify delivery, only one image is needed For reliability, deploy as many replicas as possible Start different services through different parameters Inject configuration through environment variables and render it into configuration files Below is the deployment plan for DeepSeek 3FS:

3FS: Some Performance Tests
· ☕ 3 min read
1. Hardware Tests There are two NVMe SSDs (SAMSUNG MZQL27T6HBLA-00A07) and a 3FS cluster made up of two nodes, each with 4 IB ports. 1.1 Single Thread Disk FIO 128 K, read 1 fio -numjobs=1 -fallocate=none -iodepth=2 -ioengine=libaio -direct=1 -rw=read -bs=128K --group_reporting -size=100M -time_based -runtime=30 -name=fio-test -directory=/data/fio 1 Jobs: 1