Comments (8)
Hi
Just to add to the above, we suffered an outage in production last night for a number of lambdas due to this as well I believe, but it was due to the cloud-collectors in EU failing, as opposed to config issues.
2021-05-18T02:29:24.456+01:00 | START RequestId: 83c5dbdc-4872-4bc5-9a99-b606fbe9a70a Version: $LATEST | |
---|---|---|
2021-05-18T02:29:31.279+01:00 | [NR_EXT] Request failed. Ran out of retries after 3 attempts. | |
2021-05-18T02:29:31.279+01:00 | [NR_EXT] Telemetry client error: Post "https://cloud-collector.eu01.nr-data.net/aws/lambda/v1": context deadline exceeded (Client.Timeout exceeded while awaiting headers) | |
2021-05-18T02:29:31.279+01:00 | [NR_EXT] Sent 0/1 New Relic payload batches with 1 log events successfully in 6020.657ms (6000ms to transmit 0.0kB). | |
2021-05-18T02:29:31.280+01:00 | END RequestId: 83c5dbdc-4872-4bc5-9a99-b606fbe9a70a |
Is there a workaround we can put in for now to stop this happening until a proper fix is available? Reducing the timeout or whatever for the NR_EXT?
Thanks
from newrelic-lambda-extension.
@ftieben I was able to reproduce and subsequently simulate this issue. Have a pull request in the works (#75), should be merged and released early next week.
from newrelic-lambda-extension.
@ftieben Thanks for reporting this issue. Transferred it to the relevant repository.
from newrelic-lambda-extension.
@ftieben Thanks for the update. We have released a refactor of our timeout logic which should (hopefully) do the right thing in most cases. We hope you'll give it a try and report any issues you run into. In this specific use case, the extension should no longer suffer from a runaway HTTP request and will instead exit within the deadlines provided by Lambda.
from newrelic-lambda-extension.
@kolanos Thanks a lot for the work you are doing, I've tried an example Lambda with the new Layer Version
arn:aws:lambda:eu-central-1:451483290750:layer:NewRelicNodeJS12X:44
The Lambda is working fine while it can reach NR but it is still failing as soon as I put it into an VPC without allowed egress:
Response:
{
"errorMessage": "2021-06-04T06:59:10.097Z 72f018d0-250d-4326-86e6-6e3b4b1e3c49 Task timed out after 5.00 seconds"
}
Logs:
START RequestId: 72f018d0-250d-4326-86e6-6e3b4b1e3c49 Version: $LATEST
[NR_EXT] New Relic Lambda Extension starting up
EXTENSION Name: newrelic-lambda-extension State: Registered Events: [INVOKE,SHUTDOWN]
END RequestId: 72f018d0-250d-4326-86e6-6e3b4b1e3c49
REPORT RequestId: 72f018d0-250d-4326-86e6-6e3b4b1e3c49 Duration: 5004.30 ms Billed Duration: 3000 ms Memory Size: 128 MB Max Memory Used: 32 MB
2021-06-04T06:59:10.097Z 72f018d0-250d-4326-86e6-6e3b4b1e3c49 Task timed out after 5.00 seconds
from newrelic-lambda-extension.
@ftieben Thanks for the update. What is the timeout configured for the function? And are you reporting to the New Relic EU region? Going to try to reproduce this as closely as I can. Any other details that might be relevant would be useful as well.
from newrelic-lambda-extension.
@ftieben We have released the deadline tweaks in #75. Hope you'll give it a try and report any issues. Thanks again.
from newrelic-lambda-extension.
@ftieben Closing this for now. Please feel free to re-open if you continue to have issues. Am reasonably confident this case is now handled gracefully by the extension. Thanks again.
from newrelic-lambda-extension.
Related Issues (20)
- Duplicates Logs HOT 7
- fatal error: concurrent map read and map write HOT 1
- Event API support?
- `make dist` *** No rule to make target `dist'
- ARM64 Extension has intermittent delay (10 seconds+) after registering for logs
- PHP Support HOT 6
- NEW_RELIC_EXTENSION_SEND_FUNCTION_LOGS requires lower-case 'true', but is documented with 'TRUE' HOT 1
- nodejs 14 lambda log duration over 120 seconds HOT 6
- 403 Forbidden error HOT 16
- Node Handler check, is not handling mjs file extension HOT 1
- Lambda container support
- `NewRelicNodeJS14X:91` and higher is broken
- Using deprecated agent API in python example HOT 1
- execution fails when using integration with sam local invoke HOT 1
- Dotnet core 6 support for lambda
- Duplicates Logs HOT 3
- send on closed channel panic at logserver/logserver.go:185 HOT 5
- New Relic Extension shutting down HOT 2
- trace.id Log Property is Always Empty String
- Add additional parameters to logs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from newrelic-lambda-extension.