Skip to content

LS Installation (Elasticsearch)

Sowmya Balasubramanian edited this page Nov 4, 2020 · 5 revisions

sLS Installation Guide

This document explains the installation of sLS Server.

Introduction

The SimpleLookupService is used by perfSONAR to search for perfSONAR services, hosts and interfaces. It registers records, which are simply lists of key-value pairs describing the network element. These records can then be searched using one or more key-values.

We provide an rpm and source based install for CentOS. For any other flavor of linux, the installation must be done from source.

Currently, a central instance of perfSONAR Lookup Service runs in Google Cloud Platform.

System Requirements

The following hardware configuration is recommended:

  • Hard disk = 50G
  • Memory - 10G
  • Cores - 2-4

Ports (ACLs)

The sLS requires the following ports to be open

  • 8090
  • 80

Download

RPM

The SimpleLookupService rpm is available in yum repo here: Download here

Source

Checkout source: git clone git@github.com:esnet/simple-lookup-service.git

Dependencies

System Requirements: x86_64+CentOS 7 is recommended.

Note:

  1. The RPM has been tested only on CentOS 7.

This software requires the following:

  1. elasticsearch
  2. java-1.8.0-openjdk

In addition,

If you are installing from source, then you will need

  1. maven

Installation

Elasticsearch installation:

Download and install Elasticsearch. RPM download instructions

Configure Elasticsearch to run on port 9200 and localhost only.

Java installation

The Java jdk downloads can be found here: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Installing Lookup Service

CentOS

RPM Install
Install the perfSONAR repo rpm .

Run yum install lookup-service

Source Install

After checking out the source, run the following

  1. cd <project>/tags/3.0.0/
  2. mvn install -DskipTests
  3. Copy the jar file and config files to wherever you wish to install them

To start/stop the lookup-service: Starting/Stopping sLS

Configuring the Lookup Service

The config files are found in /etc/lookup-service.
For configuration details, please refer here

Monitoring

We recommend monitoring the VM/host using Nagios or any other similar system.

Plugins

  • Basic checks - (port - 8090 and ping)
  • Custom - perfSONAR project has a custom Nagios plugin. It can be found here: http://github.com/perfsonar/nagios/blob/master/bin/check_sls.pl. The plugin checks the number of records registered in the sLS. The best way to configure the critical and warning threshold values for the plugin will be to let the sLS run in production for a day or two to get an idea of the load on sLS and set the values based on the number of registrations in the sLS.