Git Product home page Git Product logo

Comments (8)

darrensmithwtc avatar darrensmithwtc commented on June 3, 2024 1

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.

kolanos avatar kolanos commented on June 3, 2024 1

@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.

kolanos avatar kolanos commented on June 3, 2024

@ftieben Thanks for reporting this issue. Transferred it to the relevant repository.

from newrelic-lambda-extension.

kolanos avatar kolanos commented on June 3, 2024

@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.

ftieben avatar ftieben commented on June 3, 2024

@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.

kolanos avatar kolanos commented on June 3, 2024

@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.

kolanos avatar kolanos commented on June 3, 2024

@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.

kolanos avatar kolanos commented on June 3, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.