keentune_target

command module
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2022 License: MulanPSL-2.0 Imports: 3 Imported by: 0

README

keentune_target

Build Status codecov Go Report Card Tag

Introduction

keentune-target is the optimization setting component, which is the only component of KeenTune that needs to be deployed in business environments. It is used to set optimized settings in dynamic and static tuning workflows, with operations such as parameter set, get, backup, and rollback.

Prerequisites

  • Go >= 1.18.0

Lint & Test

make lint
make test

Build & Install

version=latest make build
make install

Clean up

make clean

Configuration

After install keentune-target by make, we can find configuration file in /etc/keentune/conf/target.conf

[agent]
# Basic Configuration
KeenTune_HOME       = /etc/keentune/                ; KeenTune-target install path.
KeenTune_WORKSPACE  = /var/keentune/                ; KeenTune-target workspace.
AGENT_PORT          = 9873                          ; KeenTune-target service port
ORIGINAL_CONF       = /var/keentune/OriginalBackup  ; Original configuration backup path.

[log]
# Configuration about log
LOGFILE_PATH        = /var/log/keentune/target.log  ; Log file of target
CONSOLE_LEVEL       = INFO                          ; Console Log level
LOGFILE_LEVEL       = DEBUG                         ; File saved log level
LOGFILE_INTERVAL    = 1                             ; The interval of log file replacing
LOGFILE_BACKUP_COUNT= 14                            ; The count of backup log file  

Run

After modify keentune-target configuration file, we can deploy keentune-target and listening to requests as

keentune-target

or depoly keentune-target by systemctl

systemctl start keentune-target

Code Structure

agent
├── agent.go     # Entrance of keentune-target
├── common       # Common module, includes log, config and tools
├── controller   # Service response module
├── domain       # Knobs domain
└── target.conf  # Configuration file

License

Project License can be found here.

Reference

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL