-
Notifications
You must be signed in to change notification settings - Fork 500
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
[BUG] what does circuitbreaker configuration have to do with JS client? #823
Comments
@dblock: Where would you have expected to find this documentation? |
@Naarcha-AWS under cluster settings? I am totally confused of what a cluster setting has to do with the javascript client, what am I missing? |
@Naarcha-AWS From what this setting affects in regards to the current organization of the documentation, I would have expected this piece of information somewhere in this document: https://github.com/opensearch-project/documentation-website/blob/main/_opensearch/cluster.md |
@dblock @Naarcha-AWS Also the section seems to be (at least) partially incorrect, as the
Should be |
Was confused there for a second, since the section mentions the cluster settings, but actually describes a client transport option: https://github.com/opensearch-project/opensearch-js/blob/main/lib/Transport.js#L88 It's intention is described in a comment where this option is used: https://github.com/opensearch-project/opensearch-js/blob/main/lib/Transport.js#L332-L338 There are also circuit breakers on e.g. field data or request level, that might be able to be configured in the This leads me to believe that the section is incorrect and should be updated:
|
@robdasilva: That makes sense. Thank you for the explanation. From a user perspective, would this mean that the user would need to modify the "Transport.js" file before installation the JS client to properly set their Breaker settings? |
Fix opensearch-project#823 Signed-off-by: Robert Da Silva <[email protected]>
@Naarcha-AWS It's actually easier than that. As I mentioned in my comment above, the user would simply instantiate the client with the If a user instead explicitly defines a Transport to be used, it must implement a Unfortunately, it seems the |
Yes I actually think the doc website is incorrect because it won't be a cluster setting. It's a client side configuration, so before the response returns from OpenSearch it suppose allow for the client to be configured (for us OpenSearch Dashboards in our opensearch_dashboards.yml) so that it doesn't kill the application of there is less memory available that what it needs. |
The documentation needs to document all client-side options with examples. Let's make that the issue here? |
@robdasilva: I'm currently reviewing #827 now. I agree that we should make client-side options with examples separate issues per client. |
@robdasilva @Naarcha-AWS A-OK by me, anything else needs to be done? |
@dblock Agree. Nothing to add from my side. |
* Fix Circuit Breaker section in JS client docs Fix #823 Signed-off-by: Robert Da Silva <[email protected]> * Add documentation for JS client bulk helper Signed-off-by: Robert Da Silva <[email protected]> * Refactors js client helper documentation * Incorporated tech review comments Signed-off-by: Fanit Kolchina <[email protected]> * Incorporated doc review comments Signed-off-by: Fanit Kolchina <[email protected]> * Update _clients/javascript/helpers.md Co-authored-by: Alice Williams <[email protected]> * Update _clients/javascript/helpers.md Co-authored-by: Alice Williams <[email protected]> * Update helpers.md * Incorporated tech review feedback Signed-off-by: Fanit Kolchina <[email protected]> * Implemented editorial comments Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: Robert Da Silva <[email protected]> Signed-off-by: Fanit Kolchina <[email protected]> Co-authored-by: Robert Da Silva <[email protected]> Co-authored-by: Alice Williams <[email protected]> (cherry picked from commit 89f966a)
* Fix Circuit Breaker section in JS client docs Fix #823 Signed-off-by: Robert Da Silva <[email protected]> * Add documentation for JS client bulk helper Signed-off-by: Robert Da Silva <[email protected]> * Refactors js client helper documentation * Incorporated tech review comments Signed-off-by: Fanit Kolchina <[email protected]> * Incorporated doc review comments Signed-off-by: Fanit Kolchina <[email protected]> * Update _clients/javascript/helpers.md Co-authored-by: Alice Williams <[email protected]> * Update _clients/javascript/helpers.md Co-authored-by: Alice Williams <[email protected]> * Update helpers.md * Incorporated tech review feedback Signed-off-by: Fanit Kolchina <[email protected]> * Implemented editorial comments Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: Robert Da Silva <[email protected]> Signed-off-by: Fanit Kolchina <[email protected]> Co-authored-by: Robert Da Silva <[email protected]> Co-authored-by: Alice Williams <[email protected]> (cherry picked from commit 89f966a) Co-authored-by: kolchfa-aws <[email protected]>
What is the bug?
Reading https://opensearch.org/docs/latest/clients/javascript/#circuit-breaker I don't quite understand how it relates to the JS client.
What is the expected behavior?
Didn't expect to find this section here, or expected it to explain what it has to do with the JS client.
The text was updated successfully, but these errors were encountered: