Skip to content

Commit 3534384

Browse files
committed
updating readme.md
1 parent d8f5dec commit 3534384

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Currently implemented scenarios :
2222

2323
## pre-requisites
2424

25-
* This application first needs a redis service in order to store result and queue awaiting benchmarks. This service name should start with `benchmark-redis-storage`
25+
* This application first needs a redis service in order to store result and queue awaiting benchmarks. This service name should **start with** `benchmark-redis-storage`
2626

2727
```bash
2828
cf create-service redis plan benchmark-redis-storage
@@ -31,30 +31,31 @@ Currently implemented scenarios :
3131
* You need to have **pip3** installed to download vendor packages
3232
* You need to be logged in your org/space and ready to **cf push**
3333

34-
# Usage
34+
## configuration
3535

36-
## API
36+
* Open **deploy_on_cf.sh**
37+
* Fill `APP_REDIS_STORAGE` with redis service you previously created
38+
* Fill `APP_SERVICES_TO_BENCH` variable with services you wish to bench. If you want to bench multiple services, separate them with a space
39+
* run `./deploy_on_cf.sh`
3740

38-
### summary
41+
# Usage
3942

4043
API exposes 2 routes :
4144

42-
* /run : will add an entry in redis queue to start benchmarks.
45+
* /run : will add an entry in redis queue to start benchmarks.
4346
* /results : returns JSON object containing benchmarks results
4447
* /metrics (`to be implemented`) : returns results in prometheus format
4548

46-
### configuration
49+
Just curl `api_url`/run to start benchmarks, results will appear on `api_url`/results as soon as they are available.
4750

48-
API needs to be binded to `benchmark-redis-storage`, otherwise it will fail.
49-
API will look for external services and will dynamically configure itself, if it doesn't find any external services in addition to `benchmark-redis-storage`, it will fail.
51+
If you run a new bench, it will create new results, and so on.
5052

51-
## Worker
53+
# Architecture
5254

53-
### summary
55+
## API
5456

55-
backend reads the queue and runs benchmarks
57+
API uses Flask & Celery to provide API and queuing
5658

57-
### configuration
59+
## worker
5860

59-
Worker needs to be binded to `benchmark-redis-storage`, otherwise it will fail.
60-
Worker will look for external services and will dynamically configure itself, if it doesn't find any external services in addition to `benchmark-redis-storage`, it will fail.
61+
Worker uses Celery to run tasks

0 commit comments

Comments
 (0)