- S3
putObject
anduploadFile
- Invoking other lambdas
- Publishing to
SNS
topics - Custom actions (e.g. write to Neo4J)
By default only 10% of traced actions actually get logged.
config: | |
target: "http://localhost:3003" | |
phases: | |
- duration: 1 | |
arrivalRate: 1 | |
scenarios: | |
- flow: | |
- get: | |
url: "/" | |
- get: |
- post: | |
url: "/some/url" | |
formData: | |
firstName: "Jerry" | |
lastName: "Winston" | |
headers: | |
authorization: "Bearer {{access_token}}" |
// | |
// Lambda's timeout needs to be >5 seconds, 10 should do | |
// | |
var startedAt = new Date(); | |
var interval = setInterval(function () { | |
console.log(startedAt, new Date()); | |
}, 1000); |
config: | |
target: "http://localhost:8080" | |
phases: | |
- duration: 60 | |
arrivalRate: 1 | |
processor: "./processor.js" | |
scenarios: | |
- name: "Load the options page" | |
flow: | |
- get: |
{ | |
"config": { | |
"target": "http://localhost", | |
"phases": [ | |
{"duration": 10, "arrivalRate": 20} | |
] | |
}, | |
"scenarios": [ | |
{ | |
"flow": [ |
node server.js | |
# npm install artillery | |
./node_modules/.bin/artillery run large_payload.json |