Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: custom dsn= parameter #129

Open
skaag opened this issue Dec 9, 2016 · 3 comments
Open

Feature request: custom dsn= parameter #129

skaag opened this issue Dec 9, 2016 · 3 comments
Assignees

Comments

@skaag
Copy link

skaag commented Dec 9, 2016

The goal is to allow support for "interesting" connection strings, for example in the case of replicating to a MongoDB target, we want to support replicating data to a replica set.

An example replica set connection follows:

my $client = MongoDB::MongoClient->new(
         host => "mongodb://mongo1.example.com:28000,mongo2.example.com:28000/?replicaSet=myset",
     );

Greg thinks the DSN can be stored in the bucardo.db.dbconn column

David thinks this should become a generic method for specifying a custom DNS, meaning, not just for MongoDB but really for any target database type

I offered a $250 bounty for implementing this feature as soon as possible.

@turnstep turnstep self-assigned this Dec 16, 2016
@machack666
Copy link
Collaborator

Preliminary support in cb3642f.

@skaag
Copy link
Author

skaag commented Dec 21, 2016

Awesome! We will test this. Let me know how you want to collect the bounty!

@machack666
Copy link
Collaborator

@turnstep

As per testing, looks like this is incomplete; from the tester:

It helps on first mongo db connection phase, but still uses mongo://localhost on actual data transfer

So it sounds like it works for the initial connection, but when new data gets synchronized it reverts to some default connection string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants