Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is in this PR?
We have done several runs to evaluate performace of enclaver/nitro-enclaves. As part of these tests I have created a simple GO server that works using a self signed SSL certificate and does a naive crypto operation.
API used to test - https://localhost:8082/hello
Instance Setup
Provision a new nitro instance and follow the steps here to setup up nitro_allocator.yaml file https://edgebit.io/enclaver/docs/0.x/guide-first/
Modify the file
/etc/nitro_enclaves/allocator.yaml
tocpu_count: 4
Restart the nitro-allocator service using
sudo systemctl restart nitro-enclaves-allocator.service
JMeter setup
SSH into your machine and run the following commands
Running the tests
The script
./run_in_enclave.sh
contains the commands to start the nitro enclave.Comment out the 4vcpu part of the script if you are using 2cvpu to start enclaves and vice-versa.
./run_in_enclave.sh
./run_jmeter_test.sh
Sample results
With 4vCPUs -
summary = 12000 in 00:00:42 = 283.7/s Avg: 155 Min: 12 Max: 2707 Err: 0 (0.00%)
With 2vCPUs -
summary = 12000 in 00:00:41 = 290.3/s Avg: 108 Min: 14 Max: 1755 Err: 0 (0.00%)
As you can see there is no significant difference in TPS by increasing the number of vCPUs.