COMMANDER Service for System Maintenance

Perform low-level maintenance on your core system, access the database and carry out Elasticsearch queries.

Table of Contents

Introduction

The COMMANDER service for yuuvis® allows you as a DevOp to perform low-level maintenance on your core system. You can adjust the differences between the DBMS, Elasticsearch, and your repository. You can access the database and carry out Elasticsearch queries to ,e.g., rebuild the full-text index from the database. The COMMANDER service itself does not support a REST interface of its own, but a connection via Secure Shell (SSH) instead. Thus, the COMMANDER service provides a SSH server at runtime. If you are connected to an SSH client, you can execute predefined commands with self-imposed parameters.

Service Configuration Parameters

The COMMMANDER service configuration can be adjusted via a YAML configuration file. Find available parameters and an example configuration here:
>> commander-prod.yml

COMMANDER Set Up

To use the COMMANDER service, an SSH connection is required. The recommended parameters for the configuration of the SSH connection are given in this section.

Port Redirection

The COMMANDER Service starts the SSH server per default on port 8022. If there are pods in the Kubernetes final destination platform, a forwarding has to be started for port 8022.

localhost@root:~$ kubectl port-forward -n sanity commander-0000000000-00000 8022

Connecting to SSH Client

Since the connection has to persist during long-term operations without user interactions, keepalives should be enabled. Furthermore, the COMMANDER output might contain important information and thus should be stored in a file.

Setup under Windows

Under a Windows operating system, the usage of PuTTY is recommended. The screenshot below shows the recommended PuTTY configuration enabling the keepalives on the left, and activating the output in a file on the right. 

Setup under Linux

The standard SSH client can be used. The keepalive function can be activated with the option "ServerAliveInterval 20". The output in a file can be achieved by forwarding to the tee command.

localhost@root:~$ ssh -o "ServerAliveInterval 20" -l root -p 8022 127.0.0.1 2>&1 | tee commander-output.log

Executing Commands

The command help lists all available commands that are supported by the COMMANDER service.

Information on parameters of individual commands can be displayed via help <command>.

All commands related to yuuvis Momentum functionality are described here:
>> Commands

Summary

This article introduced the COMMANDER service and its functionality for yuuvis® Momentum. The available commands enable maintenance in different situations such as cleaning up the audit trail.

Read on

Monitoring via Prometheus and Graphana

Display the current status and capacity of the services within your yuuvis Momentum cluster via Grafana Web UI. Keep reading

Health Check for Services

Check the current status of a service running in your yuuvis® Momentum cluster. Keep reading