Comments (4)
I've been communicating with New Relic support and they suggested setting
NEW_RELIC_PACKAGE_REPORTING_ENABLED: false
https://docs.newrelic.com/docs/apm/agents/python-agent/configuration/python-agent-configuration/#package-reporting-enabled
To bypass this (new) code:
https://github.com/newrelic/newrelic-python-agent/blame/2b14392a19517a20012d281fbaaedfc2497f4fc3/newrelic/core/environment.py#L207-L245
This makes a big difference to us. The start time is now more 0.1s, rather than 1.5s (for the reduced lambda) or 5s (for our real ones).
from newrelic-lambda-layers.
As a workaround, we might have to downgrade to arn:aws:lambda:ap-southeast-2:451483290750:layer:NewRelicPython310:1
, but that's seems like it would be quite old. Are there change logs for each layer version so we can work out the risks?
from newrelic-lambda-layers.
For a really simple lambda:
print("imported")
def handler(*args):
print("started")
The numbers are a fair bit smaller, and somewhat different (regression from v1 -> v2, and v15 -> 16), but still bad:
version | time from AWS START to print("started") |
---|---|
17 | 1.5-1.6 |
16 | 1.5-1.6 |
15 | 0.5-0.6 |
... | (similar) |
2 | 0.5-0.6 |
1 | 0.2 |
There's also ~0.6s of init time overhead on a cold start, from INIT_START
to print("imported")
, which seems to be constant across all versions.
That is, a cold start of a lambda with New Relic instrumentation seems to spend a fair chunk of time (>2s) on the New Relic overhead.
from newrelic-lambda-layers.
Observing the same slowdown (from few hundreds of milliseconds to 8-15 seconds) for arn:aws:lambda:eu-central-1:451483290750:layer:NewRelicPython311:11
from newrelic-lambda-layers.
Related Issues (20)
- lambda layer: drop node 14 HOT 1
- Layer is a resource hog, requiring a large amount of memory for acceptable cold start HOT 40
- Stop publishing Node 14 layers
- NR node lambda layer doesn't initialize function when using Provisioned Concurrency & fails to find handler when exported within promise HOT 3
- Java 21 Layer HOT 1
- Reduce boilerplate for build and publish scripts
- When NewRelic is down, the lambda (nodejs) falls in timeout and emits a slow response HOT 4
- Node lambda layer tries to access SSM for license key HOT 1
- Newrelic instrumented lambdas are failing with /lib64/libc.so.6: version `GLIBC_2.34' not found HOT 1
- Visibility into the Lambda layer version in New Relic HOT 1
- Migrate CircleCI jobs to GHA
- Investigate if NR lambda layer sequence is important for successful instrumentation HOT 2
- Update the test dependencies for Python and restore the more recent runtimes HOT 1
- Unable to use New Relic layer in lambda that is already using the aws-lambda-web-adapter layer HOT 1
- Issue with dotnet layer publishing workflow HOT 3
- Missing entity name for lambda logs HOT 5
- Remove Node 16 from layer publishing immediately before the Node agent drops 16 support HOT 3
- Supported runtimes for the extension layer HOT 1
- Missing entity name for lambda 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-layers.