Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-569

nodejs oplog tailing, long startup time

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    Description

      using the mongo-oplog npm, i'm seeing long startup times when creating a tailable cursor on the oplog.

      for db.oplog.rs.count() --> 1682274

      • takes 10 minutes to start tailing if i use a regexp query on ns
      • takes 5 minutes to start tailing if i use no query
      • mongo-oplog-cursor is being passed

      tailable: true,
      timeout: false,
      awaitdata: true,
      oplogReplay: true,
      cursorReplay: true,
      numberOfRetries: Number.MAX_VALUE
      https://github.com/cayasso/mongo-oplog-cursor/blob/master/index.js#L66

      is there anyway to speed this up? server is version 2.4.10

      Attachments

        Activity

          People

            christkv Christian Amor Kvalheim
            bruce@lever.co Bruce Chu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: