How to query the number of nodes in a cluster?
Hey, I'm brand new to couchbase, but I was just given a task that requires interaction with a couchbase server.
Basically, I'm researching how to automate the creation of CNames from UltraDNS with the naming conventions we want. These naming conventions will use the corresponding node number of a node within a cluster.
Thus, I need a way to create a script that gets the number of nodes within a cluster(how?), and plug that into the soap request to create a new cname.
So how do I get the number of preexisting nodes within a given cluster??
Thanks ahead of time!
EDIT:
so it looks like this general command will include a list of nodes, I'm wondering if I can pull the number from this using a script of some sort.
Try this: