stripe-archive / mosql

MongoDB → PostgreSQL streaming replication
MIT License
1.63k stars 225 forks source link

MoSql killed when Primary in relpSet goes down #117

Open ShipraShalini opened 8 years ago

ShipraShalini commented 8 years ago

I'm running MoSQL as:

mosql -c collections.yml --sql postgres://user:passwd@localhost:5432/db --mongo mongodb://dbUser:passwd@node1,node2,node3/dbname?replicaSet=rs0 --only-db dbname

It works fine but as soon as the Primary node of the relpSet goes down, Mosql is killed.

Is there anyway to keep it running with the newly elected Primary node without MoSQL getting stopped?