-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Changing minimum number of required connections to 0 for bulk,state,rec… #13111
Conversation
…overy channels Signed-off-by: Chaitanya Gohel <gashutos@amazon.com>
Compatibility status:Checks if related components are compatible with change 0e5a177 Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/flow-framework.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/sql.git] |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13111 +/- ##
============================================
- Coverage 71.42% 71.40% -0.02%
- Complexity 59978 60430 +452
============================================
Files 4985 5026 +41
Lines 282275 284525 +2250
Branches 40946 41215 +269
============================================
+ Hits 201603 203172 +1569
- Misses 63999 64534 +535
- Partials 16673 16819 +146 ☔ View full report in Codecov by Sentry. |
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.
I'm not clear on why we need to make this change, what does this impact? (I don't see a linked issued)
Lets add some tests to verify the expected behavior - IMO this looks like integration tests / end to end tests are needed
@peternied This is just for validation at settings level, any |
@gashutos I still don't understand why does the setting need updating? |
We are not updating setting value here. If you see below snippet, the 2nd argument is the setting value, while 3rd argument is the minimum value for that setting in case someone sets the setting value to
|
@gashutos You are explaining what you did - this I understand, thank you. I am not familiar with these settings in this part of the project, imagine I just started working alongside you on OpenSearch - how would you explain the reason behind making this change? |
Oh yes, sure :) This change is towards the step where we are looking to reduce chattiness between nodes for current mesh topolofy by reducing number of connections.
So we create total of Also these numbers were decided way back (last change was somewhere in 2014 !), so with OpenSearch/ElasticSearch product evolution, we have dedicated coordinator nodes to support scaling in Indexing/Search, remote store to reduce replication between nodes and other chattiness like recovery from remote, etc. With this change, someone who want to support large number of nodes, and if they decide to use dedicated coordinator nodes (which is recommended to scale indexing/search), they can have luxury to set Here respective settings, the minimum values I am changing in here to |
@gashutos Thanks - that was exactly what I was looking for, I think we should have a change log entry - as well as documentation update associated with this change (that might be tiny). For the change log entry (and this pull request title) what do you think of the following? |
@gashutos what version of opensearch are we targetting this for? can we fill in the assignees, labels, projects etc |
Not required, closing... |
Description
We need to allow particular channels/connections to be
0
in some cases.Like,
recovery
channelsstate
channels.bulk
in case they are not put up for coordinator nodes.But other channels like
regular
&ping
requres at least a connection/channel so not modifying them.Check List
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.