Download, build and install cares, protobuf and gRPC:
./download_and_install_grpc_glibc.sh
Prepare the gRPC C++ Hello World sample project, which consists of a client and server:
./prepare_client_server_glibc.sh
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
Prepare the stress test tool:
./prepare_stress_test_tool.sh
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>]