serhiy-bzhezytskyy opened a new pull request, #185: URL: https://github.com/apache/solr-orbit/pull/185
geonames' default procedure stops at its first task: "No runner available for operation type [index-stats]". The same holds for `node-stats`, which the procedure runs next. `collection-metrics` requests `/solr/admin/metrics?collection=<name>`. Without a collection, or with `_all`, it requests every collection on the node and the node's own metrics. `node-metrics` requests `/solr/admin/metrics`. The [Metrics API](https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html#metrics-api) answers in Prometheus text, so the runners check the status and do not parse the body. The procedure times the requests and does not use the response body. An error status fails the task, for example HTTP 510 when metrics are disabled in `solr.xml`. A named collection that does not exist is answered with 200 and an empty body (measured on 10.1.0). The task fails then, so that it does not time a request that returned nothing. `convert-workload` writes `collection-metrics` for upstream's `index-stats` and `node-metrics` for `node-stats`, as it writes `create-collection` for `create-index`. Solr has collections, not indexes, and `solr-node-stats` already names a telemetry device. A `collection-metrics` with a `condition` is refused. In upstream a condition is a path into the JSON that `_stats` returns, `_all.total.merges.current`, where `_all` is OpenSearch's name for every index; the Metrics API returns no such document. All 14 such conditions in opensearch-benchmark-workloads are the same merge count of zero, which is what `wait-for-merges` does. Limits: both operations cover the node the client is connected to, and the Reference Guide says the `collection` filter works in SolrCloud mode only. Test with: ``` solr-orbit convert-workload --workload-path <opensearch-benchmark-workloads>/geonames --output-path /tmp/geonames-solr grep -n '"operation": "collection-metrics"\|"operation": "node-metrics"' /tmp/geonames-solr/test_procedures/default.json solr-orbit run --pipeline=benchmark-only --target-hosts=localhost:8983 --workload-path=<dir with the workload.json below> --test-mode pytest tests/unit/solr -k "MetricsRunners or BareOperationNames or MergeWait" ``` with a `workload.json` of two tasks, `{"operation": {"name": "collection-metrics", "operation-type": "collection-metrics", "collection": "geonames"}, "iterations": 20}` and `{"operation": {"name": "node-metrics", "operation-type": "node-metrics"}, "iterations": 20}`. The `grep` prints lines 10 and 17, where upstream wrote `"operation": "index-stats"` and `"operation": "node-stats"`. On main the run stops with "No runner available for operation type [collection-metrics]"; with this change the summary prints `collection-metrics | error rate | 0 | %` and `node-metrics | error rate | 0 | %`, about 120 operations per second each on a local node. With `"collection": "no_such_collection"` the run stops with "the Metrics API returned no metrics for collection 'no_such_collection'". pytest prints `23 passed`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
