Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.72 KB

ChatpalSolrCloud.md

File metadata and controls

58 lines (42 loc) · 1.72 KB

Running Chatpal in a dockerized Solr Cloud

This setup script shows how to run Apache Solr in Cloud mode with a chatpal-standalone collection configured. It is based on the docker-hub documentation on how to run Apache Solr Cloud in Docker.

To have all the advantages of Docker and Cloud, please refer to the original documentation.

Setup-Script

You can use the docker-compose.yaml in this repository as a starting point for your own experiments:

It will launch a (single) Zookeeper-Node and a Solr-Cloud Node, accessable via a nginx-proxy. Upon startup, the chatpal-search configuration is uploaded to zookeeper.

# Launch Chatpal-Search in Cloud
docker-compose up -d
# Create a collection
curl -si 'http://${DOCKER-IP}:8983/solr/admin/collections?action=CREATE&name=chatpal&numShards=1&collection.configName=chatpal'
# Access Solr
www-browser http://${DOCKER-IP}:8983/solr

After that, configure http://${DOCKER-IP}:8983/solr/chatpal as base-url for chatpal in rocket.chat.

Scaling

If you need to scale up some cloud-nodes, you can do this whith the following command:

# Scale to 3 nodes
docker-compose scale chatpal-search=3

NOTE: be careful when scaling down - you could loose some data!

Extensions

To make use of the full cloud-flexibiltiy of Solr (e.g. also running multiple Zookeeper nodes) please refer to the Docker-Solr documentation.

Cleanup

docker-compose down -v