Skip to content
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

Support for Cluster update settings API #1274

Closed
kamolhasan opened this issue Jan 22, 2020 · 5 comments
Closed

Support for Cluster update settings API #1274

kamolhasan opened this issue Jan 22, 2020 · 5 comments

Comments

@kamolhasan
Copy link

We've been working on a project where we need to perform the following query to disable shard allocation using the client.

PUT _cluster/settings
{
  "persistent": {
    "cluster.routing.allocation.enable": "primaries"
  }
}

From your README.md, it seems like you haven't provided support for this endpoint yet.

Is there any way to perform this using the existing client library?
Or anything else.

Which version of Elastic are you using?

  • elastic.v7
@apgmckay
Copy link

Is there any update on this it's been 4 years and still not implemented?

@olivere
Copy link
Owner

olivere commented Jun 14, 2024

@apgmckay This project has been deprecated for many years now. It's still around because some people still rely on it. But with the decision of Elastic to build their own official Go client, it doesn't make sense to "compete" against it with an unofficial, community-supported client. The speed with which they add features is way too high for that, and the ability to plan ahead is not a given. This project won't get new features or support new versions of Elasticsearch. You should update your code to use the official client. They, e.g., already support the cluster settings API.

@olivere olivere closed this as completed Jun 14, 2024
@apgmckay
Copy link

apgmckay commented Jun 14, 2024

Thanks for the reply @olivere totally makes sense.

The only reason I was asking was because this was package is a dependency of this open search terraform provider has a dependency on this un API.

But yeah... I'll try and see if I can get them/or even just do it myself to change to the official Go client for elastic 🤔

Thanks again.

@olivere
Copy link
Owner

olivere commented Jun 14, 2024

@apgmckay Thanks for the clarification. Just a final note: As a workaround, you (or, better, the Terraform provider) can always use PerformRequest directly to implement calls into Elasticsearch that are not supported by the DSL.

@apgmckay
Copy link

Interesting thanks for the share @olivere I'll give that a look.

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

No branches or pull requests

3 participants