-
Notifications
You must be signed in to change notification settings - Fork 292
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
Increase lambda extension request timeout #7986
Increase lambda extension request timeout #7986
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 53 metrics, 10 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.43.0-SNAPSHOT~d499e4edd1, baseline=1.43.0-SNAPSHOT~df51f63bab
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.098 s) : 0, 1098190
Total [baseline] (10.584 s) : 0, 10583640
Agent [candidate] (1.091 s) : 0, 1091301
Total [candidate] (10.415 s) : 0, 10415216
section appsec
Agent [baseline] (1.221 s) : 0, 1221170
Total [baseline] (10.691 s) : 0, 10690983
Agent [candidate] (1.227 s) : 0, 1227099
Total [candidate] (10.736 s) : 0, 10735630
section iast
Agent [baseline] (1.216 s) : 0, 1215946
Total [baseline] (10.964 s) : 0, 10964120
Agent [candidate] (1.233 s) : 0, 1232713
Total [candidate] (11.009 s) : 0, 11009114
section profiling
Agent [baseline] (1.288 s) : 0, 1287547
Total [baseline] (10.849 s) : 0, 10849415
Agent [candidate] (1.293 s) : 0, 1293441
Total [candidate] (10.773 s) : 0, 10773229
gantt
title petclinic - break down per module: candidate=1.43.0-SNAPSHOT~d499e4edd1, baseline=1.43.0-SNAPSHOT~df51f63bab
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (697.826 ms) : 0, 697826
BytebuddyAgent [candidate] (691.356 ms) : 0, 691356
GlobalTracer [baseline] (320.755 ms) : 0, 320755
GlobalTracer [candidate] (318.437 ms) : 0, 318437
AppSec [baseline] (55.032 ms) : 0, 55032
AppSec [candidate] (54.919 ms) : 0, 54919
Remote Config [baseline] (714.585 µs) : 0, 715
Remote Config [candidate] (686.263 µs) : 0, 686
Telemetry [baseline] (10.051 ms) : 0, 10051
Telemetry [candidate] (12.225 ms) : 0, 12225
section appsec
BytebuddyAgent [baseline] (708.301 ms) : 0, 708301
BytebuddyAgent [candidate] (712.237 ms) : 0, 712237
GlobalTracer [baseline] (313.986 ms) : 0, 313986
GlobalTracer [candidate] (315.237 ms) : 0, 315237
AppSec [baseline] (166.483 ms) : 0, 166483
AppSec [candidate] (165.578 ms) : 0, 165578
Remote Config [baseline] (645.228 µs) : 0, 645
Remote Config [candidate] (641.837 µs) : 0, 642
Telemetry [baseline] (7.876 ms) : 0, 7876
Telemetry [candidate] (8.291 ms) : 0, 8291
IAST [baseline] (20.497 ms) : 0, 20497
IAST [candidate] (22.713 ms) : 0, 22713
section iast
BytebuddyAgent [baseline] (809.215 ms) : 0, 809215
BytebuddyAgent [candidate] (821.419 ms) : 0, 821419
GlobalTracer [baseline] (306.096 ms) : 0, 306096
GlobalTracer [candidate] (309.816 ms) : 0, 309816
AppSec [baseline] (58.096 ms) : 0, 58096
AppSec [candidate] (58.288 ms) : 0, 58288
Remote Config [baseline] (620.607 µs) : 0, 621
Remote Config [candidate] (611.454 µs) : 0, 611
Telemetry [baseline] (7.472 ms) : 0, 7472
Telemetry [candidate] (7.548 ms) : 0, 7548
IAST [baseline] (20.788 ms) : 0, 20788
IAST [candidate] (21.143 ms) : 0, 21143
section profiling
ProfilingAgent [baseline] (94.614 ms) : 0, 94614
ProfilingAgent [candidate] (92.366 ms) : 0, 92366
BytebuddyAgent [baseline] (686.31 ms) : 0, 686310
BytebuddyAgent [candidate] (692.289 ms) : 0, 692289
GlobalTracer [baseline] (401.016 ms) : 0, 401016
GlobalTracer [candidate] (401.468 ms) : 0, 401468
AppSec [baseline] (55.286 ms) : 0, 55286
AppSec [candidate] (55.177 ms) : 0, 55177
Remote Config [baseline] (668.558 µs) : 0, 669
Remote Config [candidate] (664.416 µs) : 0, 664
Telemetry [baseline] (10.678 ms) : 0, 10678
Telemetry [candidate] (12.087 ms) : 0, 12087
Profiling [baseline] (94.637 ms) : 0, 94637
Profiling [candidate] (92.389 ms) : 0, 92389
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.43.0-SNAPSHOT~d499e4edd1, baseline=1.43.0-SNAPSHOT~df51f63bab
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.096 s) : 0, 1096130
Total [baseline] (8.67 s) : 0, 8670229
Agent [candidate] (1.088 s) : 0, 1087551
Total [candidate] (8.648 s) : 0, 8648126
section iast
Agent [baseline] (1.224 s) : 0, 1223773
Total [baseline] (9.169 s) : 0, 9169017
Agent [candidate] (1.216 s) : 0, 1215947
Total [candidate] (9.169 s) : 0, 9169259
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.216 s) : 0, 1215954
Total [baseline] (9.227 s) : 0, 9227133
Agent [candidate] (1.223 s) : 0, 1222696
Total [candidate] (9.173 s) : 0, 9172500
section iast_TELEMETRY_OFF
Agent [baseline] (1.211 s) : 0, 1211422
Total [baseline] (9.162 s) : 0, 9161829
Agent [candidate] (1.212 s) : 0, 1211611
Total [candidate] (9.172 s) : 0, 9171966
gantt
title insecure-bank - break down per module: candidate=1.43.0-SNAPSHOT~d499e4edd1, baseline=1.43.0-SNAPSHOT~df51f63bab
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (697.89 ms) : 0, 697890
BytebuddyAgent [candidate] (691.909 ms) : 0, 691909
GlobalTracer [baseline] (319.007 ms) : 0, 319007
GlobalTracer [candidate] (316.694 ms) : 0, 316694
AppSec [baseline] (54.725 ms) : 0, 54725
AppSec [candidate] (54.66 ms) : 0, 54660
Remote Config [baseline] (681.109 µs) : 0, 681
Remote Config [candidate] (683.738 µs) : 0, 684
Telemetry [baseline] (10.003 ms) : 0, 10003
Telemetry [candidate] (9.863 ms) : 0, 9863
section iast
BytebuddyAgent [baseline] (815.178 ms) : 0, 815178
BytebuddyAgent [candidate] (809.231 ms) : 0, 809231
GlobalTracer [baseline] (307.375 ms) : 0, 307375
GlobalTracer [candidate] (305.992 ms) : 0, 305992
AppSec [baseline] (58.218 ms) : 0, 58218
AppSec [candidate] (57.45 ms) : 0, 57450
IAST [baseline] (21.05 ms) : 0, 21050
IAST [candidate] (21.454 ms) : 0, 21454
Remote Config [baseline] (610.24 µs) : 0, 610
Remote Config [candidate] (609.813 µs) : 0, 610
Telemetry [baseline] (7.528 ms) : 0, 7528
Telemetry [candidate] (7.445 ms) : 0, 7445
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (808.475 ms) : 0, 808475
BytebuddyAgent [candidate] (814.519 ms) : 0, 814519
GlobalTracer [baseline] (306.453 ms) : 0, 306453
GlobalTracer [candidate] (307.803 ms) : 0, 307803
AppSec [baseline] (57.235 ms) : 0, 57235
AppSec [candidate] (57.893 ms) : 0, 57893
IAST [baseline] (21.868 ms) : 0, 21868
IAST [candidate] (20.658 ms) : 0, 20658
Remote Config [baseline] (681.543 µs) : 0, 682
Remote Config [candidate] (602.497 µs) : 0, 602
Telemetry [baseline] (7.556 ms) : 0, 7556
Telemetry [candidate] (7.397 ms) : 0, 7397
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (805.094 ms) : 0, 805094
BytebuddyAgent [candidate] (805.167 ms) : 0, 805167
GlobalTracer [baseline] (306.046 ms) : 0, 306046
GlobalTracer [candidate] (305.776 ms) : 0, 305776
AppSec [baseline] (58.284 ms) : 0, 58284
AppSec [candidate] (58.386 ms) : 0, 58386
IAST [baseline] (20.331 ms) : 0, 20331
IAST [candidate] (20.584 ms) : 0, 20584
Remote Config [baseline] (607.282 µs) : 0, 607
Remote Config [candidate] (622.689 µs) : 0, 623
Telemetry [baseline] (7.363 ms) : 0, 7363
Telemetry [candidate] (7.415 ms) : 0, 7415
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 13 metrics, 15 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.43.0-SNAPSHOT~d499e4edd1, baseline=1.43.0-SNAPSHOT~df51f63bab
dateFormat X
axisFormat %s
section baseline
no_agent (1.361 ms) : 1342, 1380
. : milestone, 1361,
appsec (1.744 ms) : 1719, 1768
. : milestone, 1744,
appsec_no_iast (1.754 ms) : 1729, 1779
. : milestone, 1754,
iast (1.508 ms) : 1485, 1531
. : milestone, 1508,
profiling (1.513 ms) : 1490, 1536
. : milestone, 1513,
tracing (1.503 ms) : 1478, 1527
. : milestone, 1503,
section candidate
no_agent (1.361 ms) : 1342, 1380
. : milestone, 1361,
appsec (1.743 ms) : 1718, 1768
. : milestone, 1743,
appsec_no_iast (1.752 ms) : 1726, 1777
. : milestone, 1752,
iast (1.519 ms) : 1497, 1542
. : milestone, 1519,
profiling (1.545 ms) : 1520, 1569
. : milestone, 1545,
tracing (1.497 ms) : 1472, 1522
. : milestone, 1497,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.43.0-SNAPSHOT~d499e4edd1, baseline=1.43.0-SNAPSHOT~df51f63bab
dateFormat X
axisFormat %s
section baseline
no_agent (376.993 µs) : 357, 397
. : milestone, 377,
iast (489.74 µs) : 468, 511
. : milestone, 490,
iast_FULL (651.17 µs) : 630, 673
. : milestone, 651,
iast_GLOBAL (516.844 µs) : 494, 539
. : milestone, 517,
iast_HARDCODED_SECRET_DISABLED (492.862 µs) : 471, 514
. : milestone, 493,
iast_INACTIVE (454.854 µs) : 434, 476
. : milestone, 455,
iast_TELEMETRY_OFF (488.956 µs) : 467, 511
. : milestone, 489,
tracing (447.503 µs) : 427, 468
. : milestone, 448,
section candidate
no_agent (372.866 µs) : 353, 393
. : milestone, 373,
iast (491.323 µs) : 470, 513
. : milestone, 491,
iast_FULL (654.96 µs) : 633, 677
. : milestone, 655,
iast_GLOBAL (529.188 µs) : 507, 552
. : milestone, 529,
iast_HARDCODED_SECRET_DISABLED (501.862 µs) : 480, 524
. : milestone, 502,
iast_INACTIVE (461.983 µs) : 441, 483
. : milestone, 462,
iast_TELEMETRY_OFF (478.399 µs) : 457, 500
. : milestone, 478,
tracing (448.194 µs) : 427, 469
. : milestone, 448,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics. Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.43.0-SNAPSHOT~d499e4edd1, baseline=1.43.0-SNAPSHOT~df51f63bab
dateFormat X
axisFormat %s
section baseline
no_agent (14.941 s) : 14941000, 14941000
. : milestone, 14941000,
appsec (15.202 s) : 15202000, 15202000
. : milestone, 15202000,
iast (18.561 s) : 18561000, 18561000
. : milestone, 18561000,
iast_GLOBAL (17.993 s) : 17993000, 17993000
. : milestone, 17993000,
profiling (14.904 s) : 14904000, 14904000
. : milestone, 14904000,
tracing (15.133 s) : 15133000, 15133000
. : milestone, 15133000,
section candidate
no_agent (14.742 s) : 14742000, 14742000
. : milestone, 14742000,
appsec (15.158 s) : 15158000, 15158000
. : milestone, 15158000,
iast (19.003 s) : 19003000, 19003000
. : milestone, 19003000,
iast_GLOBAL (18.073 s) : 18073000, 18073000
. : milestone, 18073000,
profiling (14.716 s) : 14716000, 14716000
. : milestone, 14716000,
tracing (15.306 s) : 15306000, 15306000
. : milestone, 15306000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.43.0-SNAPSHOT~d499e4edd1, baseline=1.43.0-SNAPSHOT~df51f63bab
dateFormat X
axisFormat %s
section baseline
no_agent (1.468 ms) : 1456, 1479
. : milestone, 1468,
appsec (2.339 ms) : 2298, 2380
. : milestone, 2339,
iast (2.076 ms) : 2024, 2128
. : milestone, 2076,
iast_GLOBAL (2.124 ms) : 2072, 2177
. : milestone, 2124,
profiling (1.95 ms) : 1907, 1992
. : milestone, 1950,
tracing (1.916 ms) : 1876, 1955
. : milestone, 1916,
section candidate
no_agent (1.473 ms) : 1461, 1485
. : milestone, 1473,
appsec (2.343 ms) : 2301, 2384
. : milestone, 2343,
iast (2.076 ms) : 2024, 2128
. : milestone, 2076,
iast_GLOBAL (2.12 ms) : 2068, 2172
. : milestone, 2120,
profiling (1.961 ms) : 1918, 2003
. : milestone, 1961,
tracing (1.924 ms) : 1884, 1965
. : milestone, 1924,
|
a7d44aa
to
d499e4e
Compare
@@ -44,7 +44,7 @@ public class LambdaHandler { | |||
private static final String START_INVOCATION = "/lambda/start-invocation"; | |||
private static final String END_INVOCATION = "/lambda/end-invocation"; | |||
|
|||
private static final Long REQUEST_TIMEOUT_IN_S = 1L; | |||
private static final Long REQUEST_TIMEOUT_IN_S = 3L; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems really weird that a 1 second timeout wouldn't be enough. Have you been able to reproduce these errors?
If you were able to reproduce the errors, did this change solve it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://datadoghq.atlassian.net/browse/SLES-1952?focusedCommentId=2021461 for more details.
Maybe implementing a retry mechanism would be a better solution, WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this solution is fine 😄 Since we've been able to reproduce the error in self monitoring, in a perfect world we would build a layer from this branch and test it out for a bit. But since this change is otherwise harmless, I think just going ahead with it is fine. Though, for the customer's sake, I still think we should test this change out in self monitoring to ensure it indeed fixes the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that's a good point. This might solve the problem, but maybe not. We only saw it in self monitoring once every few days, so we'll have to wait a while and see if the messages ever pops up again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Customers are occasionally getting
If customers are seeing this kind of error, we might want to add this PR in the release notes (as bug fix or enhancement, whatever fits best)
Hi! 👋 Thanks for your pull request! 🎉 To help us review it, please make sure to:
If you need help, please check our contributing guidelines. |
What Does This Do
Increases timeout for communicating with the Lambda extension.
Motivation
Customers are occasionally getting
This should resolve this.
Additional Notes
Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any usefull labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issueJira ticket: SLES-1952