Skip to content

Comments

Add distribution version in workload parameters#752

Closed
bowenlan-amzn wants to merge 1 commit intoopensearch-project:mainfrom
bowenlan-amzn:distribution_version
Closed

Add distribution version in workload parameters#752
bowenlan-amzn wants to merge 1 commit intoopensearch-project:mainfrom
bowenlan-amzn:distribution_version

Conversation

@bowenlan-amzn
Copy link
Member

@bowenlan-amzn bowenlan-amzn commented Feb 21, 2025

Description

Enhance workload configuration by automatically adding the cluster distribution version to workload parameters if not explicitly provided. This ensures that the distribution version is always available for workload json.

Apart from adding it, I have to exclude it from the check, some history from here
elastic/rally#478

Issues Resolved

opensearch-project/opensearch-benchmark-workloads#574

Testing

  • New functionality includes testing

[Describe how this change was tested]


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@IanHoang
Copy link
Collaborator

@bowenlan-amzn Can you rebase the latest main changes onto this branch? This should address the ARM build

Enhance workload configuration by automatically adding the cluster distribution version to workload parameters if not explicitly provided. This ensures that the distribution version is always available for workload json.

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>
@@ -115,3 +115,5 @@ recipes/ccr/ccr-target-hosts.json

# Tracker tracks
tracks/
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: "Tracks" can be removed, and a comment can be added for the Visual Studio suffix like with the other entries.

Comment on lines +194 to +197
workload_params = self.cfg.opts("workload", "params", mandatory=False)
if "distribution_version" not in workload_params: # if not provided by user, we add the one we just got
workload_params["distribution_version"] = distribution_version
self.cfg.add(config.Scope.applicationOverride, "workload", "params", workload_params)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add tests for this feature, perhaps a couple of unit tests. Thanks.

@IanHoang
Copy link
Collaborator

@bowenlan-amzn Do you have any updates on this PR?

@IanHoang
Copy link
Collaborator

Turning this into a draft as no response

@IanHoang
Copy link
Collaborator

Closing this PR as this is inactive. Feel free to reopen if needed

@IanHoang IanHoang closed this Aug 12, 2025
@gkamat
Copy link
Collaborator

gkamat commented Aug 16, 2025

Closed to aid the 2.0 release, will reopen immediately after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants