E

Elasticsearch

Search
elasticsearch://es://

Drive Elasticsearch over its HTTP/JSON API: index, get, search and bulk — one operation per request. Talks over loadr's own hyper + hyper-rustls stack — no heavy official client, no system OpenSSL.

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

scenarios:
  writes:
    executor: constant-vus
    vus: 5
    duration: 15s
    flow:
      - request:
          url: elasticsearch://es.example.com:9200
          plugin:
            operation: index
            index: products
            document:
              name: "vu-${vu}-item"
              price: 12.5
              stock: 3
          assert:
            - { type: status, equals: 1 }   # 1 = ok, 0 = error

thresholds:
  elasticsearch_req_duration: [ "p(95)<400ms" ]
  elasticsearch_reqs: [ "count>0" ]

Metrics: elasticsearch_reqs · elasticsearch_req_duration · elasticsearch_docs.

Install the plugin, then index, bulk-load and search against Elasticsearch over HTTP/JSON — see demo #21.

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 elasticsearch.