0

通过 helm 图表在 Kubernetes 中部署 Onos[3 个节点] + Atomix[3 个节点] 集群和 NFS 上的持久卷。集群工作正常,在重启的情况下,能够从持久性中恢复数据。

但是,如果我让系统空闲超过 8-10 小时并重新启动集群(不清除持久性),则恢复的数据不正确。它正在恢复旧数据,而不是重新启动集群的最新状态。

持久性数据看起来像

-rw-r--r-- 1 root root        64 Oct  2 00:14 raft-partition-1.conf
-rw-r--r-- 1 root root 536870912 Oct  2 00:21 raft-partition-1-122025.snapshot
-rw-r--r-- 1 root root  33554432 Oct  2 00:21 raft-partition-1-9.log
-rw-r--r-- 1 root root  33554432 Oct  2 00:22 raft-partition-1-10.log
-rw-r--r-- 1 root root  33554432 Oct  2 00:22 raft-partition-1-11.log
-rw-r--r-- 1 root root  33554432 Oct  2 00:22 raft-partition-1-12.log
-rw-r--r-- 1 root root  33554432 Oct  2 00:22 raft-partition-1-13.log
-rw-r--r-- 1 root root  33554432 Oct  2 00:24 raft-partition-1-14.log
-rw-r--r-- 1 root root  33554432 Oct  2 00:24 raft-partition-1-15.log
-rw-r--r-- 1 root root  33554432 Oct  2 00:24 raft-partition-1-16.log
-rw-r--r-- 1 root root  33554432 Oct  2 00:24 raft-partition-1-17.log
-rw-r--r-- 1 root root  33554432 Oct  2 11:05 raft-partition-1-18.log
-rw-r--r-- 1 root root  33554432 Oct  2 11:05 raft-partition-1-19.log
-rw-r--r-- 1 root root  33554432 Oct  2 11:06 raft-partition-1-20.log
-rw-r--r-- 1 root root  33554432 Oct  2 11:06 raft-partition-1-21.log
-rw-r--r-- 1 root root  33554432 Oct  2 11:06 raft-partition-1-22.log
-rw-r--r-- 1 root root       128 Oct  2 11:10 raft-partition-1.meta
-rw-r--r-- 1 root root  33554432 Oct  2 11:10 raft-partition-1-23.log
-rw-r--r-- 1 root root  33554432 Oct  2 11:11 raft-partition-1-24.log
-rw-r--r-- 1 root root  33554432 Oct  2 11:11 raft-partition-1-25.log
-rw-r--r-- 1 root root  33554432 Oct  2 11:11 raft-partition-1-26.log
-rw-r--r-- 1 root root  33554432 Oct  2 15:25 raft-partition-1-27.log

提前致谢 !!

4

0 回答 0