Skip to content

I want to disable cluster.routing.use_strict_weighted_shard_preference on managed opensearch cluster domain

0

I'm unable to use the Alerting plugin monitors (per query and per bucket) due to the following error:

"PreferenceBasedSearchNotAllowedException: Preference type based routing not allowed with strict weighted shard routing enabled"

cluster.routing.use_strict_weighted_shard_preference is enabled by default on managed domains but cannot be changed via cluster settings API.

Could anyone please help me to disable cluster.routing.use_strict_weighted_shard_preference on our domain so that the Alerting plugin monitors can execute search queries normally?

"version": { "distribution": "opensearch", "number": "3.3.0", "build_type": "tar", "build_hash": "unknown", "build_date": "2025-12-22T16:42:07.599198842Z", "build_snapshot": false, "lucene_version": "10.3.1", "minimum_wire_compatibility_version": "2.19.0", "minimum_index_compatibility_version": "2.0.0" }

asked 2 months ago28 views
2 Answers
0

Hello.

To my knowledge, that setting cannot be changed in AWS OpenSearch.
The response to the following reply also stated that it could not be changed.
As mentioned in the answer below, contacting AWS support may resolve the issue.
https://repost.aws/questions/QUZ6T3FrI5SX6Dnbfh3tE3ig/aws-opensearch-alerts-issue-after-upgrade-from-2-9-to-3-1-version#ANrs_aRiSrS9qvtUFU466OVw

EXPERT
answered 2 months ago
0

Hi, mehdi. You can change "cluster.routing.weighted.strict" cluster setting by contacting AWS Technical Support. [+] https://console.aws.amazon.com/support/home#/case/create?issueType=technical Thank you.

AWS
SUPPORT ENGINEER
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.