M

MongoDB

Database
mongodb://mongo://

Drive MongoDB directly: insert, find, update, delete, aggregate and command — one operation per request. Ships the heavy mongodb Rust driver on its own.

Install
$ loadr plugin install mongo
mongo.yaml
plugins:
  - name: mongo          # resolves mongodb:// at runtime

scenarios:
  writes:
    executor: constant-vus
    vus: 5
    duration: 15s
    flow:
      - request:
          url: mongodb://loadr:loadr@db:27017/loadr
          plugin:
            operation: insert
            collection: products
            document: { name: "vu-${vu}-item", price: 12.5 }
          assert:
            - { type: status, equals: 1 }   # 1 = ok, 0 = error

thresholds:
  mongo_req_duration: [ "p(95)<300ms" ]

Metrics: mongo_reqs · mongo_req_duration · mongo_docs.

Install the plugin, then run a real insert / find / aggregate workload against MongoDB — see demo #15.

A runtime plugin, never in the binary

Installing pulls a per-platform driver from the signed index, verifies its SHA-256 and checks its ABI before it ever loads. Remove it any time with loadr plugin remove mongo.