North-Seattle-College / ad440-winter2021-thursday-repo

NSC AD 440 Winter 2021 Thursday cohort practicum repo
Apache License 2.0
2 stars 27 forks source link

[TASK]Using Serverless Artillery 40 requests with cache /users (NO PR) #292

Open theKunte opened 3 years ago

theKunte commented 3 years ago

Using Serverless Artillery 40 requests with cache /users (NO PR)

theKunte commented 3 years ago

This is the result for the serverless-artillery-test with caching:

How to test the serverless-artillery:

# 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 https://nsc-func-dev-usw2-tuesday.azurewebsites.net/users -d 300 -r 40


# slsart deploy --stage <stack name> --region <region>
# slsart invoke -p script.yml --stage <stack name> --region  <region>
# slsart remove --stage <stack name> --region  <region>
Input Results --
Scenarios launched 900
Scenarios completed 899
Requests completed 899
RPS sent 14.92
Request latency 27.7   
min 27.7
max 179
median 29.8
p95 39.9
p99 83.8
Scenario counts    
0 900 (100%)
Codes    
200 899
Errors    
ESOCKETTIMEDOUT 1

Time Spent

DATE ACTIVITY TIME
03/22/2021 Research how to do slsart-test for users 1hr
03/23/2021 Test slsart-users endpoint with cache ~ 1hr
03/24/2021 Test slsart-users endpoint with again to verify results ~ 1hr
03/24/2021 updated PR ~20 min