nc-env / templates / template05-elasticsearch /
@pmarini pmarini authored on 30 Jan 2023
..
artifacts initial commit 3 years ago
Readme.md - template01, provision.sh: add crontab and set it as the background jobs execution agent 2 years ago
Vagrantfile - template01, provision.sh: add crontab and set it as the background jobs execution agent 2 years ago
provision.sh apply some adjustments on Readme.md and provision.sh 3 years ago
Readme.md

ElasticSearch server

:zap: As of December 2022, Nextcloud FullTextSearch requires ElasticSearch 7, it's not compatible with ElasticSearch 8

Setup

  • Assuming that the copy of the template is called elasticsearch-instance, move to folder elasticsearch-instance.
  • Check the content of folder artifacts
File name Description
elasticsearch-${ELASTICSEARCH_VERSION}-amd64.deb Debian archive for version 7.17.X to be downloaded from here
memory.options Limit the total memory assigned to the JVM
elasticsearch.yml ElasticSearch core configuration file
  • Create folder log
  • Open Vagrantfile and change the value of variable lxd.name. It makes sense to give the same name as the folder, in this example elasticsearch-instance. Also as Elastic Search is resource-intensive you may want to create a dedicated LXD profile and assign the container to that profile (property lxd.profiles)
  • Open provision.sh and change the value of variable MACHINE_HOSTNAME and ELASTICSEARCH_VERSION. It makes sense to give the same name as the folder, plus the domain, in this example elasticsearch-instance.localenv.com.
  • Run vagrant up > log/provisioning.log
  • Make sure your system is able to resolve the domain name that you specified in variable MACHINE_HOSTNAME, for example by adding an entry in /etc/hosts
  • Start using your environment