





















早期版本zerofs 是单写,可以多read only 节点,现在已经支持ha 模式,机制上是通过复制
[cache]
dir = "/var/lib/zerofs/cache"
disk_size_gb = 10.0
[storage]
url = "s3://my-bucket/fs"
encryption_password = "change-me" # identical on both nodes
[servers.ninep]
addresses = ["0.0.0.0:5564"] # clients connect here
[replication]
node_id = "node-a"
role = "leader"
replication_listen = "10.0.0.1:9000" # this node receives ships + heartbeats
peers = ["10.0.0.2:9000"] # node-b's replication_listen
[cache]
dir = "/var/lib/zerofs/cache"
disk_size_gb = 10.0
[storage]
url = "s3://my-bucket/fs"
encryption_password = "change-me"
[servers.ninep]
addresses = ["0.0.0.0:5564"]
[replication]
node_id = "node-b"
role = "standby"
replication_listen = "10.0.0.2:9000"
peers = ["10.0.0.1:9000"]
目前是zerofs 的mount,内部自己处理
zerofs mount 10.0.0.1:5564,10.0.0.2:5564 /mnt/zerofs
详细内部技术细节,官方有介绍,可以学习下
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。