cbft icon indicating copy to clipboard operation
cbft copied to clipboard

cbft should allow for mulitple server URL's for higher availability

Open steveyen opened this issue 10 years ago • 4 comments

We should allow multiple, comma-separated URL's for the --server cmd-line flag.

steveyen avatar Apr 21 '15 02:04 steveyen

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

steveyen avatar Apr 30 '15 15:04 steveyen

I'm unclear how specifying multiple URLs at the command-line differs from multiple URLs in the source definition.

mschoch avatar Apr 30 '15 15:04 mschoch

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.

steveyen avatar Apr 30 '15 17:04 steveyen

Whoops, I see what you mean now. Reopening!

steveyen avatar Apr 30 '15 17:04 steveyen