serhiy-bzhezytskyy opened a new pull request, #188: URL: https://github.com/apache/solr-orbit/pull/188
nyc_taxis' two longevity procedures repeat `GET /_stats` and `POST /nyc_taxis/_refresh`. Solr answers both with 404, so `segment-stats-loop` and `refresh-loop` fail on every request. The converter now writes the cluster state of the collection, [`CLUSTERSTATUS`](https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-node-management.html#clusterstatus), for the first, and an [explicit commit](https://solr.apache.org/guide/solr/latest/configuration-guide/commits-transaction-logs.html#explicit-commits) for the second. That is the form [`longevity.json` in solr-orbit-workloads](https://github.com/apache/solr-orbit-workloads/blob/main/nyc_taxis/test_procedures/longevity.json) already has. Each task runs at one client every 10 s (state) and every 30 s (commit), in place of its own clients and interval, and is named `cluster-status-loop` or `commit-loop` when it carries upstream's name. `CONVERTED.md` lists each rewrite. This is lighter or different work than the original. `CLUSTERSTATUS` returns the state of shards and replicas, without the index statistics that `_stats` returns. A hard commit flushes to disk, where a refresh only reopens the reader. The original runs 5 clients every second for the statistics and 1 client every second for the refresh. A Solr run is therefore compared with an OpenSearch run that had much more monitoring traffic and many more, lighter, refreshes. The same work in Solr would be the Metrics API (`/solr/admin/metrics`) for the statistics and a soft commit for the refresh. That is not written here. Not measured: the cost of the Metrics API at 5 calls a second during indexing (one response is about 0.45 MB on one node), and whether the commit runner waits for the new searcher as a blocking refresh does. | nyc_taxis, test-mode | before | after | |---|---|---| | `GET /_stats` | HTTP 404 | `CLUSTERSTATUS` HTTP 200 | | `POST /nyc_taxis/_refresh` | HTTP 404 | commit HTTP 200 | | `search-longevity-test`, `indexing-search-longevity-test` | `segment-stats-loop` and `refresh-loop` 100 % errors | 16 and 12 `error rate` rows, all 0 | Not covered: a loop on another REST path stays as it is, and so does a loop whose clients or interval are not plain numbers (the converter reports it). Test with: ``` solr-orbit convert-workload --workload-path <opensearch-benchmark-workloads>/nyc_taxis --output-path /tmp/nyc-solr grep -n "_stats\|_refresh" /tmp/nyc-solr/CONVERTED.md curl -s -o /dev/null -w "%{http_code}\n" localhost:8983/_stats pytest tests/unit/solr -k RestLoops ``` `grep` prints the two rewrites, each with what is different, and `curl` prints 404. A run of `search-longevity-test` with `--test-mode` needs the `auto_date_histogram` operations left out first (#187); then all `error rate` rows are 0. -- 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]
