-
Notifications
You must be signed in to change notification settings - Fork 501
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
[DOC] Distributed Tracing #3951
Comments
@Gaganjuneja: Any idea where in the roadmap we plan to implement this? Which OpenSearch version? |
@Naarcha-AWS - we are targeting 2.8 release |
Hi @rohin - I don't see this item on the roadmap or part of the unified project. Can you confirm this is in 2.8 and is there an issue for it (besides the RFC)? Thanks. |
@rohin Hi, I'm trying to learn whether this issue is still being considered for 2.8. The four issues associated with plans for a first-phase release in 2.8 are currently still open. (#7543, #7544, #7545, and #7546). The only PR I can find associated with any of these issues is #7648. But this appears to be open as well. Do you have any more information about status of this enhancement? Thanks. |
Hi Chris - we are planning to release this with 2.9
On Fri, 2 Jun 2023 at 2:54 AM, Chris Moore ***@***.***> wrote:
@rohin <https://github.com/rohin> Hi, I'm trying to learn whether this
issue is still being considered for 2.8. The four issues associated with
plans for a first-phase release in 2.8 are currently still open. (#7543
<opensearch-project/OpenSearch#7543>, #7544
<opensearch-project/OpenSearch#7544>, #7545
<opensearch-project/OpenSearch#7545>, and #7546
<opensearch-project/OpenSearch#7546> The only
PR I can find associated with any of these issues is #7648
<opensearch-project/OpenSearch#7648>. But this
appears to be open as well. Do you have any more information about status
of this enhancement? Thanks.
cc: @Gaganjuneja <https://github.com/Gaganjuneja>
—
Reply to this email directly, view it on GitHub
<#3951 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC2J7DN7PQKRUYYSM3SZ4LXJECCRANCNFSM6AAAAAAXUITHIA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
--
Rohin Bhargava
|
@rohin A big thanks for the response. |
Moving to 2.10. |
Mentioning new setting for |
@Naarcha-AWS @hdhalter Providing you the details. Please let me know if further details are needed. Distributed Tracing for OpenSearch Requests and tasks. The feature of Distributed Tracing for OpenSearch Requests and tasks offers the ability to trace requests comprehensively, from start to finish, including detailed breakdowns at the task level. This allows us to obtain finely detailed information about latencies and resource utilization. Moreover, it equips us with the means to troubleshoot prolonged queries and indexing requests, enabling us to pinpoint hotspots and performance bottlenecks. By doing so, we can enhance the efficiency of our queries and indexing requests. It's important to note that this feature is currently in development, and in the upcoming releases, we plan to incorporate tracing and spans at various levels of granularity and code paths. RFC - opensearch-project/OpenSearch#6750 Enable the Distributed Tracing Feature Flag The Distributed Tracing feature is currently in the experimental phase for this release. To utilize this feature, you must first enable it and subsequently activate the Tracer using the dynamic setting Enable on a node using a tarball install The flag is toggled using a new jvm parameter that is set either in OPENSEARCH_JAVA_OPTS or in config/jvm.options. OPTION 1: MODIFY JVM.OPTIONS Add the following lines to config/jvm.options before starting the OpenSearch process to enable the feature and its dependency:
OPTION 2: ENABLE FROM AN ENVIRONMENT VARIABLE As an alternative to directly modifying config/jvm.options, you can define the properties by using an environment variable. This can be done in a single command when you start OpenSearch or by defining the variable with export. To add these flags in-line when starting OpenSearch:
If you want to define the environment variable separately, prior to running OpenSearch:
Enable with Docker containers If you’re running Docker, add the following line to docker-compose.yml underneath the opensearch-node and environment section:
Enable for OpenSearch development To enable the distributed feature, you must first enable these features by adding the correct properties to run.gradle before building OpenSearch. See the developer guide for information about to use how Gradle to build OpenSearch.
Enable the distributed tracing Once you've enabled the feature flag, you can enable the tracer using the following dynamic setting. This setting can be adjusted dynamically to enable or disable tracing in the running cluster:
Install the OpenSearch Open Telemetry plugin OpenSearch's distributed tracing framework supports various telemetry solutions through plugins. Currently, an Open Telemetry plugin for OpenSearch is available and must be installed to enable tracing. The plugin is named "telemetry-otel," and you can follow the provided guide for installation instructions. Exporters The distributed tracing feature generates traces and spans for requests and other cluster operations. These spans/traces are initially kept in memory using the Open Telemetry BatchSpanProcessor and are then sent to an Exporter based on configured settings. There are several important components:
Sampling Distributed tracing can generate numerous spans, consuming system resources unnecessarily. To reduce the number of traces/samples, you can enable sampling, which is configured by default for only 1% of all requests. Sampling can be of two types:
Ongoing work and more details can be found in the GitHub RFC at opensearch-project/OpenSearch#8918. Collection of Spans The SpanProcessor writes spans to the exporter, and the choice of Exporter defines the endpoint, which can be logs or gRPC. To collect spans via gRPC, you need to configure the collector as a sidecar process running on each OpenSearch node. From the collectors, these spans can be written to the sync of your choice, such as Jaeger, Prometheus, Grafana, File Store, etc., for further analysis. |
We have 2 PRs open and will update you to merge once that's done. |
@reta, Please take a look and suggest if anything needs to be added/deleted/updated. Thanks! |
@Gaganjuneja @reta I'm the technical writer working on the documentation for 2.10 release. Thank you for providing the draft content. I'll tag you in the doc PR for your technical reviews. |
Hi @Gaganjuneja - Are we targeting 2.11 for this feature? |
Hello @hdhalter, yes. |
What do you want to do?
Tell us about your request. Provide a summary of the request and all versions that are affected.
What other resources are available? Provide links to related issues, POCs, steps for testing, etc.
TBD
The text was updated successfully, but these errors were encountered: