mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 09:41:57 +00:00
Scale up pyapp in example
This commit is contained in:
@@ -9,9 +9,9 @@ make run
|
||||
# "architecture"
|
||||
|
||||
```
|
||||
curl -> pyapp --> goapp -> elasticsearch
|
||||
|
|
||||
--> qotd -> internet
|
||||
|
|
||||
--> redis
|
||||
curl -> pyapp (x2) --> goapp (x2) -> elasticsearch (x3)
|
||||
|
|
||||
--> qotd -> internet
|
||||
|
|
||||
--> redis
|
||||
```
|
||||
|
||||
@@ -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():
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user