[zh] sync and update fine-parallel-processing-work-queue

1. change keyword replicationController to ReplicaSet
2. change word 连续 to 持续
3. other minor changes (e.g: add connection word for readability, add 'shell' for command line input)
pull/26300/head
Yang Jiao 2021-01-30 12:59:38 +08:00 committed by GitHub
parent c782fd6738
commit 4087e33e61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -85,7 +85,7 @@ of deploying Redis scalably and redundantly.
<!--
You could also download the following files directly:
-->
你可以直接下载如下文件:
可以直接下载如下文件:
- [`redis-pod.yaml`](/examples/application/job/redis/redis-pod.yaml)
- [`redis-service.yaml`](/examples/application/job/redis/redis-service.yaml)
@ -121,7 +121,7 @@ Now hit enter, start the redis CLI, and create a list with some work items in it
-->
现在按回车键,启动 redis 命令行界面,然后创建一个存在若干个工作项的列表。
```
```shell
# redis-cli -h redis
redis:6379> rpush job2 "apple"
(integer) 1
@ -214,7 +214,7 @@ your username and push to the Hub with the below commands. Replace
### Push 镜像
对于 [Docker Hub](https://hub.docker.com/),请先用你的用户名给镜像打上标签,
然后使用下面的命令 push 你的镜像到仓库。请将 `<username>` 替换为你自己的用户名。
然后使用下面的命令 push 你的镜像到仓库。请将 `<username>` 替换为你自己的 Hub 用户名。
```shell
docker tag job-wq-2 <username>/job-wq-2
@ -270,7 +270,7 @@ too.
-->
在这个例子中,每个 pod 处理了队列中的多个项目,直到队列中没有项目时便退出。
因为是由工作程序自行检测工作队列是否为空,并且 Job 控制器不知道工作队列的存在,
所以依赖于工作程序在完成工作时发出信号。
依赖于工作程序在完成工作时发出信号。
工作程序以成功退出的形式发出信号表示工作队列已经为空。
所以,只要有任意一个工作程序成功退出,控制器就知道工作已经完成了,所有的 Pod 将很快会退出。
因此,我们将 Job 的完成计数Completion Count设置为 1 。
@ -364,7 +364,6 @@ consider running your background workers with a `replicationController` instead,
and consider running a background processing library such as
[https://github.com/resque/resque](https://github.com/resque/resque).
-->
如果你有连续的后台处理业务,那么可以考虑使用 `replicationController` 来运行你的后台业务,
如果你有持续的后台处理业务,那么可以考虑使用 `ReplicaSet` 来运行你的后台业务,
和运行一个类似 [https://github.com/resque/resque](https://github.com/resque/resque)
的后台处理库。