Skip to content

Commit bad7514

Browse files
committed
fix install_import.py, delete ReqBench.py, other minor fix
1 parent 495838a commit bad7514

File tree

7 files changed

+41
-397
lines changed

7 files changed

+41
-397
lines changed

README.md

+6-14
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,12 @@ python3 workload.py
5151
```
5252
and filter out the requirements.csv which only use the packages in `install_import.json` and generate a series of handlers.
5353

54-
In the end, it will output a file called `workloads.json` which contains a series of functions and call trace.
55-
The call trace follows the pattern described in "3.3 Invocation Patterns", [Serverless in the Wild](https://www.usenix.org/conference/atc20/presentation/shahrad).
54+
It will output a file called `workloads.json` which contains a series of functions and call trace.
55+
The frequency of each function is determined by a zipf distribution ($s=1.5$ by default).
5656
`packages.json` is another output that contains the package name, version, top-level modules info (name, and the time/memory cost of importing it).
5757

5858
## Call handlers
59-
In a python file, run
60-
```python
61-
from workload import Workload
62-
tree_path = ""
63-
mem = 600
64-
TASKS = 5
65-
wl = Workload("files/workloads.json")
66-
wl.play({"import_cache_tree": tree_path, "limits.mem_mb": mem},
67-
tasks=TASKS)
68-
```
69-
`tree_path` is the path to the tree, mem is the memory limit for each container,
70-
`TASKS` is the number of maximum parallel requests.
59+
Implement the interface defined in '/ReqBench/platform_adapter/interface.py', we have provide 3 sample implementations
60+
in '/ReqBench/platform_adapter/aws', '/ReqBench/platform_adapter/Docker', and '/ReqBench/platform_adapter/openlambda'.
61+
62+
We have also provided sample testers, they are '/ReqBench/test_docker_platform.py', and '/ReqBench/test_aws.py'.

ReqBench.py

-342
This file was deleted.

0 commit comments

Comments
 (0)