https://github.com/tocco/openshift-solr
https://github.com/tocco/openshift-solr
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tocco/openshift-solr
- Owner: tocco
- Created: 2017-02-15T12:06:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-17T07:40:54.000Z (almost 8 years ago)
- Last Synced: 2025-02-15T00:19:55.047Z (over 1 year ago)
- Language: Python
- Size: 201 KB
- Stars: 0
- Watchers: 13
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solr on Openshift
[](https://travis-ci.org/tocco/openshift-solr)
This image is set up to provide search functionality to the [Tocco Business Framework](https://www.tocco.ch). It has been optimized
to run on the [OpenShift platform](https://www.openshift.com) provided by [VSHN](https://vshn.ch/en/).
## Configuration
All configuration parameters available in /opt/solr/bin/solr.in.sh within the image can be overridden using environment variables by
prefixing `SOLR_PARAM_`.
### Example
Change parameter `SOLR_HEAP=1024m`:
```
SOLR_PARAM_SOLR_HEAP=1024m
```
Take a look at the [sample config](tests/sample_config.conf) used in the tests to see available properties.
## Caveats
### .trashcan
In our Openshift environment a persistent volume is mounted from a Gluster cluster. The mount contains a `.trashcan` directory
and Solr won't have access to it. Unfortunately, Solr can't deal with that. To get it working anyway, the volume is mounted
at `/persist` and the data directory is a subdirectory of it (`/persist/index_data`). This way `.trashcan` (`/persist/.trashcan`) is no longer
in Solr's data directory.
### Lock File Removal
The lock file is currently removed during startup to avoid already-locked errors.