This repo uses k6 to load test a Solr cluster.
The test will download a sample dataset from StackExchange on the topic 'cooking'. The archive is unzipped, and 122540 posts are indexed from Posts.xml, into a Solr collection with a schema that follows the data format of the data.
The first test is creating a config set with the schema, and then a collection with two replicas.
Then, we run an indexing test which indexes the data and measures time.
Finally, we have various query load tests.
Results of the tests are available as a summary, and as more detailed data.
# Install k6
brew install k6
cd tests
k6 run k6-test.js