You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh-cn/docs/tutorials/stateful-application/zookeeper.md
+20-22Lines changed: 20 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,8 +122,8 @@ quorum。
122
122
<!--
123
123
ZooKeeper servers keep their entire state machine in memory, and write every mutation to a durable WAL (Write Ahead Log) on storage media. When a server crashes, it can recover its previous state by replaying the WAL. To prevent the WAL from growing without bound, ZooKeeper servers will periodically snapshot them in memory state to storage media. These snapshots can be loaded directly into memory, and all WAL entries that preceded the snapshot may be discarded.
124
124
-->
125
-
ZooKeeper 在内存中保存它们的整个状态机,但是每个改变都被写入一个在存储介质上的
126
-
持久 WAL(Write Ahead Log)。
125
+
ZooKeeper 在内存中保存它们的整个状态机,但是每个改变都被写入一个在存储介质上的持久
126
+
WAL(Write Ahead Log)。
127
127
当一个服务器出现故障时,它能够通过回放 WAL 恢复之前的状态。
128
128
为了防止 WAL 无限制的增长,ZooKeeper 服务器会定期的将内存状态快照保存到存储介质。
129
129
这些快照能够直接加载到内存中,所有在这个快照之前的 WAL 条目都可以被安全的丢弃。
@@ -139,10 +139,9 @@ and a [StatefulSet](/docs/concepts/workloads/controllers/statefulset/).
在 Pod 的容器内部,UID 1000 对应用户 zookeeper,GID 1000 对应用户组 zookeeper。
873
871
874
872
从 `zk-0` Pod 获取 ZooKeeper 进程信息。
875
873
@@ -1075,7 +1073,7 @@ In another terminal, terminate the ZooKeeper process in Pod `zk-0` with the foll
1075
1073
The termination of the ZooKeeper process caused its parent process to terminate. Because the `RestartPolicy` of the container is Always, it restarted the parent process.
1076
1074
-->
1077
1075
ZooKeeper 进程的终结导致了它父进程的终止。由于容器的 `RestartPolicy`
1078
-
是 Always,父进程被重启。
1076
+
是 Always,所以父进程被重启。
1079
1077
1080
1078
```
1081
1079
NAME READY STATUS RESTARTS AGE
@@ -1257,7 +1255,7 @@ the clients of your ZooKeeper service will experience an outage until at least o
1257
1255
默认情况下,Kubernetes 可以把 `StatefulSet` 的 Pod 部署在相同节点上。
1258
1256
对于你创建的 3 个服务器的 ensemble 来说,
1259
1257
如果有两个服务器并存于相同的节点上并且该节点发生故障时,ZooKeeper 服务将中断,
1260
-
直至至少一个 Pods 被重新调度。
1258
+
直至至少其中一个 Pod 被重新调度。
1261
1259
1262
1260
<!--
1263
1261
You should always provision additional capacity to allow the processes of critical
@@ -1698,6 +1696,6 @@ You should always allocate additional capacity for critical services so that the
1698
1696
and provisioning method, to ensure that all storage is reclaimed.
0 commit comments