-
Notifications
You must be signed in to change notification settings - Fork 42
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
Is there a way to use _shards endpoint? #543
Comments
There is not at the moment. It may be possible to add the functionality, but I'm curious how you would be using this, to help gauge the urgency. |
@flimzy Thanks for the quick answer! I'm developing an internal k8s operator that is responsible for a couchdb's lifecycle. Currently I retrieve info about all shards from internal It would be more convenient to list all shards using only one request. I'm using couchdb 2.3.1 if it is important (we can't move to 3 right now). Currently I already started to use a workaround - I just call So it is not required for me anymore, but would be cool if it was built-in func from |
That sounds like a nice project! The main reason I haven't included support for However, for utility libraries, like what you're describing, as well as kouch, access to some of these system endpoints could make sense. One compromise could be to use chttp, which serves as a backend to the CouchDB driver component of Kivik, and provides convenience functions for producing and handling CouchDB requests and responses respectively. It's not really designed for public consumption, but it is available. It might make sense to expose some of that through the kivik client interface directly, so that a client consumer can do arbitrary queries against a CouchDB server. What are your thoughts about this? |
I think the biggest disadvantage of using chttp right now is that you'll have to make two client connections, since I don't believe there's a provided way to get access to the backing I may consider exposing that at some point. That wasn't needed for |
@flimzy Anyway I just use curl and then do whatever I need with json :) Thanks for help! |
How can I retrieve information about databases' shards using this https://docs.couchdb.org/en/stable/api/database/shard.html#api-db-shards ?
Thanks!
The text was updated successfully, but these errors were encountered: