Sanity check script in python for OpenSearch ML-Commons plugin
- An OpenSearch cluster with security plugin enabled
- Python 3 installed (ideally 3.8)
- requests package
python3 san_check.py host port [--working_directory [folder with your import data and its index]] [--auth account password] [--ml_node_only] [--memory_cb_activate]
- Host and port argument are always required and should be separated by space. Separating by colon(:) is not accepted. The host address should explicitly specify the protocol (We only support https now)
- --working_directory can be shortened as -wd, when this argument is not specified, data import process won't be activated.
- --ml_node_only can be shortened as -ML. If not specified, the ml commons plugin can be run on all nodes.
- --memory_cb_activate can be shortened as -CB. If not specified, the circuit breaker is deactivated.
- Support non-secure mode
- Return an error counter when test is finished
- Support PPL command test
- Support sanity test on Custom Model and Neural Search
- Support sanity test on reserved ML roles