/security-analytics-performance-tests

An elastic/rally extension to run performance tests for Opensearch-Security-Analytics

Primary LanguagePython

elastic/rally extension for Opensearch Security-Analytics plugin

Reference

Install the extension

git clone
pip install esrally

A small modification is required to run esrally against Opensearch. see https://github.com/sbcd90/rally/commit/af34c3a7db40a74db0a3750cb944d4d062afb9f4

Use the extension

List all tracks & challenges

esrally list tracks --track-path="security_analytics"

Show info of the track

esrally info --track-path="security_analytics"

Rally report config in rally.ini

[reporting]
datastore.type = elasticsearch
datastore.host = <os-ip>
datastore.port = 80
datastore.secure = true
datastore.ssl.verification_mode = none
datastore.user = <user>
datastore.password = <passwd>

Run race against a remote Opensearch cluster

esrally race --target-hosts=cluster-ip:80 --client-options="use_ssl:true,verify_certs:false,basic_auth_user:'<user>',basic_auth_password:'<passwd>'" --pipeline=benchmark-only --challenge=search-findings-api --track-path="security_analytics"

Extend the extension with new performance test scenarios