Repository navigation
Write the nyc_taxis longevity loops as Solr requests - #188
Draft
serhiy-bzhezytskyy wants to merge 1 commit into
Draft
serhiy-bzhezytskyy wants to merge 1 commit into
serhiy-bzhezytskyy wants to merge 1 commit into
Conversation
nyc_taxis' longevity procedures repeat GET /_stats and POST /nyc_taxis/_refresh, which Solr answers with 404, so both loops failed on every request. The converter now writes the cluster state of the collection (CLUSTERSTATUS) for the statistics loop and an explicit commit for the refresh loop, the form that longevity.json in solr-orbit-workloads has, and reports what is different from the original.
serhiy-bzhezytskyy
force-pushed
the
longevity-loops-as-solr-requests
branch
from
December 3, 2026 13:33
15321e6 to
40f749e
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
nyc_taxis' two longevity procedures repeat
GET /_statsandPOST /nyc_taxis/_refresh. Solr answers both with 404, sosegment-stats-loopandrefresh-loopfail on every request.The converter now writes the cluster state of the collection,
CLUSTERSTATUS, for the first, and an explicit commit for the second, under the namescluster-status-loopandcommit-loop. That is the formlongevity.jsonin solr-orbit-workloads has.It is different work from the original.
CLUSTERSTATUSreturns the state of shards and replicas, without the index statistics_statsreturns. 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, so a Solr run is compared with an OpenSearch run that monitored much more. The same work in Solr would be the Metrics API for the statistics and a soft commit for the refresh; that is not written here, and neither is the cost of the Metrics API at 5 calls a second during indexing.Converted from upstream, nyc_taxis' loops are
cluster-status-loop(raw-request,/solr/admin/collections?action=CLUSTERSTATUS&collection=nyc_taxis&wt=json) andcommit-loop(commit), the same names, types and path as in solr-orbit-workloads'longevity.json. On Solr 10.1.0, that file'sindexing-search-longevity-testin test mode runs 12 tasks, both loops with an error rate of 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:
grepprints the two rewrites, each with what is different. A run of the convertedsearch-longevity-testneeds theauto_date_histogramoperations left out first (#187).