Skip to content

Commit

Permalink
feat: Update instructions for running traffic generator
Browse files Browse the repository at this point in the history
Bug: N/A
Change-Id: Ibf6cbada4cf6e02ca18c47a4b80655f1e8be2dd3
GitOrigin-RevId: 3c01cb3abde5b52a3754a65e9a6c2b3c106bec96
  • Loading branch information
Privacy Sandbox Team authored and copybara-github committed Dec 17, 2024
1 parent f955804 commit 607faa1
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/roma/byob/benchmark/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,18 @@ pkg_files(
for user in DISTROLESS_USERS
]

# builders/tools/bazel-debian build //src/roma/byob/benchmark:traffic_generator_root_image.tar
# docker load -i bazel-bin/src/roma/byob/benchmark/traffic_generator_root_image_tar/tarball.tar
# docker run --privileged --volume="${PWD}"/dist:/tmp/runsc-log --cpus=64 --memory=512gb \
# -it --entrypoint=sh \
# privacy-sandbox/roma-byob/traffic_generator:v1-root
"""
(Optional) Step 1: Make ProcessRequest in dispatcher.h async by removing wait
for worker and returning early with an error.
Step 2: Run the following from a command line:
builders/tools/bazel-debian build //src/roma/byob/benchmark:traffic_generator_root_image.tar
docker load -i bazel-bin/src/roma/byob/benchmark/traffic_generator_root_image_tar/tarball.tar
docker run --privileged --volume="${PWD}"/dist:/tmp/runsc-log --cpus=64 --memory=512gb \
privacy-sandbox/roma-byob/traffic_generator:v1-root \
--num_workers=84 --queries_per_second=10 --burst_size=14 \
--num_queries=1000 --sandbox=off --lib_mounts="" --binary_path="/udf/sample_go_udf"
"""

[
roma_byob_image(
name = "traffic_generator_{}_image".format(user.flavor),
Expand Down

0 comments on commit 607faa1

Please sign in to comment.