.. | ||
.gitignore | ||
download_and_install_grpc_glibc.sh | ||
grpc_client_glibc.yaml | ||
grpc_server_glibc.yaml | ||
prepare_client_server_glibc.sh | ||
prepare_stress_test_tool.sh | ||
README.md | ||
run_client_on_occlum_glibc.sh | ||
run_server_on_occlum_glibc.sh | ||
run_stress_test.sh |
Run gRPC C++ Client/Server on Occlum
Step 1:
Download, build and install cares, protobuf and gRPC:
./download_and_install_grpc_glibc.sh
Step 2:
Prepare the gRPC C++ Hello World sample project, which consists of a client and server:
./prepare_client_server_glibc.sh
Step 3:
Run the demo server
which will listen on port 50051
on Occlum:
./run_server_on_occlum_glibc.sh
Then you can invoke gRPC service by running client
in a different terminal on Occlum:
./run_client_on_occlum_glibc.sh
And you will see the "Greeter received: Hello world" in the client side output.
Run gRPC stress test by ghz
Step 1:
Prepare the stress test tool:
./prepare_stress_test_tool.sh
Step 2:
Run the demo server
which listen on port 50051
on Occlum:
./run_server_on_occlum_glibc.sh
Then you can run the stress test through:
./run_stress_test.sh [-n <total_requests>] [-c <concurrent_workers>]