-
Notifications
You must be signed in to change notification settings - Fork 147
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
[fleet installer] Split the install
command in two
#6766
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 251953 Passed, 2412 Skipped, 21h 51m 4.91s Total Time New Flaky Tests (2)
|
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing the following branches/commits: Execution-time benchmarks measure the whole time it takes to execute a program. And are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are shown in red. The following thresholds were used for comparing the execution times:
Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard. Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph). gantt
title Execution time (ms) FakeDbCommand (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6766) - mean (69ms) : 67, 72
. : milestone, 69,
master - mean (70ms) : 66, 73
. : milestone, 70,
section CallTarget+Inlining+NGEN
This PR (6766) - mean (1,012ms) : 986, 1038
. : milestone, 1012,
master - mean (1,015ms) : 992, 1037
. : milestone, 1015,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6766) - mean (103ms) : 101, 105
. : milestone, 103,
master - mean (103ms) : 101, 105
. : milestone, 103,
section CallTarget+Inlining+NGEN
This PR (6766) - mean (694ms) : 679, 708
. : milestone, 694,
master - mean (688ms) : 668, 709
. : milestone, 688,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6766) - mean (90ms) : 88, 92
. : milestone, 90,
master - mean (90ms) : 88, 91
. : milestone, 90,
section CallTarget+Inlining+NGEN
This PR (6766) - mean (645ms) : 631, 659
. : milestone, 645,
master - mean (645ms) : 629, 661
. : milestone, 645,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6766) - mean (190ms) : 186, 194
. : milestone, 190,
master - mean (190ms) : 185, 194
. : milestone, 190,
section CallTarget+Inlining+NGEN
This PR (6766) - mean (1,101ms) : 1071, 1130
. : milestone, 1101,
master - mean (1,104ms) : 1080, 1128
. : milestone, 1104,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6766) - mean (269ms) : 264, 274
. : milestone, 269,
master - mean (269ms) : 265, 273
. : milestone, 269,
section CallTarget+Inlining+NGEN
This PR (6766) - mean (875ms) : 842, 908
. : milestone, 875,
master - mean (875ms) : 845, 906
. : milestone, 875,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6766) - mean (261ms) : 257, 265
. : milestone, 261,
master - mean (261ms) : 258, 265
. : milestone, 261,
section CallTarget+Inlining+NGEN
This PR (6766) - mean (858ms) : 819, 897
. : milestone, 858,
master - mean (857ms) : 822, 893
. : milestone, 857,
|
Benchmarks Report for tracer 🐌Benchmarks for #6766 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.ActivityBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ILoggerBenchmark - Faster 🎉 Same allocations ✔️
|
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.ILoggerBenchmark.EnrichedLog‑netcoreapp3.1 | 1.143 | 2,423.58 | 2,120.59 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 1.5μs | 0.728ns | 2.73ns | 0.0229 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
netcoreapp3.1 | 2.42μs | 1.2ns | 4.63ns | 0.0218 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
net472 | 2.42μs | 0.772ns | 2.99ns | 0.249 | 0 | 0 | 1.57 KB |
#6766 | EnrichedLog |
net6.0 | 1.48μs | 0.886ns | 3.2ns | 0.0228 | 0 | 0 | 1.64 KB |
#6766 | EnrichedLog |
netcoreapp3.1 | 2.12μs | 1.05ns | 3.79ns | 0.0229 | 0 | 0 | 1.64 KB |
#6766 | EnrichedLog |
net472 | 2.59μs | 1.14ns | 4.41ns | 0.249 | 0 | 0 | 1.57 KB |
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 111μs | 158ns | 593ns | 0.055 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
netcoreapp3.1 | 117μs | 198ns | 767ns | 0 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
net472 | 149μs | 153ns | 591ns | 0.67 | 0.223 | 0 | 4.46 KB |
#6766 | EnrichedLog |
net6.0 | 112μs | 90.1ns | 349ns | 0.0558 | 0 | 0 | 4.28 KB |
#6766 | EnrichedLog |
netcoreapp3.1 | 116μs | 82.7ns | 320ns | 0.0575 | 0 | 0 | 4.28 KB |
#6766 | EnrichedLog |
net472 | 149μs | 73.1ns | 283ns | 0.67 | 0.223 | 0 | 4.46 KB |
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 3μs | 0.605ns | 2.26ns | 0.03 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
netcoreapp3.1 | 4.29μs | 3.24ns | 12.5ns | 0.03 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
net472 | 4.83μs | 1.47ns | 5.71ns | 0.321 | 0 | 0 | 2.02 KB |
#6766 | EnrichedLog |
net6.0 | 2.93μs | 1.13ns | 4.24ns | 0.0307 | 0 | 0 | 2.2 KB |
#6766 | EnrichedLog |
netcoreapp3.1 | 4.13μs | 1.81ns | 7ns | 0.0289 | 0 | 0 | 2.2 KB |
#6766 | EnrichedLog |
net472 | 4.68μs | 2.29ns | 8.57ns | 0.321 | 0 | 0 | 2.02 KB |
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | SendReceive |
net6.0 | 1.35μs | 0.731ns | 2.83ns | 0.0156 | 0 | 0 | 1.14 KB |
master | SendReceive |
netcoreapp3.1 | 1.79μs | 1.35ns | 5.23ns | 0.0152 | 0 | 0 | 1.14 KB |
master | SendReceive |
net472 | 2.09μs | 1ns | 3.88ns | 0.183 | 0 | 0 | 1.16 KB |
#6766 | SendReceive |
net6.0 | 1.4μs | 0.535ns | 2ns | 0.016 | 0 | 0 | 1.14 KB |
#6766 | SendReceive |
netcoreapp3.1 | 1.69μs | 1.04ns | 4.05ns | 0.0152 | 0 | 0 | 1.14 KB |
#6766 | SendReceive |
net472 | 2.16μs | 0.845ns | 3.27ns | 0.184 | 0 | 0 | 1.16 KB |
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 2.77μs | 1.32ns | 4.95ns | 0.0222 | 0 | 0 | 1.6 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.89μs | 4.18ns | 16.2ns | 0.0213 | 0 | 0 | 1.65 KB |
master | EnrichedLog |
net472 | 4.43μs | 1.91ns | 7.4ns | 0.323 | 0 | 0 | 2.04 KB |
#6766 | EnrichedLog |
net6.0 | 2.81μs | 0.759ns | 2.94ns | 0.0225 | 0 | 0 | 1.6 KB |
#6766 | EnrichedLog |
netcoreapp3.1 | 4.06μs | 1.42ns | 4.92ns | 0.0204 | 0 | 0 | 1.65 KB |
#6766 | EnrichedLog |
net472 | 4.24μs | 2.84ns | 11ns | 0.324 | 0 | 0 | 2.04 KB |
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #6766
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑netcoreapp3.1
1.182
775.94
656.23
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net472
1.139
849.95
745.91
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net472
1.120
690.11
615.94
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑netcoreapp3.1 | 1.182 | 775.94 | 656.23 | |
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net472 | 1.139 | 849.95 | 745.91 | |
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net472 | 1.120 | 690.11 | 615.94 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 455ns | 0.131ns | 0.506ns | 0.00803 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 595ns | 0.381ns | 1.48ns | 0.00772 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 688ns | 1.76ns | 6.8ns | 0.0918 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 484ns | 0.0714ns | 0.277ns | 0.00988 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 776ns | 0.455ns | 1.76ns | 0.00936 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 850ns | 0.291ns | 1.13ns | 0.104 | 0 | 0 | 658 B |
#6766 | StartFinishSpan |
net6.0 | 426ns | 0.341ns | 1.32ns | 0.0081 | 0 | 0 | 576 B |
#6766 | StartFinishSpan |
netcoreapp3.1 | 571ns | 0.268ns | 1.04ns | 0.00761 | 0 | 0 | 576 B |
#6766 | StartFinishSpan |
net472 | 616ns | 0.397ns | 1.49ns | 0.0917 | 0 | 0 | 578 B |
#6766 | StartFinishScope |
net6.0 | 480ns | 0.179ns | 0.693ns | 0.00982 | 0 | 0 | 696 B |
#6766 | StartFinishScope |
netcoreapp3.1 | 656ns | 0.189ns | 0.732ns | 0.00953 | 0 | 0 | 696 B |
#6766 | StartFinishScope |
net472 | 747ns | 0.696ns | 2.7ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6766
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.114
653.37
727.97
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.114 | 653.37 | 727.97 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 654ns | 0.411ns | 1.48ns | 0.0098 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 943ns | 1.32ns | 5.12ns | 0.00899 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.12μs | 0.417ns | 1.62ns | 0.104 | 0 | 0 | 658 B |
#6766 | RunOnMethodBegin |
net6.0 | 728ns | 0.301ns | 1.17ns | 0.00978 | 0 | 0 | 696 B |
#6766 | RunOnMethodBegin |
netcoreapp3.1 | 943ns | 0.64ns | 2.48ns | 0.00939 | 0 | 0 | 696 B |
#6766 | RunOnMethodBegin |
net472 | 1.09μs | 0.345ns | 1.34ns | 0.104 | 0 | 0 | 658 B |
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.
LGTM 👍
Summary of changes
Splits the FleetInstaller.exe
install
command in two, and rename some commandsReason for change
Currently "installing" the library and "instrumenting IIS" are tightly coupled; You have to do both. With this change, we split those responsibilities between different commands, which provides us additional flexibility in the future.
Implementation details
install
has been split into two commandsinstall-version
creates the log file, installs into the GAC, and adds the crash tracking key. It has no dependencies on IISenable-iis-instrumentation
runs afterinstall-version
, and enables the IIS instrumentation.reinstall
command has been deleted, as it was unused.uninstall-product
was renamed toremove-iis-instrumentation
(for symmetry)uninstall-version
is unchanged.Test coverage
The split is covered by fleet installer smoke tests in this repo. The larger behaviour will be tracked by e2e tests
Other details
I considered having
enable-instrumentation
and a--type
flag, but this seemed a bit easier, and I don't think we get much benefit from the alternative way, but happy to change it if others feel differently