running artillery test from aws lambda against apollo graphql router #3580
Replies: 4 comments 12 replies
-
You have two options:
Is there a reason you're using your own load generator Lambda instead of using the built-in |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot @hassy for your kind reply! We are working on upgrading artillery to the latest. In the meantime I keep testing, but a couple weird things. the result is very normal - When I bumped up arrivalRate to 200, there are lots of errors like EMFILE, ETIMEOUT, EBUSY, etc. So I reduced arrivalRate to 40 and scenario called 5 simple POST as you suggested. This config removed EMFILE and EBUSY, and gave me only ETIMEOUT. So I thought the apollo-router capacity is not enough, so I increased apollo-router instances to 2 .. but the number of ETIMEOUT didn't improve. Even I bumped up to 8 instances, ETIMEOUT stays the same (I increased request timeout to 60s for this test). Any thoughts on this? Could be an old artillery issue? Thank you. duration: 30 Scenarios launched: 1200 |
Beta Was this translation helpful? Give feedback.
-
I wonder if you could share the minimal artillery node dependencies? the decencies property in package.json. It would be very appreciated! (we are having a hard time to make it work using EFS or DataSync, etc) |
Beta Was this translation helpful? Give feedback.
-
We created a docker image based lambda and are running artillery from there. Still we got issues with tons of ETIMEOUT. The ecs services are behind ALB and ECS/ALB/etc all generated from our cfn templates which have been around last couple years so I don't think there are problem with them. What we eventually want to achieve is ... 1000 users per sec during 10 min. Do you think if we could achieve this using artillery/lambda? Currently with the config below, we need to run 36 ecs tasks to remove all ETIMEOUT from artillery.. This doesn't look all right, does it? BTW, we just use one very simple POST request in scenario. Thank you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
We have our own lambda function and try to run load test from it against apollo graphql router. Our goal is as below
- duration: 60
arrivalRate: 1000
(scenario is just to make a simple post request)
but even with this config -
- duration: 30
arrivalRate: 250
we got results similar to the below .. lots of Errors.
Codes:
200: 5948
Errors:
EMFILE: 1087
ETIMEDOUT: 464
EAI_AGAIN: 1
Do you have any recommendation how to improve our test? What exactly mean EMFILE? It would be very appreciated!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions