Skip to content

RequiresReplicaSet and some other mongo annotations do not work on Mac (and maybe Windows) #7

@gortiz

Description

@gortiz

Some Mongo docker services have been designed to be accessed through their per-container IP. That feature is not supported on Mac (see docker's page on the issue.

This is has been designed like that because a requirement on ToroDB Stampede, which requires to access the replication nodes directly and get the address from the replication set configuration, which means it requires that the used address on that configuration can be accessed from the host. But at the same time, mongod nodes require to be able to find themself on the replica set, so the same address must be accessible from the host but also from each container.

The recommended solution is to bind exposed ports, but to do that we would need to add a bridge between them and the host, set the addresses on the configuration to addresses on the bridge and modify each mongod configuration to recognize themself as the alias we use.

As it is not an easy task and the primary target of this project, at least right now, is to support Stampede on testing, the priority is very low.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions