Skip to content

Conversation

sgirones
Copy link
Contributor

Connect to nodes that belong to the configured replica set

@calavera
Copy link
Contributor

LGTM

@biilmann
Copy link
Member

LVGTM!

Copy link
Member

@rybit rybit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sgirones
Copy link
Contributor Author

Pointing to a node in the replica set:

DEBU[2017-12-14T21:48:11.139687764Z] Dialing database                              component=store-cache hostname=app-web-test-rax-ord-1 replica_set=webpop-production servers="db-rax-ord-1:27017" store=mongo store_id=mongo_new
DEBU[2017-12-14T21:48:11.173144103Z] Got session, Using database bitballoon        component=store-cache db=bitballoon hostname=app-web-test-rax-ord-1 store=mongo store_id=mongo_new

Pointing to a node that doesn't belong to a replica set

DEBU[2017-12-14T21:48:11.216191343Z] Dialing database                              component=store-cache hostname=app-web-test-rax-ord-1 replica_set=webpop-production servers="db-aws-cmh-1:37017" store=mongo store_id=mongo_old
FATA[2017-12-14T21:49:12.033913987Z] Failed to create server                       error="Failed to create store cache: failed to connect to mongo: no reachable servers" hostname=app-web-test-rax-ord-1

@sgirones sgirones merged commit 2b05121 into master Dec 14, 2017
@sgirones sgirones deleted the salvador/connect-correct-replset branch December 14, 2017 21:54
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

Successfully merging this pull request may close these issues.

4 participants