Download & Extend

Drush command line commands should support connections to replica sets

Project:Mongodb
Version:7.x-1.x-dev
Component:Miscellaneous
Category:task
Priority:normal
Assigned:Rok Žlender
Status:needs review

Issue Summary

If I define multiple replica set servers in mongo connections settings mdbc will choke and die trying to connect to "192.168.0.1,192.168.0.2" if replica set option is enabled drush should figure out which is primary and connect to that one by default and also allow option for user to connect to any of the secondaries.

Comments

#1

Status:active» needs review

Patch supports running drush command on replica set configuration options.

AttachmentSizeStatusTest resultOperations
mdbc_replica-1823478-1.patch2.82 KBTest request sentNoneView details

#2

Revisited patch created new constant for primary member status value and added a msg to users when connecting to secondary how to send queries against it.

AttachmentSizeStatusTest resultOperations
mdbc_replica-1823478-2.patch3.5 KBTest request sentNoneView details
nobody click here