User Tools

Site Tools


en:tms-search-service

TMS Search Service

1. Installing elasticsearch on Ubuntu

sudo echo "deb http://deb.packages.tvip.tv/ xenial main" >> /etc/apt/sources.list.d/tms.list
sudo wget --quiet -O - http://deb.packages.tvip.tv/deploy/key.asc | apt-key add -
sudo apt-get update
sudo apt-get install elasticsearch

2. Editing configuration file of elasticsearch - /etc/elasticsearch/elasticsearch.yml Add this options in configure file:

discovery.type: single-node
network.host: 0.0.0.0
http.port: 9200
xpack.security.enabled: true
indices.memory.index_buffer_size: "30%"

3. Run and configures the system to start the service at next boot:

sudo systemctl enable elasticsearch
sudo systemctl start  elasticsearch

4. Add user

/usr/share/elasticsearch/bin/elasticsearch-users  useradd tms -r superuser -p your_password

5. Update configuration file manager-tvip-tms-search /opt/tvip-tms/manager/manager-tvip-tms-search/application-prod.yml

elasticsearch:
  host: 127.0.0.1
  port: 9200
  scheme: http
  username: tms
  password: your_password
  refresh-interval: 60s
  number-of-shards: 1

* host - ip address or domain name of server with elasticsearch
* username - username from step 4.
* password - password from step 4.

en/tms-search-service.txt · Last modified: 2023/03/01 15:18 by Денис Цыганов