Notifications

27 views

Description

When setting up an Elastic cluster as part of Sophie installation, it is possible to also set up ElasticHQ dashboard for monitoring purposes. Please follow the instructions below.

Release or Environment

Sophie standalone versions 3.4.x - 3.7.x

Instructions

Requirements:

Python 3.4+

Supported Elasticsearch versions: 2.x, 5.x, 6.x

Basic Installation

Download and unpack the zip file content into /var/lib/elastichq

$: git clone https://github.com/ElasticHQ/elasticsearch-HQ /var/lib/elastichq

Navigate to  /var/lib/elastichq and install (Run everything as root using PIP3)

$: sudo -H pip3 install -r requirements.txt

Launch the application

$ sudo python3 application.py

Browse to the application

 

Post Installation

Create Service File

$ sudo vi /lib/systemd/system/elastichq.service

Add the following content into it

[Unit]

Description=Elastic HQ

After=multi-user.target

Conflicts=getty@tty1.service

 

[Service]

Type=simple

ExecStart=/usr/bin/python3 /var/lib/elastichq/application.py

StandardInput=tty-force

User=root

StandardOutput=journal

 

[Install]

WantedBy=multi-user.target

Reload the systemctl daemon

$ sudo systemctl daemon-reload

Enable the service

$ sudo systemctl enable elastichq.service

Start the service

$ sudo systemctl start elastichq.service

Check service status

$ sudo systemctl status elastichq.service

For further information please also refer to: http://docs.elastichq.org/installation.html

Article Information

Last Updated:2020-05-19 12:38:49
Published:2020-05-19