adding new images for change in voting app .yml

finishing touches on documenting updated .yml

modifed more images and text per new .yml config

more updates to images

Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
This commit is contained in:
Victoria Bialas 2017-02-21 17:09:11 -08:00
parent 1599102f5b
commit 74ddfa90eb
9 changed files with 12 additions and 9 deletions

View File

@ -79,12 +79,12 @@ We'll deploy the application from the manager.
```
docker@manager:~$ docker stack services vote
ID NAME MODE REPLICAS IMAGE
0y3q6lgc0drn vote_result replicated 2/2 dockersamples/examplevotingapp_result:before
fvsaqvuec4yw vote_redis replicated 2/2 redis:alpine
igev2xk5s3zo vote_worker replicated 1/1 dockersamples/examplevotingapp_worker:latest
vpfjr9b0qc01 vote_visualizer replicated 1/1 dockersamples/visualizer:stable
wctxjnwl22k4 vote_vote replicated 2/2 dockersamples/examplevotingapp_vote:before
zp0zyvgaguox vote_db replicated 1/1 postgres:9.4
1zkatkq7sf8n vote_result replicated 1/1 dockersamples/examplevotingapp_result:after
hphnxyt93h42 vote_redis replicated 2/2 redis:alpine
jd0wafumrcil vote_vote replicated 2/2 dockersamples/examplevotingapp_vote:after
msief4cqme29 vote_visualizer replicated 1/1 dockersamples/visualizer:stable
qa6y8sfmtjoz vote_db replicated 1/1 postgres:9.4
w04bh1vumnep vote_worker replicated 1/1 dockersamples/examplevotingapp_worker:latest
```
## What's next?

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 KiB

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 KiB

After

Width:  |  Height:  |  Size: 107 KiB

View File

@ -175,7 +175,7 @@ services:
depends_on:
- db
deploy:
replicas: 2
replicas: 1
update_config:
parallelism: 2
delay: 10s
@ -196,6 +196,8 @@ services:
delay: 10s
max_attempts: 3
window: 120s
placement:
constraints: [node.role == manager]
visualizer:
image: dockersamples/visualizer:stable

View File

@ -48,9 +48,10 @@ action here. For example:
* Two of the services are replicated:
* `vote` (represented in the visulizer by `vote_vote`)
* `result` (represented in the visulizer by `vote_result`)
* `redis` (represented in the visulizer by `vote_redis`)
Both of these services are configured as `replicas: 2` under the `deploy` key. In the current state of this app, one of each is running on a manager and on a worker. However, since neither are explicitly constrained to either node in `docker-stack.yml`, all or some of these services could be running on either node, depending on workload and re-balancing choices we've left to the swarm orchestration.
Both of these services are configured as `replicas: 2` under
the `deploy` key. In the current state of this app (shown in the visualizer), one of each of these containers is running on a manager and on a worker. However, since neither are explicitly constrained to either node in `docker-stack.yml`, all or some of these services could be running on either node, depending on workload and re-balancing choices we've left to the swarm orchestration.
![replicas in yml](images/replicas-constraint.png)