Scale up pyapp in example

This commit is contained in:
Tom Wilkie
2015-05-27 16:26:52 +00:00
parent 5065223f68
commit f166cb6359
3 changed files with 18 additions and 8 deletions

View File

@@ -9,9 +9,9 @@ make run
# "architecture"
```
curl -> pyapp --> goapp -> elasticsearch
|
--> qotd -> internet
|
--> redis
curl -> pyapp (x2) --> goapp (x2) -> elasticsearch (x3)
|
--> qotd -> internet
|
--> redis
```

View File

@@ -4,7 +4,7 @@ import threading
import logging
import sys
pyapps = ['http://pyapp:5000/']
pyapps = ['http://pyapp1:5000/', 'http://pyapp2:5000/']
concurrency = 5
def do_requests():

View File

@@ -2,8 +2,18 @@ client:
build: client
links:
- qotd
- pyapp
pyapp:
- pyapp1
- pyapp2
pyapp1:
build: pyapp
expose:
- "5000"
links:
- qotd
- redis
- goapp1
- goapp2
pyapp2:
build: pyapp
expose:
- "5000"