cbft should allow for mulitple server URL's for higher availability
We should allow multiple, comma-separated URL's for the --server cmd-line flag.
For a couchbase source type, the "source name" property can now either be a bucket name (same as before) or a bucket URL (http://CB_HOST:CB_PORT/pools/default/buckets/BUCKET_NAME)
commit d4be86099
I'm unclear how specifying multiple URLs at the command-line differs from multiple URLs in the source definition.
The idea is that the cmd-line "-server" parameter now becomes the default data source server URL. Gonna call this defaultServerURL in the rest of this comment. For example...
cbft -server http://localhost:8091
So, if the user creates an index with a non-URL source name or bucket name as the data source, like "beer-sample", cbft will then use the defaultServerURL + "beer-sample".
But, fi the user instead creates an index with a URL-looking source name, like http://localhost:8091/pools/defaults/buckets/beer-sample, then cbft will just use that as-is, and not use any part of the defaultServerURL.
There's another issue/enhancement ticket that's about allowing comma-separated list of URL's for the command-line "-server" / defaultServerURL. So, like...
cbft -server 'http://cb-01:8091,http://cb-02:8091'
And, related, I guess I should allow for comma-separated list of URL's for the index's source name, too, but I'll just tack that onto the other issue/enhancement ticket.
Whoops, I see what you mean now. Reopening!