You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Currently implemented scenarios :
22
22
23
23
## pre-requisites
24
24
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`
26
26
27
27
```bash
28
28
cf create-service redis plan benchmark-redis-storage
@@ -31,30 +31,31 @@ Currently implemented scenarios :
31
31
* You need to have **pip3** installed to download vendor packages
32
32
* You need to be logged in your org/space and ready to **cf push**
33
33
34
-
# Usage
34
+
## configuration
35
35
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`
37
40
38
-
### summary
41
+
# Usage
39
42
40
43
API exposes 2 routes :
41
44
42
-
* /run : will add an entry in redis queue to start benchmarks.
45
+
* /run : will add an entry in redis queue to start benchmarks.
* /metrics (`to be implemented`) : returns results in prometheus format
45
48
46
-
### configuration
49
+
Just curl `api_url`/run to start benchmarks, results will appear on `api_url`/results as soon as they are available.
47
50
48
-
API needs to be binded to `benchmark-redis-storage`, otherwise it will fail.
49
-
API will look forexternal services and will dynamically configure itself, if it doesn't find any external servicesin addition to `benchmark-redis-storage`, it will fail.
51
+
If you run a new bench, it will create new results, and so on.
50
52
51
-
## Worker
53
+
# Architecture
52
54
53
-
### summary
55
+
## API
54
56
55
-
backend reads the queue and runs benchmarks
57
+
API uses Flask & Celery to provide API and queuing
56
58
57
-
### configuration
59
+
## worker
58
60
59
-
Worker needs to be binded to `benchmark-redis-storage`, otherwise it will fail.
60
-
Worker will look forexternal services and will dynamically configure itself, if it doesn't find any external servicesin addition to `benchmark-redis-storage`, it will fail.
0 commit comments