From f166cb6359a46d153062a3a8b3196f46888aa89a Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Wed, 27 May 2015 16:26:52 +0000 Subject: [PATCH] Scale up pyapp in example --- experimental/example/README.md | 10 +++++----- experimental/example/client/client.py | 2 +- experimental/example/docker-compose.yml | 14 ++++++++++++-- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/experimental/example/README.md b/experimental/example/README.md index 46e812bb0..420427b0a 100644 --- a/experimental/example/README.md +++ b/experimental/example/README.md @@ -9,9 +9,9 @@ make run # "architecture" ``` -curl -> pyapp --> goapp -> elasticsearch - | - --> qotd -> internet - | - --> redis +curl -> pyapp (x2) --> goapp (x2) -> elasticsearch (x3) + | + --> qotd -> internet + | + --> redis ``` diff --git a/experimental/example/client/client.py b/experimental/example/client/client.py index a46f66166..9cd3b6ff8 100644 --- a/experimental/example/client/client.py +++ b/experimental/example/client/client.py @@ -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(): diff --git a/experimental/example/docker-compose.yml b/experimental/example/docker-compose.yml index 598e508d3..4ade891fd 100644 --- a/experimental/example/docker-compose.yml +++ b/experimental/example/docker-compose.yml @@ -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"