erlcass icon indicating copy to clipboard operation
erlcass copied to clipboard

Is it possible to connect to multiple clusters?

Open chwevans opened this issue 8 years ago • 6 comments

I was wondering if it was possible to connect to multiple logically distinct clusters. In my use case data is stored across multiple clusters and it would be convenient to be able to choose which cluster is targeted.

chwevans avatar Feb 09 '17 23:02 chwevans

Hello,

Unfortunately is not possible at this moment.

This is on my todo list but I have no idea when will be implemented.

Silviu

silviucpp avatar Feb 10 '17 06:02 silviucpp

I took a stab at this. The change is not complete, but posting this here so I get some feedback on my work. https://github.com/cibingeorge/erlcass/tree/multiple_clusters

The api interface wil change because every api on erlcass.erl need to take an atom identifying the relevant cluster. If this looks reasonable, then I can send you a pull request in a couple of weeks.

cibingeorge avatar Jan 25 '19 16:01 cibingeorge

Hello,

Thanks, give me few days and I'll provide you some feedback on this.

silviucpp avatar Jan 26 '19 20:01 silviucpp

Hello,

I did my review here: https://github.com/cibingeorge/erlcass/pull/1 You can also sent the pull request to the main repo and we can continue the review there. Your contribution looks nice.

Silviu

silviucpp avatar Jan 31 '19 09:01 silviucpp

Hello Silviu! Do you have any plans to add this feature?

viplifes avatar Dec 31 '20 11:12 viplifes

Hello Silviu. Are you planing to add support for multiple clusters in the nearest future ?

I am looking at ScyllaDb (which is working correctly with Erlcass driver). And researching another Cassandra drivers so I can connect both databases and direct whole traffic to Cassandra and Scylla

It would be simply awesome and time saving feature if you make Erlcass working with multiple clusters

please let me know if you have any updates.

thank you in advance

dubrovine avatar May 26 '21 07:05 dubrovine