December 20th, 2012, 11:39 PM
Python : Mongo DB Connection Problem
I have application using python which is using Mongodb as database.
we are performing fail over test for application .we have 2 nodes for mongo db when we stop the primary node , application should connect with other node , python application get Exception but after that i can't connect with the other node :
I am using below code to connect with database
self.mongoConnection = Connection( self.serverAddress , port )
self.database = database.Database( self.mongoConnection , self.DATABASE_NAME )
Can any one help me on this.