cinchapi / concourse

Distributed database warehouse for transactions, search and analytics across time.
http://concoursedb.com
Apache License 2.0
315 stars 233 forks source link

Allow concourse_client.yaml to support connection details for multiple instances at the same time #507

Open jtnelson opened 7 months ago

jtnelson commented 7 months ago

When connecting to multiple hosts it would be nice to have username/password, etc stored in a single prefs file.

Something like

connections: [ { host: a, username: blah, password: blah, environment: blah }, { host: b, username: blah }, ]

There could be a connections key that takes a value that is an array of connection objects. Other options for key names to consider:

jtnelson commented 7 months ago

Allow each connection object to also have a "name". If the name is provided it can be used for lookups. Otherwise, the host is assumed to be the name,

In ConcourseClientConfiguration

In Concourse (driver handler)

Be sure to test instances where some of the configuration does not have a host. Maybe internally need to store this as a mapping from name/host to the configuration object for fast look up?