Siddhi CDC - Remote MongoDB Cluster

30 views
Skip to first unread message

Vincent Vandenkerkhof

unread,
Nov 9, 2023, 2:39:08 PM11/9/23
to siddhi-dev
Hi, 

There is someone who already achieve a cdc with distant MongoDB Cluster ?
If I'm running mongo cluster on my laptop, then trying to catch events with WSO2SI 4.1.0, there is no issues.

Local source is defined as below :
@source(type = 'cdc', url = "jdbc:mongodb://mongo01/127.0.0.1:27017/secondary_user_store....

But, when I want to do the same with a distant mongo cluster, SI tolds me cluster is not available and fails on connexion.
I'm sure my cluster is healthy and running because I can connect on it with MongoDB Compass or with simple python app with exactly the same url as defined below.

Distant source is defined as below:
@source(type = 'cdc', url = "jdbc:mongodb://rs0/primary-node-mongodb.uat.mydomain.com:27017/secondary_user_store...

In local mode or distant mode, the cluster is hosted with docker containers, the only one difference is a Traefik container for reverse proxy in front of mongo cluster.
In the traefik configuration, cluster is available as tcp route with hostSNI('primary-node-mongodb.uat.mydomain.com')

I've already asked WSO2 support, but no one can find any answer.
I'm litterally throwing a bottle into the sea when I'm writing here.

Kind regards
Reply all
Reply to author
Forward
0 new messages