Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-10677

Execute aggregation framework on secondary node

    XMLWordPrintable

Details

    • Question
    • Status: Closed
    • Minor - P4
    • Resolution: Works as Designed
    • 2.4.6
    • None
    • Linux Ubuntu 12.04 single shard server with 4 nodes in one replicaset 2.4.6

    Description

      Hello.

      In C++ i tried execute aggregation framework like in example with readPreference :

      conn->runCommand( "goods", BSON( "aggregate" << "events" << "pipeline" << pipeline<<"$readPreference"<<BSON("mode"<<"secondaryPreferred")), res);

      Client connected to monogos with one single shard with four nodes in replicaset. Command always execute on primary node.

      I dont understand, how execute framework on secondary node.
      Is it possible?

      Thank you.

      Attachments

        Activity

          People

            Unassigned Unassigned
            esp1974 Dmitry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: