Skip to content

Cannot use multiple replicaset instances which run on different ports #46

@markunsworth

Description

@markunsworth

It's not possible to use the _HOST config key with port numbers included because the host and port values are being concatenated.

This is particularly problematic when using several seeds to connect to a replicaset:

MONGO_HOST='morton.local:30000,morton.local:30001,morton.local:30002'

The better way to do this is to pass the port number to the pymongo connection class (mongoclient or mongoreplicaset client) and leave pymongo to decide on whether to use the port

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions