Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2068

mongocxx::pool mongos failover

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.5.2
    • Component/s: network
    • Labels:
    • Environment:
      Windows 7 x64, Visual Studio 2015

      We have shard cluster with 3 mongos instances for failover purposes. All mongos in future, will be distributed on different hosts (now they running on same host with different ports for test purposes).
      The failover needed for backup network channels between client app and mongos. For this purpose, we provide all mongos addreses in mongocxx::uri and then pass it to mongocxx::pool.
      Now, we see so mongocxx::pool does not failover to another mongos if we shutdown first (for example).
      But mongocxx::client does it well (failover to different mongos).

      Does this behaviour is correct or maybe we need to additional setup mongocxx::pool environment for the mongos failover?

        1. test.cpp
          3 kB
          Aleksander Melnikov

            Assignee:
            Unassigned Unassigned
            Reporter:
            alm Aleksander Melnikov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: