Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1525

Set throttle for mongodump/mongorestore operations

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: mongodump, mongorestore
    • Environment:
      any
    • 1,876

      It would be extremely useful to have a option to throttle down number of writes during X amount of time for mongorestore.

      Currently, there is no way to throttle down mongorestore throughput, hence it presents an issue to restore anything to a live system, as there is no way to control emission rate of the records.

      As well as that, --numParallelCollections has no impact if the dump job has more parallel collections than restore job, see https://github.com/mongodb/mongo-tools/blob/master/mongorestore/mongorestore.go#L306

      Related to TOOLS-998

      Based on internal discussions we believe that we're appropriately using the max amount of resources possible to drive these tools, so probably not much benefit to any dynamic tuning.

      Based on our internal discussion, we believe that using maximum amount of resources is nice for benchmarks on localhost. The benefit is obvious if mongorestore is used against any kind of live system, for the sole reason of availability.

            Assignee:
            Unassigned Unassigned
            Reporter:
            addvilz Matiss Treinis
            Votes:
            7 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: