Open farhadbahrehmandhenry opened 3 years ago
run these commands in order to set up and install dependencies
# export AWS_ACCESS_KEY_ID=<> # export AWS_SECRET_ACCESS_KEY=<> # npm install -g serverless@1.38.0 # npm install -g serverless-artillery
run this command to create the script file in your project folder
slsart script -e {URL of endpoint to hit with requests} -d 300 -r 40
run this command in order in your terminal/cmd
# slsart deploy --stage <stack name> --region <region> # slsart invoke -p script.yml --stage <stack name> --region <region> # slsart remove --stage <stack name> --region <region>
go to AWS-console/lambda/your lambda function/monitor/logs and get the result of the test that should contains information like this =>
Request latency min | 106.2 | 104 max | 120007 | 120074.5 median | 77719.6 | 48320.5 p95 | 111082.7 | 114913 p99 | 117409.9 | 119685.7 Scenario counts 0 | 900 (100%) | 900 (100%) Codes 200 | 827 | 311 Errors ESOCKETTIMEDOUT | 73 | 589
This is the result of the serverless-artillery-test with CACHE_TOGGLE.
how to get the result =>
in your terminal/cmd navigate to your project folder
run these commands in order to set up and install dependencies
run this command to create the script file in your project folder
run this command in order in your terminal/cmd
go to AWS-console/lambda/your lambda function/monitor/logs and get the result of the test that should contains information like this =>
Request latency min | 106.2 | 104 max | 120007 | 120074.5 median | 77719.6 | 48320.5 p95 | 111082.7 | 114913 p99 | 117409.9 | 119685.7 Scenario counts 0 | 900 (100%) | 900 (100%) Codes 200 | 827 | 311 Errors ESOCKETTIMEDOUT | 73 | 589
Time Spent