<commit_before># SolrVagrant

Vagrant Config for Solr Testing

I made this to make it easier to test SolrClient python library with multiple versions of Solr. However, I think this can have other uses, so I am putting it up on github as it's own repo.

This vagrant + ansible rig will set up zookeepers, and several versions of solr listed in ansible/plays/playbook.yml (at the end).

Zookeepers go into /opt/zk1, zk2, zk3.

Solrs will go into /opt/solrs/VERSION (eg. 5.2.1)

The port for solr is 9 and the version number. So 5.2.1 will listen on 9521, 5.3.1 will listen on 9531, 6.0.0 will listen on 9600, etc...

To use it:
1. Clone this repo
2. Edit the `Vagrantfile`, find this line and replace it with your branch.

		ansible.raw_arguments  = [
      	'--extra-vars "git_repo=https://github.com/nickvasilyev/SolrClient.git"'
    	]
2. run `vagrant up` to kick off the installation / configuration. It will take a while.
3. run `vagrant ssh` to get into the box
4. The code from the git repo will be in ~/code/
5. Do what you want with the solrs.


Note:
If you think you will need to vagrant up from scratch more than once, I recommend you download all solr tgz packages locally.
To do this:

1. In the extra vars passed to ansible. change the mirror from http://archive.apache.org/dist/lucene to /vagrant/
2. Create a `solr` directory on the root of SolrVagrant and put all the versions in there for example:
   - SolrVagrant/solr/5.2.1/solr-5.2.1.tgz
   - SolrVagrant/solr/5.3.1/solr-5.3.1.tgz
   - etc...

 This will use the downloaded pacakges instead of pulling them from apache mirrors.<commit_msg>added info for single test run info<commit_after># SolrVagrant

Vagrant Config for Solr Testing

I made this to make it easier to test SolrClient python library with multiple versions of Solr. However, I think this can have other uses, so I am putting it up on github as it's own repo.

This vagrant + ansible rig will set up zookeepers, and several versions of solr listed in ansible/plays/playbook.yml (at the end).

Zookeepers go into /opt/zk1, zk2, zk3.

Solrs will go into /opt/solrs/VERSION (eg. 5.2.1)

The port for solr is 9 and the version number. So 5.2.1 will listen on 9521, 5.3.1 will listen on 9531, 6.0.0 will listen on 9600, etc...

To use it:
1. Clone this repo
2. Edit the `Vagrantfile`, find this line and replace it with your branch.

		ansible.raw_arguments  = [
      	'--extra-vars "git_repo=https://github.com/nickvasilyev/SolrClient.git"'
    	]
2. run `vagrant up` to kick off the installation / configuration. It will take a while.
3. run `vagrant ssh` to get into the box
4. The code from the git repo will be in ~/code/
5. Do what you want with the solrs.

To run a single test run something like:

./run_tests.py -py 3.5 -solr 6.3.0 -test test_client.ClientTestIndexing.test_down_solr_exception

or

./run_tests.py -py 3.5 -solr 6.3.0 -test test_client


Note:
If you think you will need to vagrant up from scratch more than once, I recommend you download all solr tgz packages locally.
To do this:

1. In the extra vars passed to ansible. change the mirror from http://archive.apache.org/dist/lucene to /vagrant/
2. Create a `solr` directory on the root of SolrVagrant and put all the versions in there for example:
   - SolrVagrant/solr/5.2.1/solr-5.2.1.tgz
   - SolrVagrant/solr/5.3.1/solr-5.3.1.tgz
   - etc...

 This will use the downloaded pacakges instead of pulling them from apache mirrors.
{'fraction_non_alphanumeric': 0.08057009889470622, 'fraction_numerical': 0.030831878999418267, 'mean_word_length': 3.277363184079602, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2510186', 'n_tokens_mistral': 1220, 'n_tokens_neox': 1149, 'n_words': 520}