-
-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Error: write EPIPE" on lambda errors (it worsens with provisioned concurrency) #801
Comments
Hmm the |
No, we don't establish any database connection. this code only deals with connections (REST) when queried (graphQL query); so not at start time. |
additional context; this Lambda is running in a VPC, and we have two scheduled benchmarking runs that occur every 10 and 30 minutes, respectively. currently, that's the only source of traffic to the Lambda. we're also running |
What do you have configured for the lambda memory size? You probably already know this, but with lower memory limits such as 128mb the CPU is also limited, so having a lot of 15s is pretty long though even in that case, I would start by throwing a few |
for the vast majority of invocations, we've been noticing roughly ~5s of initialization, so had initially ruled that out. there's no harm in bumping it, though, even if it's temporary. re: getting to the if (env.NODE_ENV !== NODE_ENV_TEST) {
server = app.listen({ port: env.PORT }, (): void => {
logger.info(`🚀 Server ready at http://localhost:${env.PORT}/playground`);
});
} (where will do both and report back |
Interesting yea, really strange that it's intermittent. Regarding cold-start time you could try a bundler, just eliminating the requires alone seems to help quite a bit, but let me know if you find anything suspicious! |
Hi @tj, as a follow-up, we upgraded the lambda to 12.x and the errors regarding the "Uncaught Exception" went away. We are still giving it till the end of the week to make sure we are in the clear tho. |
Nice! Glad you found it, sounds good though I'll close in a few days if it seems like things are good to go |
Prerequisites
up upgrade
)-v, --verbose
flag.Description
We have been using Up for our lambda solution (express server) for a while now (~2 years) and
we were seeing some errors like this (but not that frequently):
to provide a bit more context, we also get an odd message coming almost an hour after this error shows up.
We decided to add provisioned concurrency and noticed that this error started happening more often.
Currently, this problem is producing 500 to some of our consumers.
Steps to Reproduce
not sure I can describe this in a generic way but we see it quite often with or without provisioned concurrency.
Love Up?
We are using Up pro currently.
The text was updated successfully, but these errors were encountered: