Merge pull request #2871 from kubernetes/rename-jobs-work-queue-1

Rename work-queue-1
This commit is contained in:
Andrew Chen
2017-03-16 13:04:12 -07:00
committed by GitHub
8 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ toc:
- title: Running Jobs - title: Running Jobs
section: section:
- docs/tasks/job/parallel-processing-expansion.md - docs/tasks/job/parallel-processing-expansion.md
- docs/tasks/job/work-queue-1/index.md - docs/tasks/job/coarse-parallel-processing-work-queue/index.md
- docs/tasks/job/fine-parallel-processing-work-queue/index.md - docs/tasks/job/fine-parallel-processing-work-queue/index.md
- title: Accessing Applications in a Cluster - title: Accessing Applications in a Cluster
@@ -262,7 +262,7 @@ The pattern names are also links to examples and more detailed description.
| Pattern | Single Job object | Fewer pods than work items? | Use app unmodified? | Works in Kube 1.1? | | Pattern | Single Job object | Fewer pods than work items? | Use app unmodified? | Works in Kube 1.1? |
| -------------------------------------------------------------------- |:-----------------:|:---------------------------:|:-------------------:|:-------------------:| | -------------------------------------------------------------------- |:-----------------:|:---------------------------:|:-------------------:|:-------------------:|
| [Job Template Expansion](/docs/user-guide/jobs/expansions) | | | ✓ | ✓ | | [Job Template Expansion](/docs/user-guide/jobs/expansions) | | | ✓ | ✓ |
| [Queue with Pod Per Work Item](/docs/tasks/job/work-queue-1/) | ✓ | | sometimes | ✓ | | [Queue with Pod Per Work Item](/docs/tasks/job/coarse-parallel-processing-work-queue/) | ✓ | | sometimes | ✓ |
| [Queue with Variable Pod Count](/docs/tasks/job/fine-parallel-processing-work-queue/) | ✓ | ✓ | | ✓ | | [Queue with Variable Pod Count](/docs/tasks/job/fine-parallel-processing-work-queue/) | ✓ | ✓ | | ✓ |
| Single Job with Static Work Assignment | ✓ | | ✓ | | | Single Job with Static Work Assignment | ✓ | | ✓ | |
@@ -278,7 +278,7 @@ Here, `W` is the number of work items.
| Pattern | `.spec.completions` | `.spec.parallelism` | | Pattern | `.spec.completions` | `.spec.parallelism` |
| -------------------------------------------------------------------- |:-------------------:|:--------------------:| | -------------------------------------------------------------------- |:-------------------:|:--------------------:|
| [Job Template Expansion](/docs/tasks/job/parallel-processing-expansion/) | 1 | should be 1 | | [Job Template Expansion](/docs/tasks/job/parallel-processing-expansion/) | 1 | should be 1 |
| [Queue with Pod Per Work Item](/docs/tasks/job/work-queue-1/) | W | any | | [Queue with Pod Per Work Item](/docs/tasks/job/coarse-parallel-processing-work-queue/) | W | any |
| [Queue with Variable Pod Count](/docs/tasks/job/fine-parallel-processing-work-queue/) | 1 | any | | [Queue with Variable Pod Count](/docs/tasks/job/fine-parallel-processing-work-queue/) | 1 | any |
| Single Job with Static Work Assignment | W | any | | Single Job with Static Work Assignment | W | any |
@@ -167,7 +167,7 @@ We will use the `amqp-consume` utility to read the message
from the queue and run our actual program. Here is a very simple from the queue and run our actual program. Here is a very simple
example program: example program:
{% include code.html language="python" file="worker.py" ghlink="/docs/tasks/job/work-queue-1/worker.py" %} {% include code.html language="python" file="worker.py" ghlink="/docs/tasks/job/coarse-parallel-processing-work-queue/worker.py" %}
Now, build an image. If you are working in the source Now, build an image. If you are working in the source
tree, then change directory to `examples/job/work-queue-1`. tree, then change directory to `examples/job/work-queue-1`.
@@ -205,7 +205,7 @@ Here is a job definition. You'll need to make a copy of the Job and edit the
image to match the name you used, and call it `./job.yaml`. image to match the name you used, and call it `./job.yaml`.
{% include code.html language="yaml" file="job.yaml" ghlink="/docs/tasks/job/work-queue-1/job.yaml" %} {% include code.html language="yaml" file="job.yaml" ghlink="/docs/tasks/job/coarse-parallel-processing-work-queue/job.yaml" %}
In this example, each pod works on one item from the queue and then exits. In this example, each pod works on one item from the queue and then exits.
So, the completion count of the Job corresponds to the number of work items So, the completion count of the Job corresponds to the number of work items
+1 -1
View File
@@ -4,4 +4,4 @@ title: Coarse Parallel Processing using a Work Queue
{% include user-guide-content-moved.md %} {% include user-guide-content-moved.md %}
[Coarse Parallel Processing Using a Work Queue](/docs/tasks/job/work-queue-1/) [Coarse Parallel Processing Using a Work Queue](/docs/tasks/job/coarse-parallel-processing-work-queue/)
+1 -1
View File
@@ -247,7 +247,7 @@ func TestExampleObjectSchemas(t *testing.T) {
"http-liveness": {&api.Pod{}}, "http-liveness": {&api.Pod{}},
"http-liveness-named-port": {&api.Pod{}}, "http-liveness-named-port": {&api.Pod{}},
}, },
"../docs/tasks/job/work-queue-1": { "../docs/tasks/job/coarse-parallel-processing-work-queue": {
"job": {&batch.Job{}}, "job": {&batch.Job{}},
}, },
"../docs/tasks/job/fine-parallel-processing-work-queue": { "../docs/tasks/job/fine-parallel-processing-work-queue": {