Skip to content
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

Update rally cmd to use corpora generated by agent data #8941

Merged
merged 4 commits into from
Aug 24, 2022

Conversation

lahsivjar
Copy link
Contributor

@lahsivjar lahsivjar commented Aug 24, 2022

Motivation/summary

Remove old rally/gencorpora code in favor of systemtest's gencorpora command which generates ES corpora based on agent data. With this PR make rally command can be executed to generate the required corpora and use it with rally to benchmark a local ES cluster.

The PR also removes the cat_bulk.py script. We don't have feature parity with the script as the script can be used to allow developers to run the cat_bulk server independently and send traces to it using a custom code to generate ES corpora. The feature can be added as a new command in systemtest and all the building blocks for the same are already present however, I have not added it since there is no current use case for it.

Checklist

- [ ] Update CHANGELOG.asciidoc
- [ ] Update package changelog.yml (only if changes to apmpackage have been made)

  • Documentation has been updated (verified that the document dev_docs/rally.md holds valid)

How to test these changes

  1. Start a local ES cluster (can use ./testing/stack-monitoring.sh
  2. Run make rally
  3. Observe the generated rally summary to assert its success

Related issues

Part of #8754

* Remove cat_bulk and old gencorpora api in favor of
systemtest's gencorpora command which generates ES corpora
based on agent data.
@lahsivjar lahsivjar requested a review from a team August 24, 2022 03:29
@mergify
Copy link
Contributor

mergify bot commented Aug 24, 2022

This pull request does not have a backport label. Could you fix it @lahsivjar? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-7.x is the label to automatically backport to the 7.x branch.
  • backport-7./d is the label to automatically backport to the 7./d branch. /d is the digit

NOTE: backport-skip has been added to this pull request.

@mergify mergify bot added the backport-skip Skip notification from the automated backport with mergify label Aug 24, 2022
@apmmachine
Copy link
Contributor

apmmachine commented Aug 24, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-08-24T05:36:56.602+0000

  • Duration: 28 min 32 sec

Test stats 🧪

Test Results
Failed 0
Passed 129
Skipped 0
Total 129

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate and publish the docker images.

  • /test windows : Build & tests on Windows.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

rally: $(PYTHON_BIN)/esrally rally/corpora
@$(PYTHON_BIN)/esrally race \
--track-path=rally \
--track-params=expected_cluster_health:yellow,bulk_size:$(RALLY_BULK_SIZE) \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[For reviewers] The expected cluster health for local ES cluster will be yellow since APM integration requires 2 shards but we only launch 1 ES node in local. I plan to add a separate command to run rally for ESS that will have expected cluster health as green.

@apmmachine
Copy link
Contributor

apmmachine commented Aug 24, 2022

📚 Go benchmark report

Diff with the main branch

name                                                                                              old time/op    new time/op    delta
pkg:github.com/elastic/apm-server/internal/agentcfg goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/internal/decoder goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/internal/model/modelindexer goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/internal/processor/stream goos:linux goarch:amd64
BackendProcessor-12                                                                                 0.00ns ±54%    0.00ns ±30%  +54.81%  (p=0.032 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel2/errors_transaction_id.ndjson-12         18.2µs ± 9%    21.9µs ±15%  +20.32%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel2/invalid-event-type.ndjson-12            2.75µs ± 4%    2.66µs ± 1%   -3.37%  (p=0.016 n=5+4)
BackendProcessorParallel/BenchmarkBackendProcessorParallel2/ratelimit.ndjson-12                     76.3µs ±18%    59.8µs ±13%  -21.74%  (p=0.032 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel2/transactions-huge_traces.ndjson-12      16.4µs ±13%    19.5µs ±13%  +19.21%  (p=0.032 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel4/errors.ndjson-12                        25.9µs ± 4%    28.8µs ±10%  +11.28%  (p=0.032 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel4/invalid-json-event.ndjson-12            2.67µs ± 6%    3.23µs ±11%  +20.85%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel4/invalid-json-metadata.ndjson-12         4.34µs ± 6%    3.99µs ± 7%   -8.06%  (p=0.032 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel8/errors_transaction_id.ndjson-12         6.50µs ± 1%    6.58µs ± 2%   +1.31%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel8/transactions.ndjson-12                  15.6µs ± 3%    15.1µs ± 1%   -3.34%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel8/transactions_spans.ndjson-12            19.1µs ± 1%    18.5µs ± 1%   -3.05%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel8/transactions_spans_rum.ndjson-12        2.69µs ± 1%    2.60µs ± 1%   -3.25%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel8/unknown-span-type.ndjson-12             8.24µs ± 1%    7.94µs ± 1%   -3.64%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/errors.ndjson-12                      10.9µs ± 1%    10.2µs ± 3%   -6.32%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/errors_2.ndjson-12                    8.64µs ± 1%    8.46µs ± 1%   -2.07%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/errors_rum.ndjson-12                  2.19µs ± 1%    2.14µs ± 1%   -2.36%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/events.ndjson-12                      15.7µs ± 2%    15.3µs ± 1%   -2.75%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/heavy.ndjson-12                       1.59ms ± 1%    1.55ms ± 1%   -2.17%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/invalid-event-type.ndjson-12           798ns ± 2%     772ns ± 1%   -3.26%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/invalid-event.ndjson-12               3.59µs ± 1%    3.51µs ± 1%   -2.14%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/invalid-json-event.ndjson-12          1.28µs ± 1%    1.24µs ± 2%   -3.49%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/invalid-json-metadata.ndjson-12       1.98µs ± 0%    1.92µs ± 1%   -2.98%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/invalid-metadata-2.ndjson-12           487ns ± 1%     480ns ± 1%   -1.54%  (p=0.024 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/metadata-null-values.ndjson-12        1.00µs ± 5%    0.97µs ± 1%   -3.33%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/metadata.ndjson-12                    1.28µs ± 2%    1.24µs ± 2%   -2.54%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/metricsets.ndjson-12                  6.18µs ± 1%    6.00µs ± 2%   -2.84%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/optional-timestamps.ndjson-12         3.12µs ± 1%    3.04µs ± 2%   -2.48%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/otel-bridge.ndjson-12                 3.88µs ± 1%    3.78µs ± 1%   -2.55%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/span-links.ndjson-12                  1.84µs ± 1%    1.81µs ± 1%   -1.59%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/spans.ndjson-12                       15.9µs ± 1%    15.3µs ± 2%   -3.31%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/transactions-huge_traces.ndjson-12    4.99µs ± 1%    4.83µs ± 2%   -3.07%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/transactions.ndjson-12                13.3µs ± 2%    13.0µs ± 1%   -2.41%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/transactions_spans.ndjson-12          16.6µs ± 1%    16.1µs ± 1%   -3.12%  (p=0.029 n=4+4)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/unknown-span-type.ndjson-12           6.99µs ± 2%    6.83µs ± 1%   -2.20%  (p=0.016 n=5+5)
pkg:github.com/elastic/apm-server/internal/publish goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/x-pack/apm-server/aggregation/spanmetrics goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/x-pack/apm-server/aggregation/txmetrics goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/x-pack/apm-server/sampling goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/x-pack/apm-server/sampling/eventstorage goos:linux goarch:amd64

name                                                                                              old alloc/op   new alloc/op   delta
pkg:github.com/elastic/apm-server/internal/agentcfg goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/internal/decoder goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/internal/model/modelindexer goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/internal/processor/stream goos:linux goarch:amd64
BackendProcessorParallel/BenchmarkBackendProcessorParallel2/metadata.ndjson-12                      5.41kB ± 0%    5.51kB ± 2%   +1.88%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel4/errors_transaction_id.ndjson-12         22.0kB ± 1%    22.2kB ± 1%   +0.88%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel8/invalid-event.ndjson-12                 10.4kB ± 1%    10.3kB ± 1%   -0.93%  (p=0.032 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel8/invalid-metadata-2.ndjson-12            3.21kB ± 1%    3.17kB ± 1%   -1.18%  (p=0.032 n=5+5)
pkg:github.com/elastic/apm-server/internal/publish goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/x-pack/apm-server/aggregation/spanmetrics goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/x-pack/apm-server/aggregation/txmetrics goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/x-pack/apm-server/sampling goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/x-pack/apm-server/sampling/eventstorage goos:linux goarch:amd64
ReadEvents/json_codec/1_events-12                                                                   8.24kB ± 0%    8.24kB ± 0%   -0.02%  (p=0.000 n=4+5)
ReadEvents/json_codec_big_tx/199_events-12                                                          1.34MB ± 0%    1.34MB ± 0%   -0.05%  (p=0.048 n=5+4)

name                                                                                              old allocs/op  new allocs/op  delta
pkg:github.com/elastic/apm-server/internal/agentcfg goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/internal/decoder goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/internal/model/modelindexer goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/internal/processor/stream goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/internal/publish goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/x-pack/apm-server/aggregation/spanmetrics goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/x-pack/apm-server/aggregation/txmetrics goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/x-pack/apm-server/sampling goos:linux goarch:amd64
pkg:github.com/elastic/apm-server/x-pack/apm-server/sampling/eventstorage goos:linux goarch:amd64

name                                                                                              old speed      new speed      delta
pkg:github.com/elastic/apm-server/internal/processor/stream goos:linux goarch:amd64
BackendProcessorParallel/BenchmarkBackendProcessorParallel2/errors_transaction_id.ndjson-12        211MB/s ± 8%   176MB/s ±17%  -16.36%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel2/invalid-event-type.ndjson-12           142MB/s ± 4%   147MB/s ± 1%   +3.44%  (p=0.016 n=5+4)
BackendProcessorParallel/BenchmarkBackendProcessorParallel2/ratelimit.ndjson-12                   56.0MB/s ±16%  71.0MB/s ±12%  +26.85%  (p=0.032 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel2/transactions-huge_traces.ndjson-12     194MB/s ±12%   164MB/s ±13%  -15.78%  (p=0.032 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel4/errors.ndjson-12                       245MB/s ± 4%   221MB/s ±10%   -9.76%  (p=0.032 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel4/invalid-json-event.ndjson-12           220MB/s ± 6%   183MB/s ±10%  -17.02%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel4/invalid-json-metadata.ndjson-12        103MB/s ± 6%   112MB/s ± 7%   +8.81%  (p=0.032 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel8/errors_transaction_id.ndjson-12        588MB/s ± 1%   581MB/s ± 2%   -1.29%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel8/transactions.ndjson-12                 363MB/s ± 3%   375MB/s ± 1%   +3.43%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel8/transactions_spans.ndjson-12           305MB/s ± 1%   314MB/s ± 1%   +3.15%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel8/transactions_spans_rum.ndjson-12       429MB/s ± 1%   443MB/s ± 1%   +3.36%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel8/unknown-span-type.ndjson-12            401MB/s ± 1%   416MB/s ± 1%   +3.77%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/errors.ndjson-12                     581MB/s ± 2%   621MB/s ± 3%   +6.77%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/errors_2.ndjson-12                   546MB/s ± 1%   557MB/s ± 1%   +2.11%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/errors_rum.ndjson-12                 866MB/s ± 1%   886MB/s ± 1%   +2.42%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/events.ndjson-12                     473MB/s ± 2%   487MB/s ± 1%   +2.81%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/heavy.ndjson-12                      251MB/s ± 1%   257MB/s ± 1%   +2.22%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/invalid-event-type.ndjson-12         490MB/s ± 2%   507MB/s ± 1%   +3.36%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/invalid-event.ndjson-12              213MB/s ± 0%   218MB/s ± 1%   +2.19%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/invalid-json-event.ndjson-12         457MB/s ± 1%   474MB/s ± 2%   +3.63%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/invalid-json-metadata.ndjson-12      226MB/s ± 0%   233MB/s ± 1%   +3.08%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/invalid-metadata-2.ndjson-12         895MB/s ± 1%   909MB/s ± 1%   +1.57%  (p=0.032 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/metadata-null-values.ndjson-12       527MB/s ± 4%   544MB/s ± 1%   +3.37%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/metadata.ndjson-12                   973MB/s ± 2%   999MB/s ± 2%   +2.60%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/metricsets.ndjson-12                 412MB/s ± 1%   424MB/s ± 2%   +2.92%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/optional-timestamps.ndjson-12        329MB/s ± 1%   338MB/s ± 2%   +2.56%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/otel-bridge.ndjson-12                485MB/s ± 1%   498MB/s ± 1%   +2.61%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/span-links.ndjson-12                 371MB/s ± 1%   377MB/s ± 1%   +1.61%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/spans.ndjson-12                      506MB/s ± 1%   524MB/s ± 2%   +3.42%  (p=0.008 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/transactions-huge_traces.ndjson-12   636MB/s ± 1%   656MB/s ± 2%   +3.18%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/transactions.ndjson-12               426MB/s ± 2%   436MB/s ± 1%   +2.46%  (p=0.016 n=5+5)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/transactions_spans.ndjson-12         350MB/s ± 1%   361MB/s ± 1%   +3.21%  (p=0.029 n=4+4)
BackendProcessorParallel/BenchmarkBackendProcessorParallel200/unknown-span-type.ndjson-12          473MB/s ± 2%   484MB/s ± 1%   +2.25%  (p=0.016 n=5+5)

report generated with https://pkg.go.dev/golang.org/x/perf/cmd/benchstat

Copy link
Member

@axw axw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I just ran make rally/corpora locally, and it failed:

$ make rally/corpora 
2022/08/24 13:20:50 Building apm-server...
make[1]: Entering directory '/home/andrew/projects/apm-server'
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
/home/andrew/.gimme/versions/go1.18.5.linux.amd64/bin/go build -o build/apm-server-linux-amd64 -trimpath -buildmode=pie -ldflags "-s -X github.com/elastic/beats/v7/libbeat/version.commit=bbad2e2726fb002c131ed6a6437607c6f9ff3956 -X github.com/elastic/beats/v7/libbeat/version.buildTime=2022-08-24T11:44:28+08:00" ./x-pack/apm-server
make[1]: Leaving directory '/home/andrew/projects/apm-server'
2022/08/24 13:20:53 Built /home/andrew/projects/apm-server/build/apm-server-linux-amd64
2022-08-24T13:20:53.030+0800    ERROR   kibana  kibana/connecting_client.go:77  failed to obtain connection to Kibana: fail to get the Kibana version: HTTP GET request to http://localhost:5601/api/status fails: fail to execute the HTTP GET request: Get "http://localhost:5601/api/status": dial tcp 127.0.0.1:5601: connect: connection refused. Response:  {"service.name": "apm-server", "ecs.version": "1.6.0"}
github.com/elastic/apm-server/systemtest/gencorpora.StreamAPMServerLogs
        /home/andrew/projects/apm-server/systemtest/gencorpora/apmserver.go:65
main.run.func2
        /home/andrew/projects/apm-server/systemtest/cmd/gencorpora/main.go:68
golang.org/x/sync/errgroup.(*Group).Go.func1
        /home/andrew/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57
2022-08-24T13:20:54.462+0800    ERROR   kibana  kibana/connecting_client.go:77  failed to obtain connection to Kibana: fail to get the Kibana version: HTTP GET request to http://localhost:5601/api/status fails: fail to execute the HTTP GET request: Get "http://localhost:5601/api/status": dial tcp 127.0.0.1:5601: connect: connection refused. Response:  {"service.name": "apm-server", "ecs.version": "1.6.0"}
github.com/elastic/apm-server/systemtest/gencorpora.StreamAPMServerLogs
        /home/andrew/projects/apm-server/systemtest/gencorpora/apmserver.go:65
main.run.func2
        /home/andrew/projects/apm-server/systemtest/cmd/gencorpora/main.go:68
golang.org/x/sync/errgroup.(*Group).Go.func1
        /home/andrew/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57

That's because apm-server is configured with Kibana credentials, so it tries and fails to connect to Kibana. We should probably disable Kibana config:

diff --git a/systemtest/gencorpora/apmserver.go b/systemtest/gencorpora/apmserver.go
index ad782310b..18720e287 100644
--- a/systemtest/gencorpora/apmserver.go
+++ b/systemtest/gencorpora/apmserver.go
@@ -41,6 +41,7 @@ func NewAPMServer(ctx context.Context, esHost string) *apmservertest.Server {
        waitForIntegration := false
        srv.Config.WaitForIntegration = &waitForIntegration
        srv.Config.Output.Elasticsearch.Hosts = []string{esHost}
+       srv.Config.Kibana = nil
        return srv
 }

@lahsivjar
Copy link
Contributor Author

I just ran make rally/corpora locally, and it failed:
That's because apm-server is configured with Kibana credentials, so it tries and fails to connect to Kibana. We should probably disable Kibana config:

Ah, thanks I will create a commit to fix this. I always run it with stack-monitoring.sh which also starts Kibana so never noticed it.

@lahsivjar lahsivjar enabled auto-merge (squash) August 24, 2022 05:39
@lahsivjar lahsivjar merged commit e78f994 into elastic:main Aug 24, 2022
@lahsivjar lahsivjar deleted the 8754_rally-script branch August 24, 2022 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-skip Skip notification from the automated backport with mergify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants