The names in replica set configuration must be resolvable and
accessible from your application machines.
This is just a name resolution issue.
Please post an example of the names/ips and mapping if this doesn't
make sense so we can give you an example using your data.
On Thu, Sep 6, 2012 at 6:37 PM, David Taylor <
davidse...@gmail.com> wrote:
> We have configured a replica set behind a firewall, using Virtual IPs to map
> hostnames, made available to our app (and Mongo Java driver), from the VIP
> names to actual Mongo server hostnames in another subnet. This protected
> subnet is where all of our replica sets are running. So our app connects via
> the VIP hostnames, configured in the mongo driver as a replica set list of
> hostnames and ports.
>
> The exceptions we are seeing are listed below. If we take the firewall out,
> and connect directly to the mongo servers, we do not see these errors. I
> believe the servers actually communicate back to the driver with their
> hostnames, when the driver makes calls to the mongo servers to determine
> things like "are you the master". I have seen (in a debugger) the driver
> receiving back subnet hostnames, not the VIP addresses. The replica set is
> configured to use all protected, subnet hostnames so they can communicate
> together.
>
> If anyone has experience with this kind of virtual IP configuration with
> replica sets and could recommend a solution, much appreciated. Thanks,
>
> Exceptions, lots of these:
>
> WARNING: Server seen down: mongodb1-prod-i2:80
>
> and also:
>
> Caused by: com.mongodb.MongoException: Rare case where master=null, probably
> all servers are down
> at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:366)
> at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:212)
> at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:305)
> at com.mongodb.DB.getCollectionNames(DB.java:284)
>
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to
mongod...@googlegroups.com
> To unsubscribe from this group, send email to
>
mongodb-user...@googlegroups.com
> See also the IRC channel --
freenode.net#mongodb