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>
|
@ -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?
|
||||
|
|
Before Width: | Height: | Size: 101 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 116 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 197 KiB After Width: | Height: | Size: 107 KiB |
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||

|
||||
|
||||
|
|